HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/__pycache__/test_copyreg.cpython-37.opt-1.pyc
B

��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.7/test/test_copyreg.pyrsrc@seZdZdS)�WithoutSlotsN)rrrrrrrr	
sr	c@seZdZdZdS)�WithWeakref)�__weakref__N)rrr�	__slots__rrrrr

sr
c@seZdZdZdS)�WithPrivate)�__spamN)rrrrrrrrr
sr
c@seZdZdZdS)� _WithLeadingUnderscoreAndPrivate)rN)rrrrrrrrrsrc@seZdZdZdS)�___)rN)rrrrrrrrrsrc@seZdZdZdS)�WithSingleString�spamN)rrrrrrrrrsrc@seZdZdZdS)�
WithInherited)�eggsN)rrrrrrrrrsrc@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�type)rrrr�test_noncallable_reduce&s
z'CopyRegTestCase.test_noncallable_reducecCs|�ttjtd�td�dS)Nrznot a callable)rrrrr�int)rrrr�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�|�|dtjk�r\|�ttj|dd�|dd�|d�Wd|��X|�	||ftj�xBdD]:}t|�}z t�|||�t�|||�Wd|��X�q�Wx"dD]}|�ttj|||��q�WdS)N)zjunk1 z junk2iͫr)ri���)���rl)rr�
ValueErrorr�remove_extension�
add_extensionZ
assertTrue�_extension_registry�_inverted_registryZassertNotIn�_extension_cacheZrestore)r�mod�func�code�errr�test_extension_registry2sH









"



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	r
r
rrr�sortr)rZexpected�resultrrr�test_slotnamesls
zCopyRegTestCase.test_slotnamesN)	rrrrrr r#r/r3rrrrr s:r�__main__)rZunittestZtest.pickletesterrr�objectr	r
r
rrrrZTestCaserr�mainrrrr�<module>s]