Viewing File: /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/test_warning.cpython-35.opt-1.pyc
Yf
@ s d Z d d l Z d d l m Z d d l Z e j Z d e j k Z d d l m Z d d l m
Z d Z e d Z
Gd d
d
e j Z Gd d d e j Z e d
k r e j d d d d d S)a6 Test 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).
N)captured_stderrZidle)run)PyShellzf
Warning (from warnings module):
File "test_warning.py", line 99
Line of code
UserWarning: Test
z>>> c @ s: e Z d Z e j e d d d Z d d Z d S)RunWarnTestz#Does not work when run within Idle.c C sZ | j t j t t j d | j t j t j t j d | j t j t d S)NTF)assertIswarningsshowwarningr capture_warningsidle_showwarning_subproc)self r C/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_warning.pytest_showwarnings"