Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_copyreg.cpython-312.opt-1.pyc

�

'Μgt��,�ddlZddlZddlmZGd�d�Zd�ZGd�de�ZGd�d	e�ZGd
�de�Z	Gd�d
e�Z
Gd�de�ZGd�de�ZGd�de�Z
Gd�dej�Zedk(rej"�yy)�N)�ExtensionSaverc��eZdZy)�CN��__name__�
__module__�__qualname__���./usr/local/lib/python3.12/test/test_copyreg.pyrr���rrc��tdfS)Nr
)r)�cs r�pickle_Cr	s���b�5�Lrc��eZdZy)�WithoutSlotsNrr
rrrr
r
rrc��eZdZdZy)�WithWeakref)�__weakref__N�rrr	�	__slots__r
rrrrs�� �Irrc��eZdZdZy)�WithPrivate��__spamNrr
rrrr����Irrc��eZdZdZy)� _WithLeadingUnderscoreAndPrivaterNrr
rrrrrrrc��eZdZdZy)�___rNrr
rrr r rrr c��eZdZdZy)�WithSingleString�spamNrr
rrr"r"s���Irr"c��eZdZdZy)�
WithInherited)�eggsNrr
rrr%r%s���Irr%c�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�CopyRegTestCasec�@�tjtt�y)N)�copyreg�picklerr��selfs r�
test_classzCopyRegTestCase.test_class%s�����q�(�#rc�X�|jttjtd�y�Nznot a callable)�assertRaises�	TypeErrorr*r+rr,s r�test_noncallable_reducez'CopyRegTestCase.test_noncallable_reduce(s�����)�W�^�^��-�	/rc�b�|jttjtt
d�yr0)r1r2r*r+rrr,s r�test_noncallable_constructorz,CopyRegTestCase.test_noncallable_constructor,s �����)�W�^�^��X�'7�	9rc�N�ddl}|jd|jd��y)NrT)�copy�assertEqual)r-r7s  r�	test_boolzCopyRegTestCase.test_bool0s�������t�y�y���/rc���d\}}}t|�}	|jttj|||�tj
|||�|j
tj||f|k(�|j
tj|||fk(�|j|tj�tj
|||�|jttj
|||dz�|jttj|||dz�|jttj
|dd||�|jttj|dd||�|jttj
||dd|�|jttj||dd|�|dztjvr0|jttj|dd|dd|dz�|j�|j||ftj�dD]L}t|�}	tj
|||�tj|||�|j��NdD])}|jttj
|||��+y#|j�wxYw#|j�wxYw)N)zjunk1 z junk2iͫ�)r;i���)���rl)rr1�
ValueErrorr*�remove_extension�
add_extension�
assertTrue�_extension_registry�_inverted_registry�assertNotIn�_extension_cache�restore)r-�mod�func�code�es     r�test_extension_registryz'CopyRegTestCase.test_extension_registry4s���4���T�4��4� ��!	����j�'�*B�*B�!�4��
/��!�!�#�t�T�2��O�O�G�7�7��T�	�B�d�J�K��O�O�G�6�6�t�<��d��K�L����T�7�#;�#;�<��!�!�#�t�T�2����j�'�*?�*?�!�4����
3����j�'�*B�*B�!�4����
3�
���j�'�*?�*?�!�!�"�g�t�T�
4����j�'�*B�*B�!�!�"�g�t�T�
4�
���j�'�*?�*?�!�4���8�T�
3����j�'�*B�*B�!�4���8�T�
3��a�x�w�9�9�9��!�!�*�g�.F�.F�"%�a�b�'�4���8�T�A�X�?�
�I�I�K�	
���#�t��g�&A�&A�B�"�D��t�$�A�
��%�%�c�4��6��(�(��d�D�9��	�	��
"�&�D����j�'�*?�*?�!�4��
/�&��%
�I�I�K���	�	��s�HK	�.K�	K�K0c��|jtjt�g�|jtjt�g�dg}|jtjt
�|�dg}|jtjt�|�|jtjt�dg�|jtjt�dg�ddg}|j�tjt�}|j�|j||�y)N�_WithPrivate__spam�&_WithLeadingUnderscoreAndPrivate__spamrr#r&)r8r*�
_slotnamesrrrrr r"�sortr%)r-�expected�results   r�test_slotnameszCopyRegTestCase.test_slotnamesns�������+�+�L�9�2�>�����+�+�K�8�"�=�(�)������+�+�K�8�(�C�<�=������+�+�,L�M�!�	#�����+�+�C�0�8�*�=�����+�+�,<�=��x�H��F�#���
�
���#�#�M�2�����
������*rN)	rrr	r.r3r5r9rJrRr
rrr(r(#s!��$�/�9�0�8/�t+rr(�__main__)r*�unittest�test.pickletesterrrr�objectrrrrr r"r%�TestCaser(r�mainr
rr�<module>rYs�����,�	�	��	�6�	�!�&�!��&���v���&���v���$��Y+�h�'�'�Y+�x�z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists