Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_copyreg.cpython-39.opt-1.pyc

a

��g��@s�ddlZddlZddlmZGdd�d�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�Z	Gd
d�de�Z
Gdd�de�ZGdd�de�ZGdd�dej
�Zedkr�e��dS)�N)�ExtensionSaverc@seZdZdS)�CN��__name__�
__module__�__qualname__�rr�-/usr/local/lib/python3.9/test/test_copyreg.pyrsrc@seZdZdS)�WithoutSlotsNrrrrr	r

sr
c@seZdZdZdS)�WithWeakref)�__weakref__N�rrr�	__slots__rrrr	r
src@seZdZdZdS)�WithPrivate��__spamNr
rrrr	rsrc@seZdZdZdS)� _WithLeadingUnderscoreAndPrivaterNr
rrrr	rsrc@seZdZdZdS)�___rNr
rrrr	rsrc@seZdZdZdS)�WithSingleString�spamNr
rrrr	rsrc@seZdZdZdS)�
WithInherited)�eggsNr
rrrr	rsrc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�CopyRegTestCasecCs|�ttjtdd�dS)N)�assertRaises�	TypeError�copyreg�pickler��selfrrr	�
test_class"s
�zCopyRegTestCase.test_classcCs|�ttjtd�d�dS�N�znot a callable)rrrr�typerrrr	�test_noncallable_reduce&s
�z'CopyRegTestCase.test_noncallable_reducecCs|�ttjtd�td�dSr )rrrrr"�intrrrr	�test_noncallable_constructor*s

�z,CopyRegTestCase.test_noncallable_constructorcCsddl}|�d|�d��dS)NrT)�copy�assertEqual)rr&rrr	�	test_bool.szCopyRegTestCase.test_boolc	Cs�d\}}}t|�}�zR|�ttj|||�t�|||�|�tj||f|k�|�tj|||fk�|�	|tj
�t�|||�|�ttj|||d�|�ttj|||d�|�ttj|dd�||�|�ttj|dd�||�|�ttj||dd�|�|�ttj||dd�|�|dtjv�r\|�ttj|dd�|dd�|d�W|��n
|��0|�	||ftj�dD]B}t|�}z(t�|||�t�|||�W|��n
|��0�q�dD]}|�ttj|||��q�dS)N)zjunk1 z junk2iͫr!)r!i���)���rl)rr�
ValueErrorr�remove_extension�
add_extensionZ
assertTrue�_extension_registry�_inverted_registryZassertNotIn�_extension_cacheZrestore)r�mod�func�code�errr	�test_extension_registry2sZ

�

�

�
�
�
�
�
�
�z'CopyRegTestCase.test_extension_registrycCs�|�t�t�g�|�t�t�g�dg}|�t�t�|�dg}|�t�t�|�|�t�t�dg�|�t�t�dg�ddg}|�	�t�t
�}|�	�|�||�dS)NZ_WithPrivate__spamZ&_WithLeadingUnderscoreAndPrivate__spamrrr)r'r�
_slotnamesr
rrrrr�sortr)rZexpected�resultrrr	�test_slotnamesls�
zCopyRegTestCase.test_slotnamesN)	rrrrr#r%r(r4r8rrrr	r s:r�__main__)rZunittestZtest.pickletesterrr�objectr
rrrrrrZTestCaserr�mainrrrr	�<module>s]

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