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.10/test/__pycache__/test_exception_variations.cpython-310.pyc
o

�il�@s2ddlZGdd�dej�Zedkre��dSdS)�Nc@sdeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�ExceptionTestCasecCsTd}d}d}zztd��d}YWd}nd}w|�|�|�|�|�|�dS)NFznyaa!T)�	Exception�
assertTrue�assertFalse��self�
hit_except�hit_else�hit_finally�r�;/usr/local/lib/python3.10/test/test_exception_variations.py�test_try_except_else_finallys

z.ExceptionTestCase.test_try_except_else_finallycCsVd}d}d}zzWnd}Ynd}Wd}nd}w|�|�|�|�|�|�dS�NFT�rrrrrr�)test_try_except_else_finally_no_exceptions�

z;ExceptionTestCase.test_try_except_else_finally_no_exceptioncCsFd}d}zztd��d}YWd}nd}w|�|�|�|�dS)NFzyarr!T�rr�rrr
rrr�test_try_except_finally)s
z)ExceptionTestCase.test_try_except_finallycCsBd}d}z
zWnd}YWd}nd}w|�|�|�|�dSrrrrrr�$test_try_except_finally_no_exception7s�
z6ExceptionTestCase.test_try_except_finally_no_exceptioncCs(d}ztd��d}Y|�|�dS)NFzahoy!Tr�rrrrr�test_try_exceptEsz!ExceptionTestCase.test_try_exceptcCs$d}zWnd}Y|�|�dSr)rrrrr�test_try_except_no_exceptionOsz.ExceptionTestCase.test_try_except_no_exceptioncCs6d}d}ztd��d}Y|�|�|�|�dS)NFzfoo!T�rrr�rrr	rrr�test_try_except_elseYs
z&ExceptionTestCase.test_try_except_elsecCs8d}d}zWnd}Ynd}|�|�|�|�dSrrrrrr�!test_try_except_else_no_exceptiongs
z3ExceptionTestCase.test_try_except_else_no_exceptioncCs"d}zWd}nd}w|�|�dSr)r)rr
rrr�test_try_finally_no_exceptionus
z/ExceptionTestCase.test_try_finally_no_exceptioncCsdd}d}d}zzztd��d}YWd}nd}wWd}nd}w|�|�|�|�|�|�dS)NFzinner exceptionTr)rr
�hit_inner_exceptZhit_inner_finallyrrr�test_nesteds

zExceptionTestCase.test_nestedcCs�d}d}d}d}d}zzzWn
d}Ytd��d}td��d}YWd}nd}w|�|�|�|�|�|�|�|�|�|�dS)NFTzouter exceptionr)rr	r
rrZhit_inner_elserrr�test_nested_else�s*�



z"ExceptionTestCase.test_nested_elseN)�__name__�
__module__�__qualname__r
rrrrrrrrrrrrrrrs


r�__main__)ZunittestZTestCaserr �mainrrrr�<module>s,�