%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/idlelib/idle_test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyc

ó
Pêáac@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((s:/usr/local/lib/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((s:/usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyt
test_run_show*s(t__name__t
__module__tunittesttskipIftrunning_in_idleR
R(((s:/usr/local/lib/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((s:/usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyR
3s


cCs/tjdtdddƒ}|jt|ƒdS(NRstest_warning.pyicsLine of code(Rtidle_formatwarningRRR(Rts((s:/usr/local/lib/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((s:/usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyttest_shell_showAs(RRRRRR
R R"(((s:/usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyR1s	t__main__t	verbosityitexit(t__doc__Rttest.test_supportRRRRRtidlelibRRRRR!tTestCaseRRtmainR(((s:/usr/local/lib/python2.7/idlelib/idle_test/test_warning.pyt<module>s		


Zerion Mini Shell 1.0