Your IP : 216.73.216.138


Current Path : /opt/alt/python33/lib64/python3.3/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/idlelib/idle_test/__pycache__/test_warning.cpython-33.pyc

�
��f�
c@s�dZddlZddlmZddlZejZdejkZddlm	Z	ddlm
ZdZedZ
Gd	d
�d
ej�ZGdd�dej�Zed
kr�ejdddd�ndS(u6Test 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(ucaptured_stderruidle(urun(uPyShelluf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
u>>> cBs>|EeZdZejed�dd��Zdd�ZdS(uRunWarnTestu#Does not work when run within Idle.cCsZ|jtjt�tjd�|jtjtj�tjd�|jtjt�dS(NTF(uassertIsuwarningsushowwarningurunucapture_warningsuTrueuidle_showwarning_subprocuFalse(uself((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyutest_showwarnings"s


uRunWarnTest.test_showwarningscCsTt��E}tjdtdd|d�|jtj�|j�j��WdQXdS(NuTestutest_warning.pyicuLine of code(ucaptured_stderrurunuidle_showwarning_subprocuUserWarninguassertEqualuidlemsgu
splitlinesugetvalue(uselfuf((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyu
test_run_show*suRunWarnTest.test_run_showN(u__name__u
__module__u__qualname__uunittestuskipIfurunning_in_idleutest_showwarningsu
test_run_show(u
__locals__((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyuRunWarnTest suRunWarnTestcBsJ|EeZdZejed�dd��Zdd�Zdd�ZdS(	u
ShellWarnTestu#Does not work when run within Idle.cCsZ|jtjt�tjd�|jtjtj�tjd�|jtjt�dS(NTF(uassertIsuwarningsushowwarningushellucapture_warningsuTrueuidle_showwarninguFalse(uself((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyutest_showwarnings3s


uShellWarnTest.test_showwarningscCs/tjdtddd�}|jt|�dS(NuTestutest_warning.pyicuLine of code(ushelluidle_formatwarninguUserWarninguassertEqualuidlemsg(uselfus((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyutest_idle_formatter;su!ShellWarnTest.test_idle_formattercCsTt��E}tjdtdd|d�|jtj�|j�j��WdQXdS(NuTestutest_warning.pyicuLine of code(ucaptured_stderrushelluidle_showwarninguUserWarninguassertEqualushellmsgu
splitlinesugetvalue(uselfuf((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyutest_shell_showAsuShellWarnTest.test_shell_showN(	u__name__u
__module__u__qualname__uunittestuskipIfurunning_in_idleutest_showwarningsutest_idle_formatterutest_shell_show(u
__locals__((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyu
ShellWarnTest1su
ShellWarnTestu__main__u	verbosityiuexitF(u__doc__uunittestutest.supportucaptured_stderruwarningsushowwarningu__name__urunning_in_idleuidleliburunuPyShellushelluidlemsgushellmsguTestCaseuRunWarnTestu
ShellWarnTestumainuFalse(((uC/opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_warning.pyu<module>s		


?>