403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.222.25.95
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/test_warning.cpython-36.pyc
3

� f�
�@s�dZddlmZddlmZddlZddlmZddlZej	Z	de	j
kZdZedZ
Gd	d
�d
ej�ZGdd�dej�Ze
d
kr�ejdd�dS)a6Test warnings replacement in pyshell.py and run.py.

This file could be expanded to include traceback overrides
(in same two modules). If so, change name.
Revise if output destination changes (http://bugs.python.org/issue18318).
Make sure warnings module is left unaltered (http://bugs.python.org/issue18081).
�)�run)�pyshellN)�captured_stderrZidlezf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
z>>> c@s(eZdZejed�dd��Zdd�ZdS)�RunWarnTestz#Does not work when run within Idle.cCsD|jtjt�tjd�|jtjtj�tjd�|jtjt�dS)NTF)�assertIs�warnings�showwarningr�capture_warnings�idle_showwarning_subproc)�self�r�C/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_warning.py�test_showwarnings!s


zRunWarnTest.test_showwarningscCsBt��2}tjdtdd|d�|jtj�|j�j��WdQRXdS)N�Testztest_warning.py�czLine of code)rrr
�UserWarning�assertEqual�idlemsg�
splitlines�getvalue)r�frrr
�
test_run_show)szRunWarnTest.test_run_showN)�__name__�
__module__�__qualname__�unittest�skipIf�running_in_idlerrrrrr
rsrc@s0eZdZejed�dd��Zdd�Zdd�ZdS)	�
ShellWarnTestz#Does not work when run within Idle.cCsD|jtjt�tjd�|jtjtj�tjd�|jtjt�dS)NTF)rrr�shellr	�idle_showwarning)rrrr
r3s


zShellWarnTest.test_showwarningscCs"tjdtddd�}|jt|�dS)Nrztest_warning.pyrzLine of code)rZidle_formatwarningrrr)r�srrr
�test_idle_formatter;sz!ShellWarnTest.test_idle_formattercCsBt��2}tjdtdd|d�|jtj�|j�j��WdQRXdS)Nrztest_warning.pyrzLine of code)rrr rr�shellmsgrr)rrrrr
�test_shell_showAszShellWarnTest.test_shell_showN)	rrrrrrrr"r$rrrr
r1sr�__main__�)�	verbosity)�__doc__ZidlelibrrrrZtest.supportrrrrrrr#ZTestCaserr�mainrrrr
�<module>s
	

Youez - 2016 - github.com/yon3zu
LinuXploit