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

>��g��@s2dZddlZGdd�dej�Zedkr.e��dS)zFTest compiler changes for unary ops (+, -, ~) introduced in Python 2.2�Nc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�UnaryOpTestCasecCsT|�ddk�|�dd�|�dd�|�ddk�|�ddk�|�ddk�dS)N���r�g�y��y���
assertTrue�assertEqual��self�r
�./opt/cppython/lib/python3.8/test/test_unary.py�
test_negativeszUnaryOpTestCase.test_negativecCsL|�dd�|�dd�|�dd�|�dd�|�dd�|�dd�dS)Nrrg@y@�rrr
r
r�
test_positiveszUnaryOpTestCase.test_positivecCs8|�ddk�|�dd�|�dd�|�ddk�dS)Nrrrrrr
r
r�test_invertszUnaryOpTestCase.test_invertcCsJd}|�td|�dk�|�td|�dk�|�td|�dk�dS)NZ 99999999999999999999999999999999�+l��>g-��-�;�-l������>g-��-�;�~l����>g-��-�;)r�eval)r	Zninesr
r
r�test_no_overflowsz UnaryOpTestCase.test_no_overflowcCs4|�dd�|�dd�|�dd�|�dd�dS)Ni����i��r
rr
r
r�test_negation_of_exponentiation#sz/UnaryOpTestCase.test_negation_of_exponentiationcCsNdD](}|�tt|d�|�tt|d�q|�ttd�|�ttd�dS)N)rrrzb'a'z'a'z~2jz~2.0)ZassertRaises�	TypeErrorr)r	�opr
r
r�test_bad_types+s
zUnaryOpTestCase.test_bad_typesN)	�__name__�
__module__�__qualname__rrrrrrr
r
r
rrsr�__main__)�__doc__ZunittestZTestCaserr�mainr
r
r
r�<module>s/

F1le Man4ger