• File: test_warning.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__/test_warning.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.32 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~d
@sddlmZddlmZddlZddlmZddlZejZdej	kZ
dZedZGdd	d	ej
ZGd
ddej
Ze	dkrejd
ddS))run)pyshellN)captured_stderrZidlezf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
z>>> c@s(eZdZeedddZddZdS)RunWarnTestz#Does not work when run within Idle.cCsD|tjttd|tjtjtd|tjtdS)NTF)assertIswarningsshowwarningrcapture_warningsidle_showwarning_subproc)selfrC/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_warning.pytest_showwarnings!s


zRunWarnTest.test_showwarningsc	CsBt2}tdtdd|d|t|WdQRXdS)NTestztest_warning.pyczLine of code)rrr
UserWarningassertEqualidlemsg
splitlinesgetvalue)rfrrr

test_run_show)szRunWarnTest.test_run_showN)__name__
__module____qualname__unittestskipIfrunning_in_idlerrrrrr
rsrc@s0eZdZeedddZddZddZdS)	
ShellWarnTestz#Does not work when run within Idle.cCsD|tjttd|tjtjtd|tjtdS)NTF)rrrshellr	idle_showwarning)rrrr
r3s


zShellWarnTest.test_showwarningscCs"tdtddd}|t|dS)Nrztest_warning.pyrzLine of code)rZidle_formatwarningrrr)rsrrr
test_idle_formatter;sz!ShellWarnTest.test_idle_formatterc	CsBt2}tdtdd|d|t|WdQRXdS)Nrztest_warning.pyrzLine of code)rrr rrshellmsgrr)rrrrr
test_shell_showAszShellWarnTest.test_shell_showN)	rrrrrrrr"r$rrrr
r1sr__main__)	verbosity)ZidlelibrrrrZtest.supportrrrrrrr#ZTestCaserrmainrrrr
<module>s