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_isinstance.cpython-38.opt-1.pyc
U

>��g)�@s�ddlZddlZGdd�dej�ZGdd�dej�ZGdd�de�ZGdd	�d	e�Zed
d�Zeefd�Z	Gdd
�d
�Z
Gdd�de
�ZGdd�dej�Zdd�Z
edkr�e��dS)�Nc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�TestIsInstanceExceptionscCs:Gdd�dt�}Gdd�dt�}|�dt|�|���dS)Nc@seZdZdd�Zee�ZdS)z;TestIsInstanceExceptions.test_class_has_no_bases.<locals>.IcSsdS�N���selfrr�3/opt/cppython/lib/python3.8/test/test_isinstance.py�getclassszDTestIsInstanceExceptions.test_class_has_no_bases.<locals>.I.getclassN��__name__�
__module__�__qualname__r�property�	__class__rrrr�Isrc@seZdZdd�Zee�ZdS)z;TestIsInstanceExceptions.test_class_has_no_bases.<locals>.CcSsdS�Nrrrrrr�getbases!szDTestIsInstanceExceptions.test_class_has_no_bases.<locals>.C.getbasesN�r
rrrr
�	__bases__rrrr�C srF)�object�assertEqual�
isinstance�rrrrrr�test_class_has_no_basessz0TestIsInstanceExceptions.test_class_has_no_basescsLGdd�dt��G�fdd�dt�}Gdd�dt�}|�tt|�|��dS)Nc@seZdZdd�Zee�ZdS)zPTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.EcSst�dSr��RuntimeErrorrrrrr+szYTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.E.getbasesNrrrrr�E*srcs eZdZ�fdd�Zee�ZdS)zPTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.Ics��Srrr�rrrr0szYTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.I.getclassNr	rrrrr/src@seZdZdd�Zee�ZdS)zPTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.CcSsdSrrrrrrr5szYTestIsInstanceExceptions.test_bases_raises_other_than_attribute_error.<locals>.C.getbasesNrrrrrr4sr�r�assertRaisesrrrrrr�,test_bases_raises_other_than_attribute_error)szETestIsInstanceExceptions.test_bases_raises_other_than_attribute_errorcCs6Gdd�d�}Gdd�dt�}|�tt|�|��dS)Nc@seZdZdS)zFTestIsInstanceExceptions.test_dont_mask_non_attribute_error.<locals>.IN�r
rrrrrrr>src@seZdZdd�Zee�ZdS)zFTestIsInstanceExceptions.test_dont_mask_non_attribute_error.<locals>.CcSst�dSrrrrrrrAszOTestIsInstanceExceptions.test_dont_mask_non_attribute_error.<locals>.C.getbasesNrrrrrr@srrrrrr�"test_dont_mask_non_attribute_error=sz;TestIsInstanceExceptions.test_dont_mask_non_attribute_errorcCs6Gdd�d�}Gdd�dt�}|�tt|�|��dS)Nc@seZdZdS)z=TestIsInstanceExceptions.test_mask_attribute_error.<locals>.INr!rrrrrJsrc@seZdZdd�Zee�ZdS)z=TestIsInstanceExceptions.test_mask_attribute_error.<locals>.CcSst�dSr��AttributeErrorrrrrrMszFTestIsInstanceExceptions.test_mask_attribute_error.<locals>.C.getbasesNrrrrrrLsr)rr�	TypeErrorrrrrr�test_mask_attribute_errorIsz2TestIsInstanceExceptions.test_mask_attribute_errorcCsHGdd�dt�}|�}|�tt|t�Gdd�d�}|�tt||�dS)Nc@seZdZdd�Zee�ZdS)zQTestIsInstanceExceptions.test_isinstance_dont_mask_non_attribute_error.<locals>.CcSst�dSrrrrrrrWszZTestIsInstanceExceptions.test_isinstance_dont_mask_non_attribute_error.<locals>.C.getclassNr	rrrrrVsrc@seZdZdS)zQTestIsInstanceExceptions.test_isinstance_dont_mask_non_attribute_error.<locals>.DNr!rrrr�D_sr')rrrr�bool)rr�cr'rrr�-test_isinstance_dont_mask_non_attribute_errorUs
zFTestIsInstanceExceptions.test_isinstance_dont_mask_non_attribute_errorN)r
rrrr r"r&r*rrrrr
s
rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestIsSubclassExceptionscCs8Gdd�dt�}Gdd�d|�}|�tt|�|��dS)Nc@seZdZdd�Zee�ZdS)zFTestIsSubclassExceptions.test_dont_mask_non_attribute_error.<locals>.CcSst�dSrrrrrrriszOTestIsSubclassExceptions.test_dont_mask_non_attribute_error.<locals>.C.getbasesNrrrrrrhsrc@seZdZdS)zFTestIsSubclassExceptions.test_dont_mask_non_attribute_error.<locals>.SNr!rrrr�Smsr,�rrr�
issubclass�rrr,rrrr"gsz;TestIsSubclassExceptions.test_dont_mask_non_attribute_errorcCs8Gdd�dt�}Gdd�d|�}|�tt|�|��dS)Nc@seZdZdd�Zee�ZdS)z=TestIsSubclassExceptions.test_mask_attribute_error.<locals>.CcSst�dSrr#rrrrrsszFTestIsSubclassExceptions.test_mask_attribute_error.<locals>.C.getbasesNrrrrrrrsrc@seZdZdS)z=TestIsSubclassExceptions.test_mask_attribute_error.<locals>.SNr!rrrrr,wsr,�rrr%r.r/rrrr&qsz2TestIsSubclassExceptions.test_mask_attribute_errorcCs4Gdd�d�}Gdd�dt�}|�tt||��dS)Nc@seZdZdS)zQTestIsSubclassExceptions.test_dont_mask_non_attribute_error_in_cls_arg.<locals>.BNr!rrrr�B�sr1c@seZdZdd�Zee�ZdS)zQTestIsSubclassExceptions.test_dont_mask_non_attribute_error_in_cls_arg.<locals>.CcSst�dSrrrrrrr�szZTestIsSubclassExceptions.test_dont_mask_non_attribute_error_in_cls_arg.<locals>.C.getbasesNrrrrrr�srr-�rr1rrrr�-test_dont_mask_non_attribute_error_in_cls_argszFTestIsSubclassExceptions.test_dont_mask_non_attribute_error_in_cls_argcCs4Gdd�d�}Gdd�dt�}|�tt||��dS)Nc@seZdZdS)zHTestIsSubclassExceptions.test_mask_attribute_error_in_cls_arg.<locals>.BNr!rrrrr1�sr1c@seZdZdd�Zee�ZdS)zHTestIsSubclassExceptions.test_mask_attribute_error_in_cls_arg.<locals>.CcSst�dSrr#rrrrr�szQTestIsSubclassExceptions.test_mask_attribute_error_in_cls_arg.<locals>.C.getbasesNrrrrrr�srr0r2rrr�$test_mask_attribute_error_in_cls_arg�sz=TestIsSubclassExceptions.test_mask_attribute_error_in_cls_argN)r
rrr"r&r3r4rrrrr+fs

r+c@s,eZdZdd�Zdd�Zee�Zdd�ZdS)�
AbstractClasscCs
||_dSr��bases)rr7rrr�__init__�szAbstractClass.__init__cCs|jSrr6rrrrr�szAbstractClass.getbasescCst|�Sr)�AbstractInstancerrrr�__call__�szAbstractClass.__call__N)r
rrr8rr
rr:rrrrr5�sr5c@s$eZdZdd�Zdd�Zee�ZdS)r9cCs
||_dSr��klass)rr<rrrr8�szAbstractInstance.__init__cCs|jSrr;rrrrr�szAbstractInstance.getclassN)r
rrr8rr
rrrrrr9�sr9rr6c@seZdZdS)�SuperNr!rrrrr=�sr=c@seZdZdS)�ChildNr!rrrrr>�sr>c@sTeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)�TestIsInstanceIsSubclasscCs||�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��dS�NTF)rrr=r>�
AbstractSuper�
AbstractChildrrrr�test_isinstance_normal�sz/TestIsInstanceIsSubclass.test_isinstance_normalcCs�|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��|�dtt�t��dSr@)rrrArBr=r>rrrr�test_isinstance_abstract�sz1TestIsInstanceIsSubclass.test_isinstance_abstractcCsp|�dttt��|�dttt��|�dttt��|�dttt��|�dttt��|�dttt��dSr@)rr.r=rAr>rrrr�test_subclass_normal�sz-TestIsInstanceIsSubclass.test_subclass_normalcCs�|�dttt��|�dttt��|�dttt��|�dttt��|�dttt��|�dttt��|�dttt��dSr@)rr.rArBr>r=rrrr�test_subclass_abstract�sz/TestIsInstanceIsSubclass.test_subclass_abstractcCs�|�dtttf��|�dtttf��|�dtttf��|�dttttf��|�dttd��|�dttttff��|�dtttttff��|�dtttttff��dS)NTFr)rr.r>r=�int�float�strrrrr�test_subclass_tuple�sz,TestIsInstanceIsSubclass.test_subclass_tuplecCs|�ttttt�dSr)r�RecursionError�	blowstackr.rIrrrr�test_subclass_recursion_limit�sz6TestIsInstanceIsSubclass.test_subclass_recursion_limitcCs|�tttdt�dS)N�)rrKrLrrIrrrr�test_isinstance_recursion_limit�sz8TestIsInstanceIsSubclass.test_isinstance_recursion_limitcs8Gdd�d��G�fdd�d�}|�dt|�t��dS)Nc@seZdZedd��ZdS)zETestIsInstanceIsSubclass.test_issubclass_refcount_handling.<locals>.AcSstfSr)rGrrrrrszOTestIsInstanceIsSubclass.test_issubclass_refcount_handling.<locals>.A.__bases__N�r
rrr
rrrrr�AsrQcs$eZdZdd�Ze�fdd��ZdS)zETestIsInstanceIsSubclass.test_issubclass_refcount_handling.<locals>.BcSs
d|_dS)N�)�xrrrrr8szNTestIsInstanceIsSubclass.test_issubclass_refcount_handling.<locals>.B.__init__cs��fSrrr�rQrrrszOTestIsInstanceIsSubclass.test_issubclass_refcount_handling.<locals>.B.__bases__N)r
rrr8r
rrrTrrr1sr1T)rr.rG)rr1rrTr�!test_issubclass_refcount_handling�s
z:TestIsInstanceIsSubclass.test_issubclass_refcount_handlingcCsHGdd�d�}|�tt|�t�|�ttt|��|�ttd|��dS)Nc@seZdZedd��ZdS)zDTestIsInstanceIsSubclass.test_infinite_recursion_in_bases.<locals>.XcSs|jSr)rrrrrrszNTestIsInstanceIsSubclass.test_infinite_recursion_in_bases.<locals>.X.__bases__NrPrrrr�XsrVrR)rrKr.rGr)rrVrrr� test_infinite_recursion_in_basessz9TestIsInstanceIsSubclass.test_infinite_recursion_in_basesN)r
rrrCrDrErFrJrMrOrUrWrrrrr?�s

r?cCs0|f}tt��d�D]}|f}|||�qdS)N�)�range�sys�getrecursionlimit)�fxn�argZ
compare_toZ	tuple_argZcntrrrrLsrL�__main__)ZunittestrZZTestCaserr+rr5r9rArBr=r>r?rLr
�mainrrrr�<module>s\0	
h	

F1le Man4ger