관리-도구
편집 파일: test_pycapsule.cpython-311.pyc
� �܋f� � �p � d Z ddlZddlZdZej j �ddlZd� Zedk re� e� � dS dS dS )z" test pickling a PyCapsule object � Nc �H � t j d� � } t j � t j t j j t j � � | d � � }t j � � 5 t j d� � t j |� � d d d � � n# 1 swxY w Y |t _ t j � � 5 t j d� � t j |� � d d d � � n# 1 swxY w Y d t _ t j � � 5 t j dt j � � t j |� � d d d � � n# 1 swxY w Y t d� � �# t j $ r Y d S w xY w)Ns dill._testcapsule�ignorezExpected a different error)�ctypes�create_string_buffer�dill�_dill�_PyCapsule_New�cast�c_void_p�warnings�catch_warnings�simplefilter�copy�_testcapsule�PicklingWarning�AssertionError�UnpicklingError)�name�capsules �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/dill/tests/test_pycapsule.py�test_pycapsuler s- � ��*�+?�@�@���*�+�+��K�� �1�6�?�C�C��� � �� � $� &� &� � ��!�(�+�+�+��I�g���� � � � � � � � � � � ���� � � � � $��� � $� &� &� � ��!�(�+�+�+��I�g���� � � � � � � � � � � ���� � � � � !��� ?��(�*�*� #� #��%�h��0D�E�E�E�� �'�"�"�"� #� #� #� #� #� #� #� #� #� #� #���� #� #� #� #� !�!=�>�>�>�� �#� � � ��D�D� ���sZ �5)B*�*B.�1B.�)D � D �D �!F �44E4�(F �4E8�8F �;E8�<F �F!� F!�__main__)�__doc__r r r r r r �__name__� � r �<module>r s� ��� � ���� �������:��&��M�M�M�?� ?� ?�0 �z����!�������� ��!�!r