HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/__pycache__/test_unary.cpython-37.pyc
B

��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�+/usr/local/lib/python3.7/test/test_unary.py�
test_negativeszUnaryOpTestCase.test_negativecCsL|�dd�|�dd�|�dd�|�dd�|�dd�|�dd�dS)Nrrg@y@)r)rrrr	�
test_positiveszUnaryOpTestCase.test_positivecCs8|�ddk�|�dd�|�dd�|�ddk�dS)Nrrr)rr)rrrr	�test_invertszUnaryOpTestCase.test_invertcCsJd}|�td|�dk�|�td|�dk�|�td|�dk�dS)NZ 99999999999999999999999999999999�+l��>g-��-�;�-l������>g-��-�;�~l����>g-��-�;)r�eval)rZninesrrr	�test_no_overflowsz UnaryOpTestCase.test_no_overflowcCs4|�dd�|�dd�|�dd�|�dd�dS)Ni����i��)r)rrrr	�test_negation_of_exponentiation#sz/UnaryOpTestCase.test_negation_of_exponentiationcCsRx0dD](}|�tt|d�|�tt|d�qW|�ttd�|�ttd�dS)N)r
rrzb'a'z'a'z~2jz~2.0)ZassertRaises�	TypeErrorr)r�oprrr	�test_bad_types+s

zUnaryOpTestCase.test_bad_typesN)	�__name__�
__module__�__qualname__r
rrrrrrrrr	rsr�__main__)�__doc__ZunittestZTestCaserr�mainrrrr	�<module>s/