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_cgitb.cpython-310.opt-2.pyc
o

�i*
�@sZddlmZddlmZddlZddlZddlZGdd�dej�Ze	dkr+e�
�dSdS)�)�temp_dir)�assert_python_failureNc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�	TestCgitbcCsPd}|�t�|�d�|��|�t�|�d�|��|�t�|�d�|��dS)Nz
Hello Robbie!z<small>{}</small>z<strong>{}</strong>z<font color="#909090">{}</font>)�assertEqual�cgitb�small�format�strong�grey��self�text�r�,/usr/local/lib/python3.10/test/test_cgitb.py�
test_fonts	s�zTestCgitb.test_fontscCs:|�t�d�d�|�t�d�d�|�t�d�d�dS)N�)rrrr	r
)rrrr�test_blanksszTestCgitb.test_blanksc
CsZztd��ty,}zt�t���}|�d|�|�t|�|�WYd}~dSd}~ww�N�Hello World�
ValueError)rr�html�sys�exc_info�assertIn�str)r�errrrrr�	test_htmls��zTestCgitb.test_htmlcCsDztd��ty!t�t���}|�d|�|�d|�YdSwr)rrr
rrrrrrr�	test_texts�zTestCgitb.test_textcCs�t��}tddt|�dd�\}}}Wd�n1swY|��}|�d|�|�d|�|�d|�|�d|�|�d	|�dS)
N�-czFimport cgitb; cgitb.enable(logdir=%s); raise ValueError("Hello World")�utf-8�ZPYTHONIOENCODINGrrz<strong>&lt;module&gt;</strong>�<p>�</p>)rr�repr�decoder�rZtracedir�rc�outrrrr�%test_syshook_no_logdir_default_format's���z/TestCgitb.test_syshook_no_logdir_default_formatcCs~t��}tddt|�dd�\}}}Wd�n1swY|��}|�d|�|�d|�|�d|�|�d|�dS)	NrzUimport cgitb; cgitb.enable(format="text", logdir=%s); raise ValueError("Hello World")rr rrr!r")rrr#r$rZassertNotInr%rrr�"test_syshook_no_logdir_text_format6s���z,TestCgitb.test_syshook_no_logdir_text_formatN)	�__name__�
__module__�__qualname__rrrrr(r)rrrrrs
r�__main__)Ztest.support.os_helperrZtest.support.script_helperrZunittestrrZTestCaserr*�mainrrrr�<module>s>�