File "test_warning.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyc
File size: 3.31 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


V~gc@sdZddlZddlmZddlZejZdejkZddlm	Z	ddlm
ZdZedZ
d	ejfd
YZdejfdYZed
krejdddendS(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).
iN(tcaptured_stderrtidle(trun(tPyShellsf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
s>>> tRunWarnTestcBs,eZejeddZdZRS(s#Does not work when run within Idle.cCsZ|jtjttjt|jtjtjtjt|jtjtdS(N(tassertIstwarningstshowwarningRtcapture_warningstTruetidle_showwarning_subproctFalse(tself((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_showwarnings"s


cCsTtE}tjdtdd|d|jtj|jjWdQXdS(NtTeststest_warning.pyicsLine of code(RRR
tUserWarningtassertEqualtidlemsgt
splitlinestgetvalue(Rtf((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyt
test_run_show*s(t__name__t
__module__tunittesttskipIftrunning_in_idleR
R(((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyR st
ShellWarnTestcBs5eZejeddZdZdZRS(s#Does not work when run within Idle.cCsZ|jtjttjt|jtjtjtjt|jtjtdS(N(RRRtshellRR	tidle_showwarningR(R((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyR
3s


cCs/tjdtddd}|jt|dS(NRstest_warning.pyicsLine of code(Rtidle_formatwarningRRR(Rts((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_idle_formatter;scCsTtE}tjdtdd|d|jtj|jjWdQXdS(NRstest_warning.pyicsLine of code(RRRRRtshellmsgRR(RR((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyttest_shell_showAs(RRRRRR
R R"(((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyR1s	t__main__t	verbosityitexit(t__doc__Rttest.test_supportRRRRRtidlelibRRRRR!tTestCaseRRtmainR(((sC/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_warning.pyt<module>s