Your IP : 216.73.216.213
�
��f c @ s� d Z d d l Z d d l Z d d l Z d d � Z Gd d � d e j � Z e d k r� e j d d � �N Z
e e j � d k r� e j
d
d
d e j j � � n e j
d
d
� Wd QXx e
D] Z e e j � q� Wn d S( u�
This module has a number of tests that raise different kinds of warnings.
When the tests are run, the warnings are caught and their messages are printed
to stdout. This module also accepts an arg that is then passed to
unittest.main to affect the behavior of warnings.
Test_TextTestRunner.test_warnings executes this script with different
combinations of warnings args and -W flags and check that the output is correct.
See #10535.
i Nc C s t j d t � d S( Nu rw( u warningsu warnu RuntimeWarning( ( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu warnfun s u warnfunc B sh | Ee Z d Z d d � Z d d � Z d d � Z d d � Z d d
� Z d d � Z d
d � Z d S( u TestWarningsc C s4 | j d d � | j d d � | j d d � d S( Ni i i i i ( u assertEquals( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_assert s u TestWarnings.test_assertc C s | j d � | j d � d S( Ni T( u
failUnlessu True( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_fail s
u TestWarnings.test_failc C s$ | j d d � | j d d � d S( Ni i i i ( u assertAlmostEqualu assertNotAlmostEqual( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_other_unittest s u TestWarnings.test_other_unittestc C s4 t j d t � t j d t � t j d t � d S( Nu dw( u warningsu warnu DeprecationWarning( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_deprecation% s u TestWarnings.test_deprecationc C s4 t j d t � t j d t � t j d t � d S( Nu iw( u warningsu warnu
ImportWarning( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_import* s u TestWarnings.test_importc C s+ t j d � t j d � t j d � d S( Nu uw( u warningsu warn( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu test_warning0 s
u TestWarnings.test_warningc C s t � t � t � d S( N( u warnfun( u self( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu
test_function7 s u TestWarnings.test_functionN(
u __name__u
__module__u __qualname__u test_assertu test_failu test_other_unittestu test_deprecationu test_importu test_warningu
test_function( u
__locals__( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu TestWarnings s u TestWarningsu __main__u recordi u exitu warningsTF( u __doc__u sysu unittestu warningsu warnfunu TestCaseu TestWarningsu __name__u catch_warningsu Trueu wsu lenu argvu mainu Falseu popu wu printu message( ( ( uA /opt/alt/python33/lib64/python3.3/unittest/test/_test_warnings.pyu <module> s +"