Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_genericclass.cpython-310.pyc
o

�9j!%�@shddlZddlmZGdd�dej�ZGdd�dej�ZejGdd�dej��Zed	kr2e�	�dSdS)
�N)�supportc@sTeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)�TestMROEntrycstg�Gdd�d�}G��fdd�d����}|��g�Gdd�d||�}|��d||ff�|��di�dS)	Nc@�eZdZdS)z0TestMROEntry.test_mro_entry_signature.<locals>.BN��__name__�
__module__�__qualname__�r	r	�-/usr/lib/python3.10/test/test_genericclass.py�B�rc�eZdZ��fdd�ZdS)z0TestMROEntry.test_mro_entry_signature.<locals>.Ccs��||g��fS�N��extend)�self�args�kwargs��C�testedr	r
�__mro_entries__
sz@TestMROEntry.test_mro_entry_signature.<locals>.C.__mro_entries__N�rrrrr	rr	r
r	�rc@r)z0TestMROEntry.test_mro_entry_signature.<locals>.DNrr	r	r	r
�Drrr�)�assertEqual)rr�crr	rr
�test_mro_entry_signaturesz%TestMROEntry.test_mro_entry_signaturecs�g�Gdd�d�}Gdd�d�}G�fdd�d�}|�}|��g�Gdd�d|||�}|��d	|||f�|�|j|||f�|�|j|||f�|�|j||||tf�|�}Gd
d�d|�}|��d	|f�|�|j|f�dS)Nc@r)z&TestMROEntry.test_mro_entry.<locals>.ANrr	r	r	r
�Arrc@r)z&TestMROEntry.test_mro_entry.<locals>.BNrr	r	r	r
rrrc�eZdZ�fdd�ZdS)z&TestMROEntry.test_mro_entry.<locals>.Ccs��|�|jfSr)�append�	__class__�r�bases�rr	r
rs
z6TestMROEntry.test_mro_entry.<locals>.C.__mro_entries__Nrr	r%r	r
r�rc@r)z&TestMROEntry.test_mro_entry.<locals>.DNrr	r	r	r
rrr���c@r)z&TestMROEntry.test_mro_entry.<locals>.ENrr	r	r	r
�E#rr(�r�	__bases__�__orig_bases__�__mro__�object)rrrrrr�dr(r	r%r
�test_mro_entryszTestMROEntry.test_mro_entrycsg�Gdd�d�}Gdd�d�}G�fdd�d�}|�}|��g�Gdd�d|||�}|��d	|||f�|�|j||f�|�|j|||f�|�|j|||tf�Gd
d�d|�}|��d	|f�|�|jtf�|�|j|f�|�|j|tf�dS)Nc@r)z+TestMROEntry.test_mro_entry_none.<locals>.ANrr	r	r	r
r)rrc@r)z+TestMROEntry.test_mro_entry_none.<locals>.BNrr	r	r	r
r*rrcr )z+TestMROEntry.test_mro_entry_none.<locals>.Ccs��|�dS�Nr	�r!r#r%r	r
r,s
z;TestMROEntry.test_mro_entry_none.<locals>.C.__mro_entries__Nrr	r%r	r
r+r&rc@r)z+TestMROEntry.test_mro_entry_none.<locals>.DNrr	r	r	r
r1rrr'c@r)z+TestMROEntry.test_mro_entry_none.<locals>.ENrr	r	r	r
r(6rr(r))rrrrrrr(r	r%r
�test_mro_entry_none's z TestMROEntry.test_mro_entry_nonecs�g�Gdd�d�}G�fdd�d�}|�}|��g�Gdd�d||�}|��d||f�|�|j|tf�|�|j||f�|�|j||ttf�dS)Nc@r)z4TestMROEntry.test_mro_entry_with_builtins.<locals>.ANrr	r	r	r
r>rrcr )z4TestMROEntry.test_mro_entry_with_builtins.<locals>.Ccs��|�tfSr)r!�dictr#r%r	r
r@�
zDTestMROEntry.test_mro_entry_with_builtins.<locals>.C.__mro_entries__Nrr	r%r	r
r?r&rc@r)z4TestMROEntry.test_mro_entry_with_builtins.<locals>.DNrr	r	r	r
rErrr')rr*r3r+r,r-)rrrrrr	r%r
�test_mro_entry_with_builtins<sz)TestMROEntry.test_mro_entry_with_builtinscs�g�G��fdd�d����}|��g�Gdd�d|t�}|��d|tf�|�|j�tf�|�|j|tf�|�|j|�ttf�dS)Ncr
)z6TestMROEntry.test_mro_entry_with_builtins_2.<locals>.Ccs��|��fSrr1r#rr	r
rNr4zFTestMROEntry.test_mro_entry_with_builtins_2.<locals>.C.__mro_entries__Nrr	rr	r
rMrrc@r)z6TestMROEntry.test_mro_entry_with_builtins_2.<locals>.DNrr	r	r	r
rSrrr')rr3r*r+r,r-)rrrr	rr
�test_mro_entry_with_builtins_2Ksz+TestMROEntry.test_mro_entry_with_builtins_2cCs�Gdd�d�}|�}|�t��Gdd�d|�}Wd�n1s"wYGdd�d�}|�}|�t��Gdd�d|�}Wd�dS1sJwYdS)Nc@�eZdZdd�ZdS)z6TestMROEntry.test_mro_entry_errors.<locals>.C_too_manycS�dSr0r	)rr$�	something�otherr	r	r
r[�zFTestMROEntry.test_mro_entry_errors.<locals>.C_too_many.__mro_entries__Nrr	r	r	r
�
C_too_manyZ�r<c@r�z-TestMROEntry.test_mro_entry_errors.<locals>.DNrr	r	r	r
r_rrc@r7)z5TestMROEntry.test_mro_entry_errors.<locals>.C_too_fewcSr8r0r	�rr	r	r
rar;zETestMROEntry.test_mro_entry_errors.<locals>.C_too_few.__mro_entries__Nrr	r	r	r
�	C_too_few`r=r@c@rr>rr	r	r	r
rer��assertRaises�	TypeError)rr<rrr@r.r	r	r
�test_mro_entry_errorsYs�"�z"TestMROEntry.test_mro_entry_errorscCs�Gdd�d�}|�}|�t��Gdd�d|�}Wd�n1s"wYGdd�d�}|�}|�t��Gdd�d|�}Wd�dS1sJwYdS)Nc@�eZdZdZdS)z<TestMROEntry.test_mro_entry_errors_2.<locals>.C_not_callable�	Surprise!Nrr	r	r	r
�C_not_callableh�rGc@r�z/TestMROEntry.test_mro_entry_errors_2.<locals>.DNrr	r	r	r
rlrrc@r7)z9TestMROEntry.test_mro_entry_errors_2.<locals>.C_not_tuplecSstSr)r-r?r	r	r
rnr;zITestMROEntry.test_mro_entry_errors_2.<locals>.C_not_tuple.__mro_entries__Nrr	r	r	r
�C_not_tuplemr=rJc@rrIrr	r	r	r
rrrrA)rrGrrrJr	r	r
�test_mro_entry_errors_2gs�"�z$TestMROEntry.test_mro_entry_errors_2cs�g�G�fdd�dt�}Gdd�d��G�fdd�d�}|�}Gdd�d||d	�}|��d
|�|��dd�|��d�f�|��d
dd�|�|j�f�|�|j|f�|�|j|�tf�|�|j|�dS)NcseZdZ��fdd�Z�ZS)z3TestMROEntry.test_mro_entry_metaclass.<locals>.Metacs$��||||g�t��||||�Sr)r�super�__new__)�mcls�namer$�ns)r"�	meta_argsr	r
rMwsz;TestMROEntry.test_mro_entry_metaclass.<locals>.Meta.__new__)rrrrM�
__classcell__r	)rQ)r"r
�MetavsrSc@r)z0TestMROEntry.test_mro_entry_metaclass.<locals>.ANrr	r	r	r
rzrrcr )z0TestMROEntry.test_mro_entry_metaclass.<locals>.Ccs�fSrr	r#�rr	r
r|sz@TestMROEntry.test_mro_entry_metaclass.<locals>.C.__mro_entries__Nrr	rTr	r
r{r&rc@rE)z0TestMROEntry.test_mro_entry_metaclass.<locals>.DrN)rrr�xr	r	r	r
rrHr��	metaclassrr��rU)�typerr*r+r,r-r")rrSrrrr	)rrQr
�test_mro_entry_metaclasstsz%TestMROEntry.test_mro_entry_metaclasscCsTGdd�d�}|�}|�td��td|fi�Wd�dS1s#wYdS)Nc@r7)z0TestMROEntry.test_mro_entry_type_call.<locals>.CcSr8r0r	r#r	r	r
r�r;z@TestMROEntry.test_mro_entry_type_call.<locals>.C.__mro_entries__Nrr	r	r	r
r�r=rz+MRO entry resolution; use types.new_class()�Bad)�assertRaisesRegexrCrZ)rrrr	r	r
�test_mro_entry_type_call�s�"�z%TestMROEntry.test_mro_entry_type_callN)rrrrr/r2r5r6rDrKr[r^r	r	r	r
rs

rc@sleZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�TestClassGetitemcsNg�G�fdd�d�}|ttf|��d|ttff�|��di�dS)Ncr )z.TestClassGetitem.test_class_getitem.<locals>.Ccs��||g�dSrr)rr��getitem_argsr	r
�__class_getitem__�sz@TestClassGetitem.test_class_getitem.<locals>.C.__class_getitem__N�rrrrbr	r`r	r
r�r&rrr)�int�strr�rrr	r`r
�test_class_getitem�s
z#TestClassGetitem.test_class_getitemcCs2Gdd�d�}|�|td�|�||d�dS)Nc@r7)z5TestClassGetitem.test_class_getitem_format.<locals>.CcSsd|j�d�S)NzC[�]�r��cls�itemr	r	r
rb�szGTestClassGetitem.test_class_getitem_format.<locals>.C.__class_getitem__Nrcr	r	r	r
r�r=r�C[int]zC[C]�rrdrfr	r	r
�test_class_getitem_format�sz*TestClassGetitem.test_class_getitem_formatcC�BGdd�d�}Gdd�d|�}|�|td�|�||d�dS)Nc@r7)z:TestClassGetitem.test_class_getitem_inheritance.<locals>.CcS�|j�d|j�d�S�N�[rhrirjr	r	r
rb��zLTestClassGetitem.test_class_getitem_inheritance.<locals>.C.__class_getitem__Nrcr	r	r	r
r�r=rc@r)z:TestClassGetitem.test_class_getitem_inheritance.<locals>.DNrr	r	r	r
r�rr�D[int]�D[D]rn�rrrr	r	r
�test_class_getitem_inheritance�sz/TestClassGetitem.test_class_getitem_inheritancecCrp)Nc@r7)z<TestClassGetitem.test_class_getitem_inheritance_2.<locals>.CcSr8)NzShould not see thisr	rjr	r	r
rb�r;zNTestClassGetitem.test_class_getitem_inheritance_2.<locals>.C.__class_getitem__Nrcr	r	r	r
r�r=rc@r7)z<TestClassGetitem.test_class_getitem_inheritance_2.<locals>.DcSrqrrrirjr	r	r
rb�rtzNTestClassGetitem.test_class_getitem_inheritance_2.<locals>.D.__class_getitem__Nrcr	r	r	r
r�r=rrurvrnrwr	r	r
� test_class_getitem_inheritance_2�sz1TestClassGetitem.test_class_getitem_inheritance_2cCrp)Nc@seZdZedd��ZdS)z:TestClassGetitem.test_class_getitem_classmethod.<locals>.CcSrqrrrirjr	r	r
rb�szLTestClassGetitem.test_class_getitem_classmethod.<locals>.C.__class_getitem__N)rrr�classmethodrbr	r	r	r
r�src@r)z:TestClassGetitem.test_class_getitem_classmethod.<locals>.DNrr	r	r	r
r�rrrurvrnrwr	r	r
�test_class_getitem_classmethod�sz/TestClassGetitem.test_class_getitem_classmethodcCrp)Nc@r7)z6TestClassGetitem.test_class_getitem_patched.<locals>.CcSsdd�}t|�|_dS)NcSrqrrrirjr	r	r
rb�rtzcTestClassGetitem.test_class_getitem_patched.<locals>.C.__init_subclass__.<locals>.__class_getitem__)rzrb)rkrbr	r	r
�__init_subclass__�szHTestClassGetitem.test_class_getitem_patched.<locals>.C.__init_subclass__N)rrrr|r	r	r	r
r�r=rc@r)z6TestClassGetitem.test_class_getitem_patched.<locals>.DNrr	r	r	r
r�rrrurvrnrwr	r	r
�test_class_getitem_patched�sz+TestClassGetitem.test_class_getitem_patchedcCsHGdd�dt�}Gdd�d|�}|�|jd�|t|�|jt�dS)Nc@seZdZdZdd�ZdS)z<TestClassGetitem.test_class_getitem_with_builtins.<locals>.ANcSs
||_dSr)�called_withrjr	r	r
rb�s
zNTestClassGetitem.test_class_getitem_with_builtins.<locals>.A.__class_getitem__)rrrr~rbr	r	r	r
r�src@r)z<TestClassGetitem.test_class_getitem_with_builtins.<locals>.BNrr	r	r	r
r��r)r3�assertIsr~rd)rrrr	r	r
� test_class_getitem_with_builtins�s
z1TestClassGetitem.test_class_getitem_with_builtinscCs�Gdd�d�}|�t��|tWd�n1swYGdd�d�}|�t��
|tWd�dS1s<wYdS)Nc@r7)z=TestClassGetitem.test_class_getitem_errors.<locals>.C_too_fewcS�dSrr	)rkr	r	r
rb�r;zOTestClassGetitem.test_class_getitem_errors.<locals>.C_too_few.__class_getitem__Nrcr	r	r	r
r@�r=r@c@r7)z>TestClassGetitem.test_class_getitem_errors.<locals>.C_too_manycSr�rr	)rk�one�twor	r	r
rb�r;zPTestClassGetitem.test_class_getitem_errors.<locals>.C_too_many.__class_getitem__Nrcr	r	r	r
r<�r=r<)rBrCrd)rr@r<r	r	r
�test_class_getitem_errors�s
�
"�z*TestClassGetitem.test_class_getitem_errorscCs�Gdd�d�}|�t��
|�tWd�n1swYGdd�d�}|�}dd�|_|�t��|tWd�n1sDwYGdd�d�}|�t��
|tWd�dS1sewYdS)	Nc@r7)z7TestClassGetitem.test_class_getitem_errors_2.<locals>.CcSr�rr	rjr	r	r
rb�r;zITestClassGetitem.test_class_getitem_errors_2.<locals>.C.__class_getitem__Nrcr	r	r	r
r�r=rc@r)z7TestClassGetitem.test_class_getitem_errors_2.<locals>.ENrr	r	r	r
r(�rr(cSr8)NzThis will not workr	rjr	r	r
�<lambda>�sz>TestClassGetitem.test_class_getitem_errors_2.<locals>.<lambda>c@rE)zDTestClassGetitem.test_class_getitem_errors_2.<locals>.C_not_callablerFNrcr	r	r	r
rG�rHrG)rBrCrdrb)rrr(�erGr	r	r
�test_class_getitem_errors_2�s�

�
"�z,TestClassGetitem.test_class_getitem_errors_2cCs$Gdd�dt�}|�|td�dS)Nc@r7)z;TestClassGetitem.test_class_getitem_metaclass.<locals>.MetacSrqrrrirjr	r	r
rb�rtzMTestClassGetitem.test_class_getitem_metaclass.<locals>.Meta.__class_getitem__Nrcr	r	r	r
rS�r=rSz	Meta[int]�rZrrd)rrSr	r	r
�test_class_getitem_metaclass�sz-TestClassGetitem.test_class_getitem_metaclasscC�6Gdd�dt�}Gdd�d|d�}|�|td�dS)Nc@r)z@TestClassGetitem.test_class_getitem_with_metaclass.<locals>.MetaNrr	r	r	r
rS�rrSc@r7)z=TestClassGetitem.test_class_getitem_with_metaclass.<locals>.CcSrqrrrirjr	r	r
rb�rtzOTestClassGetitem.test_class_getitem_with_metaclass.<locals>.C.__class_getitem__Nrcr	r	r	r
r�r=rrVrmr��rrSrr	r	r
�!test_class_getitem_with_metaclass�sz2TestClassGetitem.test_class_getitem_with_metaclasscCr�)Nc@r7)zATestClassGetitem.test_class_getitem_metaclass_first.<locals>.MetacSr8)N�from metaclassr	rjr	r	r
�__getitem__r;zMTestClassGetitem.test_class_getitem_metaclass_first.<locals>.Meta.__getitem__N)rrrr�r	r	r	r
rSr=rSc@r7)z>TestClassGetitem.test_class_getitem_metaclass_first.<locals>.CcSr8)Nzfrom __class_getitem__r	rjr	r	r
rbr;zPTestClassGetitem.test_class_getitem_metaclass_first.<locals>.C.__class_getitem__Nrcr	r	r	r
rr=rrVr�r�r�r	r	r
�"test_class_getitem_metaclass_firstsz3TestClassGetitem.test_class_getitem_metaclass_firstN)rrrrgrorxryr{r}r�r�r�r�r�r�r	r	r	r
r_�s

	
r_c@r7)�CAPITestcCs�ddlm}m}|�|�t�|�|t}|�t|�|�|�|�	d�tf�Gdd�d|�}|�|j
tf�|�|j|f�|�|j|tt
f�dS)Nr)�Generic�GenericAliasr	c@r)z CAPITest.test_c_class.<locals>.CNrr	r	r	r
rrr)�	_testcapir�r��assertIsInstancerbrdr�rZrrr*r+r,r-)rr�r��
IntGenericrr	r	r
�test_c_classszCAPITest.test_c_classN)rrrr�r	r	r	r
r�sr��__main__)
�unittest�testr�TestCaserr_�cpython_onlyr�r�mainr	r	r	r
�<module>sv�

Youez - 2016 - github.com/yon3zu
LinuXploit