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_compare.cpython-310.pyc
o

�9j��@sZddlZddlmZGdd�d�ZGdd�d�ZGdd�dej�Zed	kr+e��dSdS)
�N)�	ALWAYS_EQc@seZdZdd�ZdS)�EmptycCsdS)Nz<Empty>���selfrr�(/usr/lib/python3.10/test/test_compare.py�__repr__szEmpty.__repr__N)�__name__�
__module__�__qualname__rrrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�CmpcCs
||_dS�N��arg)rrrrr�__init__	�
zCmp.__init__cCs
d|jS)Nz<Cmp %s>rrrrrrrzCmp.__repr__cCs
|j|kSr
r)r�otherrrr�__eq__rz
Cmp.__eq__N)r	r
rrrrrrrrrsrc@sneZdZdddded�gZdgdde�gZeeZdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)�ComparisonTest�g@y@�)�NcCsR|jD]#}|jD]}||jvr||jvs||ur|�||�q|�||�qqdSr
)�
candidates�set1�assertEqual�assertNotEqual)r�a�brrr�test_comparisonss

��zComparisonTest.test_comparisonsc	Csfg}td�D]
}|�t|�dt��q|D]}|D]}|�||kt|�t|�kd||f�qqdS)N�
rz
a=%r, b=%r)�range�insert�lenrr�id)r�L�irrrrr�test_id_comparisonss
���z"ComparisonTest.test_id_comparisonscCsLtd�}td�}td�}|�||kd�|�||kd�|�||kd�dS)NrrTF)r�assertIs)rrr�crrr�test_ne_defaults_to_not_eq)sz)ComparisonTest.test_ne_defaults_to_not_eqcsHg�G�fdd�d�}G�fdd�d�}|�|�k|��ddg�dS)z;object.__ne__() should allow reflected __ne__() to be triedc�eZdZ�fdd�ZdS)z2ComparisonTest.test_ne_high_priority.<locals>.Leftc���d�tS)N�Left.__eq__��append�NotImplemented��args��callsrrr6�
z9ComparisonTest.test_ne_high_priority.<locals>.Left.__eq__N�r	r
rrrr2rr�Left4�r6c�$eZdZ�fdd�Z�fdd�ZdS)z3ComparisonTest.test_ne_high_priority.<locals>.Rightcr+)NzRight.__eq__r-r0r2rrr:r4z:ComparisonTest.test_ne_high_priority.<locals>.Right.__eq__cr+)N�Right.__ne__r-r0r2rr�__ne__=r4z:ComparisonTest.test_ne_high_priority.<locals>.Right.__ne__N�r	r
rrr:rr2rr�Right9�r<r,r9N��assertSequenceEqual)rr6r<rr2r�test_ne_high_priority1s
z$ComparisonTest.test_ne_high_prioritycsJg�G�fdd�d�}G�fdd�d|�}|�|�k|��ddg�dS)z4object.__ne__() should not invoke reflected __eq__()cr*)z1ComparisonTest.test_ne_low_priority.<locals>.Basecr+)N�Base.__eq__r-r0r2rrrHr4z8ComparisonTest.test_ne_low_priority.<locals>.Base.__eq__Nr5rr2rr�BaseFr7rBcr8)z4ComparisonTest.test_ne_low_priority.<locals>.Derivedcr+)NzDerived.__eq__r-r0r2rrrLr4z;ComparisonTest.test_ne_low_priority.<locals>.Derived.__eq__cr+)N�Derived.__ne__r-r0r2rrr:Or4z;ComparisonTest.test_ne_low_priority.<locals>.Derived.__ne__Nr;rr2rr�DerivedKr=rDrCrANr>)rrBrDrr2r�test_ne_low_priorityCs
z#ComparisonTest.test_ne_low_priorityc	s�ddd�fddd�fddd�fdd	d�fd
dd�ff}|D]S\}}��|��B�fdd
��G�fdd�d�}|D]\}}||krFt||��q8|dkrW��||�t��d�n
��t||�t��Wd�n1skwYqdS)z8No default delegation between operations except __ne__()rcSs||kSr
r�rrrrr�<lambda>X�z6ComparisonTest.test_other_delegation.<locals>.<lambda>�__lt__cSs||kSr
rrFrrrrGYrH�__le__cSs||kSr
rrFrrrrGZrH�__gt__cSs||kSr
rrFrrrrG[rH�__ge__cSs||kSr
rrFrrrrG\rHcs��d�dS)Nz!Unexpected operator method called)�failr0rrr�
unexpected`sz8ComparisonTest.test_other_delegation.<locals>.unexpectedcseZdZ�ZdS)z/ComparisonTest.test_other_delegation.<locals>.CN)r	r
rr:r)rNrr�CbsrOFN)�subTest�setattrr'�object�assertRaises�	TypeError)r�ops�name�funcrOr�_r)rrNr�test_other_delegationUs*




������z$ComparisonTest.test_other_delegationcCsBdd�}|�|t�|�t|�t�}|�|t�|�t|�dS)NcSsdSr
rrrrrrGmsz0ComparisonTest.test_issue_1393.<locals>.<lambda>)rrrR)r�x�yrrr�test_issue_1393lszComparisonTest.test_issue_1393)r	r
rrrr�set2rrr&r)r@rErYr\rrrrrs
r�__main__)	�unittest�test.supportrrr�TestCaserr	�mainrrrr�<module>s
c�

Youez - 2016 - github.com/yon3zu
LinuXploit