403Webshell
Server IP : 104.21.93.192  /  Your IP : 216.73.216.84
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /lib64/python2.7/idlelib/idle_test/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python2.7/idlelib/idle_test/test_warning.pyc
�
{fc@s�dZddlZddlmZddlZejZdejkZddlm	Z	ddlm
ZdZedZ
d	ejfd
��YZdejfd��YZed
kr�ejddde�ndS(s6Test 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).
i����N(tcaptured_stderrtidle(trun(tPyShellsf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
s>>> tRunWarnTestcBs,eZejed�d��Zd�ZRS(s#Does not work when run within Idle.cCsZ|jtjt�tjt�|jtjtj�tjt�|jtjt�dS(N(tassertIstwarningstshowwarningRtcapture_warningstTruetidle_showwarning_subproctFalse(tself((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_showwarnings"s


cCsTt��E}tjdtdd|d�|jtj�|j�j��WdQXdS(NtTeststest_warning.pyicsLine of code(RRR
tUserWarningtassertEqualtidlemsgt
splitlinestgetvalue(Rtf((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyt
test_run_show*s(t__name__t
__module__tunittesttskipIftrunning_in_idleR
R(((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyR st
ShellWarnTestcBs5eZejed�d��Zd�Zd�ZRS(s#Does not work when run within Idle.cCsZ|jtjt�tjt�|jtjtj�tjt�|jtjt�dS(N(RRRtshellRR	tidle_showwarningR(R((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyR
3s


cCs/tjdtddd�}|jt|�dS(NRstest_warning.pyicsLine of code(Rtidle_formatwarningRRR(Rts((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_idle_formatter;scCsTt��E}tjdtdd|d�|jtj�|j�j��WdQXdS(NRstest_warning.pyicsLine of code(RRRRRtshellmsgRR(RR((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_shell_showAs(RRRRRR
R R"(((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyR1s	t__main__t	verbosityitexit(t__doc__Rttest.test_supportRRRRRtidlelibRRRRR!tTestCaseRRtmainR(((s6/usr/lib64/python2.7/idlelib/idle_test/test_warning.pyt<module>s		


Youez - 2016 - github.com/yon3zu
LinuXploit