%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyc |
� 5}�ac @ s d d l Z d d l Z d d l m Z m Z m Z d d l Z d d l m Z e j rp e j d e � � n y d d l m Z Wn e k r� d � Z n Xe j � Z [ d � Z d � Z d e j f d � � YZ d e j f d � � YZ d � Z e d k re � n d S( i����N( t check_py3k_warningst CleanImportt run_unittest( t test_supports %s must be run with the -3 flag( t __warningregistry__c C s t S( N( t False( t module_name( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyt check_deprecated_module s c s t � f d � t D� � S( sz Lookup the past warnings for module already loaded using test_support.import_module(..., deprecated=True) c 3 sW | ]M \ } } } � | k oN d | k oN t | t � oN d | k pN d | k Vq d S( s removeds modules packageN( t issubclasst DeprecationWarning( t .0t msgt clst line( R ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pys <genexpr> s ( t anyt past_warnings( R ( ( R s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyR s c C s/ y | j } Wn t k r n X| j � d S( N( R t AttributeErrort clear( t modulet registry( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyt reset_module_registry s t TestPy3KWarningsc B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s | j t | j � | � d S( N( t assertEqualt strt message( t selft _t warningt expected_message( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyt assertWarning% s c C s | j t | j � d � d S( Ni ( R t lent warnings( R R t recorder( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyt assertNoWarning( s c B s+ d } e | e f � � d i UWd QXd S( Ns* backquote not supported in 3.x; use repr()s `2`( R t SyntaxWarning( R t expected( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_py3kwarn.pyt test_backquote+ s c s7 d � � f d � } | d � | d � | d � d S( Ns/ parenthesized argument names are invalid in 3.xc s% e � e f � � | i UWd QXd S( N( R R"