Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_copyreg.cpython-38.opt-2.pyc
U

>��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�0/opt/cppython/lib/python3.8/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|�}�zJ|�ttj|||�t�|||�|�tj||f|k�|�tj	|||fk�|�
|tj�t�|||�|�ttj|||d�|�ttj|||d�|�ttj|dd�||�|�ttj|dd�||�|�ttj||dd�|�|�ttj||dd�|�|dtj	k�r\|�ttj|dd�|dd�|d�W5|��X|�
||ftj�dD]:}t|�}z t�|||�t�|||�W5|��X�q�dD]}|�ttj|||��q�dS)N)zjunk1 z junk2iͫr!)r!i���)���rl)rZrestorer�
ValueErrorr�remove_extension�
add_extensionZ
assertTrue�_extension_registry�_inverted_registryZassertNotIn�_extension_cache)r�mod�func�code�errr	�test_extension_registry2s~

�
�
�

�

�

�

�


�

�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]

F1le Man4ger