ó
‹wÛjc           @   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 re ƒ  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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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 Vq d S(   s    removeds    modules    packageN(   t
   issubclasst   DeprecationWarning(   t   .0t   msgt   clst   line(   R   (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pys	   <genexpr>   s   (   t   anyt   past_warnings(   R   (    (   R   sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/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"   (   t   s(   R#   (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   check2   s    s   def f((x)): passs   def f((((x))), (y)): passs   def f((x), (((y))), m=32): pass(    (   R   R&   (    (   R#   sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_paren_arg_names0   s
    

c      
   C   sV  d „  } d d d g } t  d t f ƒ �&} x| D]\ } } | d j | ƒ ƒ |  j d  | | ƒ | j ƒ  y | d	 j | ƒ ƒ Wn t k
 rš n X|  j d  | | ƒ | j ƒ  | d
 j | ƒ ƒ |  j d  | | ƒ | j ƒ  | d j | ƒ ƒ |  j d  | | ƒ | j ƒ  | d j | ƒ ƒ |  j d  | | ƒ | j ƒ  q4 WWd  QXd  S(   Nc         R   s   d „  } |  i | d 6Ud  S(   Nc          [   s   d  S(   N(    (   t   kwargs(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   f>   t    R)   (    (   t   exprR)   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt	   safe_exec=   s    	t   Trues/   assignment to True or False is forbidden in 3.xR   t   nonlocals   nonlocal is a keyword in 3.xR*   s   {0} = Falses   obj.{0} = Trues   def {0}(): passs   class {0}: passs   def f({0}=43): pass(   R-   s/   assignment to True or False is forbidden in 3.x(   R   s/   assignment to True or False is forbidden in 3.x(   R.   s   nonlocal is a keyword in 3.x(   R    R"   t   formatR   t   Nonet   resett	   NameError(   R   R,   t   testst   wt   keywordR#   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_forbidden_names;   s0    		



c         C   sX   d } t  ƒ  �C } |  j t t k  | | ƒ | j ƒ  |  j t t k  | | ƒ Wd  QXd  S(   Ns0   type inequality comparisons not supported in 3.x(   R    R   t   intR   R1   t   typet   object(   R   R#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt    test_type_inequality_comparisonsZ   s
    
c         C   s[   d } t  ƒ  �F } |  j t g  k  | | ƒ | j ƒ  |  j t ƒ  d k  | | ƒ Wd  QXd  S(   Ns,   comparing unequal types not supported in 3.xi   i   (   i   i   (   R    R   R   R1   R9   (   R   R#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt"   test_object_inequality_comparisonsa   s
    
c      	   C   s³   d } t  ƒ  �ž } |  j i  i d d 6k  | | ƒ | j ƒ  |  j i  i  k | | ƒ | j ƒ  |  j i  i d d 6k | | ƒ | j ƒ  |  j i d d 6i  k | | ƒ Wd  QXd  S(   Ns0   dict inequality comparisons not supported in 3.xi   i   (   R    R   R1   (   R   R#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt    test_dict_inequality_comparisonsh   s     

 
c         C   s…   d } d „  } | d ƒ j  \ } | d ƒ j  \ } t ƒ  �C } |  j | | k | | ƒ | j ƒ  |  j | | k  | | ƒ Wd  QXd  S(   Ns%   cell comparisons not supported in 3.xc            s   ‡  f d †  } | S(   Nc              s   ˆ  S(   N(    (    (   t   x(    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   gv   s    (    (   R=   R>   (    (   R=   sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR)   u   s    i    i   (   t   func_closureR    R   R1   (   R   R#   R)   t   cell0t   cell1R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt    test_cell_inequality_comparisonss   s    	
c         C   sÈ   d } d „  } d „  } t  ƒ  �¡ } |  j | j | j k  | | ƒ | j ƒ  |  j | j | j k | | ƒ | j ƒ  |  j | j | j k | | ƒ | j ƒ  |  j | j | j k | | ƒ Wd  QXd  S(   Ns0   code inequality comparisons not supported in 3.xc         S   s   d  S(   N(    (   R=   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR)   ‚   s    c         S   s   d  S(   N(    (   R=   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR>   „   s    (   R    R   t	   func_codeR1   (   R   R#   R)   R>   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt    test_code_inequality_comparisons€   s    		


c         C   s  d } t  } i  j } t ƒ  �ô } |  j | | k  | | ƒ | j ƒ  |  j | | k | | ƒ | j ƒ  |  j | | k | | ƒ | j ƒ  |  j | | k | | ƒ | j ƒ  |  j | | k | ƒ |  j | | k | ƒ d „  } |  j | | k | ƒ |  j | | k | ƒ Wd  QXd  S(   NsA   builtin_function_or_method order comparisons not supported in 3.xc         S   s   |  S(   N(    (   R=   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   <lambda>Ÿ   R*   (   t   evalt   getR    R   R1   R!   (   R   R#   t   funct   methR4   t   lam(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt+   test_builtin_function_or_method_comparisons�   s"    	



	c      
   C   s‹   d } t  j d ƒ } xo d D]g } | | } t ƒ  �L } |  j t | | ƒ | | ƒ | j ƒ  |  j t | | d  ƒ | | ƒ Wd  QXq Wd  S(   Ns   %s has been removed in 3.xi    t   f_exc_tracebackt   f_exc_valuet
   f_exc_type(   RL   RM   RN   (   t   syst	   _getframeR    R   t   getattrR1   t   setattrR0   (   R   t   templateR)   t   attrR#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_frame_attributes£   s    

c      	   C   sÅ   d } t  d ƒ } d „  } t ƒ  �› } |  j | j d | ƒ | | ƒ | j ƒ  |  j t | d | ƒ| | ƒ | j ƒ  |  j | j | ƒ | | ƒ | j ƒ  |  j t | | ƒ | | ƒ Wd  QXd  S(   Ns(   the cmp argument is not supported in 3.xi   c         S   s   d S(   Niÿÿÿÿ(    (   R=   t   y(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRE   °   R*   t   cmp(   t   rangeR    R   t   sortR1   t   sorted(   R   R#   t   lstRW   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_sort_cmp_arg­   s    	


c         C   s5   d } t  ƒ  �  } |  j t j ƒ  | | ƒ Wd  QXd  S(   Ns8   sys.exc_clear() not supported in 3.x; use except clauses(   R    R   RO   t	   exc_clear(   R   R#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_sys_exc_clear»   s    c         C   sQ   d } d d d „  ƒ  Y} | ƒ  } t  ƒ  �  } |  j t | ƒ | | ƒ Wd  QXd  S(   Ns0   __members__ and __methods__ not supported in 3.xt   Cc           B   s   e  Z d  g Z d g Z RS(   t   at   b(   t   __name__t
   __module__t   __methods__t   __members__(    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR_   Â   s   	(    (   R    R   t   dir(   R   R#   R_   t   cR4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_methods_membersÀ   s
    	c            s~   d } t  t ƒ �f ‰  t ƒ  � } |  j ˆ  j | | ƒ Wd  QX‡  f d †  } t ƒ  � } |  j | ƒ  | | ƒ Wd  QXWd  QXd  S(   Ns#   file.softspace not supported in 3.xc              s   d ˆ  _  d  S(   Ni    (   t	   softspace(    (   R)   (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   setÎ   s    (   t   filet   __file__R    R   Ri   (   R   R#   R4   Rj   (    (   R)   sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_softspaceÉ   s    c      
   C   sè   d t  f d „  ƒ  Y} d d d „  ƒ  Y} d } x² | ƒ  | ƒ  f D]ž } t ƒ  �� } |  j | d d !| | j d ƒ ƒ | j ƒ  | d	 d
 5|  j d  | | j d ƒ ƒ | j ƒ  d | d
 d +|  j d  | | j d ƒ ƒ Wd  QXqB Wd  S(   Nt   Spamc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   t   it   j(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __getslice__Õ   R*   c         S   s   d  S(   N(    (   R   Ro   Rp   t   what(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __setslice__Ö   R*   c         S   s   d  S(   N(    (   R   Ro   Rp   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __delslice__×   R*   (   Rb   Rc   Rq   Rs   Rt   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRn   Ô   s   		t   Eggc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   Ro   t   h(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRq   Ù   R*   c         S   s   d  S(   N(    (   R   Ro   Rp   Rr   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRs   Ú   R*   c         S   s   d  S(   N(    (   R   Ro   Rp   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRt   Û   R*   (   Rb   Rc   Rq   Rs   Rt   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRu   Ø   s   		s6   in 3.x, __{0}slice__ has been removed; use __{0}item__i   i   RG   i   i   t   delt   eggsi   Rj   (    (   R9   R    R   R/   R1   R0   (   R   Rn   Ru   R#   t   objR4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_slice_methodsÓ   s    #


c         B   s+   d } e  | e f ƒ � d d  UWd  QXd  S(   Ns1   tuple parameter unpacking has been removed in 3.xs   def f((a, b)): pass(   R    R"   (   R   R#   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_tuple_parameter_unpackingé   s    c         C   s5   d } t  ƒ  �  } |  j t d ƒ | | ƒ Wd  QXd  S(   Ns   buffer() not supported in 3.xR`   (   R    R   t   buffer(   R   R#   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_bufferî   s    c         C   sJ   d } t  t ƒ �2 } t ƒ  �  } |  j | j ƒ  | | ƒ Wd  QXWd  QXd  S(   Ns@   f.xreadlines() not supported in 3.x, try 'for line in f' instead(   Rk   Rl   R    R   t
   xreadlines(   R   R#   R)   R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_file_xreadlinesó   s    c         C   s,  t  ƒ  �} d t f d „  ƒ  Y} |  j t | j ƒ d ƒ | j ƒ  d t f d „  ƒ  Y} |  j t | j ƒ d ƒ |  j d  | d ƒ | j ƒ  d t f d	 „  ƒ  Y} |  j t | j ƒ d ƒ |  j d  | d ƒ | j ƒ  d
 t f d „  ƒ  Y} |  j t | j ƒ d ƒ d t f d „  ƒ  Y} d | f d „  ƒ  Y} |  j t | j ƒ d ƒ | j ƒ  d | f d „  ƒ  Y} |  j t | j ƒ d ƒ |  j d  | d ƒ | j ƒ  d | f d „  ƒ  Y} |  j t | j ƒ d ƒ |  j d  | d ƒ | j ƒ  d
 | f d „  ƒ  Y} |  j t | j ƒ d ƒ Wd  QXd  S(   Nt   WarnOnlyCmpc           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   t   other(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __cmp__þ   R*   (   Rb   Rc   R‚   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR€   ý   s   i    t
   WarnOnlyEqc           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __eq__  R*   (   Rb   Rc   R„   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRƒ     s   i   s7   Overriding __eq__ blocks inheritance of __hash__ in 3.xt   WarnCmpAndEqc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‚     R*   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR„   	  R*   (   Rb   Rc   R‚   R„   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR…     s   	t   NoWarningOnlyHashc           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   __hash__  R*   (   Rb   Rc   R‡   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR†     s   t   DefinesAllThreec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‚     R*   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR„     R*   c         S   s   d  S(   N(    (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‡     R*   (   Rb   Rc   R‚   R„   R‡   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRˆ     s   		c           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‚     R*   (   Rb   Rc   R‚   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR€     s   c           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR„     R*   (   Rb   Rc   R„   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyRƒ     s   c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‚   !  R*   c         S   s   d  S(   N(    (   R   R�   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR„   "  R*   (   Rb   Rc   R‚   R„   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR…      s   	c           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‡   (  R*   (   Rb   Rc   R‡   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR†   '  s   (   R    R9   R   R   R   R1   R   R0   (   R   R4   R€   Rƒ   R…   R†   Rˆ   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_hash_inheritanceú   s@    





c         C   s}   d d l  m } m } d } d } t ƒ  �L } |  j | |  ƒ | | ƒ | j ƒ  |  j | t d ƒ d ƒ | | ƒ Wd  QXd  S(   Niÿÿÿÿ(   t
   isCallablet   sequenceIncludessL   operator.isCallable() is not supported in 3.x. Use hasattr(obj, '__call__').sM   operator.sequenceIncludes() is not supported in 3.x. Use operator.contains().i   i   (   t   operatorRŠ   R‹   R    R   R1   RX   (   R   RŠ   R‹   t   callable_warnt   seq_warnR4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_operator+  s    
c         B   s+   d } e  | e f ƒ � d d  UWd  QXd  S(   Ns-   non-ascii bytes literals not supported in 3.xs   b'½'(   R    R"   (   R   R#   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_nonascii_bytes_literals7  s    (   Rb   Rc   R   R!   R$   R'   R6   R:   R;   R<   RB   RD   RK   RU   R\   R^   Rh   Rm   Rz   R{   R}   R   R‰   R�   R�   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR   #   s.   												
					
					1	t   TestStdlibRemovalsc        )   B   sq   e  Z dl Z i dm d0 6dn dY 6do d\ 6Z dp Z e de „ Z df „  Z dg „  Z dh „  Z	 di „  Z
 dj „  Z dk „  Z RS(q   t   audiodevt   imputilt   mutext   usert   newt   rexect   Bastiont   compilert   dircachet	   mimetoolst   fpformatt   ihookst   mhlibt   statvfst   htmllibt   sgmllibt   rfc822t   sunaudiot   puret   ALt   alt   CDt   cdt   cddbt   cdplayert   CLt   clt   DEVICEt   GLt   glt   ERRNOt   FILEt   FLt   flpt   flt   fmt   GETt   GLWSt   imgfilet   INt   IOCTLt   jpegt   panelt   panelparsert   readcdt   SVt   torgbt   WAITt   irixt   autoGILt   Carbont   OSATerminologyt   icgluet   Navt   aepackt   aetoolst   aetypest   applesinglet   appletrawmaint   appletrunnert   argvemulatort   bgenlocationst   EasyDialogst	   macerrorst
   macostoolst   findertoolst	   FrameWorkt   ict   gensuitemodulet   icopent   macresourcet   MiniAEFramet   pimpt   PixMapWrappert   terminalcommandt   videoreadert   _builtinSuitest   CodeWarriort   Explorert   Findert   Netscapet	   StdSuitest   SystemEventst   Terminalt   cfmfilet   bundlebuildert
   buildtoolst   ColorPickert	   Audio_mact   darwint   sunaudiodevt   SUNAUDIODEVt   sunos5t   bsddb185t   Canvast   dlt   linuxaudiodevt   imageopt   svt   bsddbt   dbhashc         C   sQ  | t  j k r_ t  j | } t | d d ƒ } d } | j d ƒ s_ t j rX d | GHn  d Sn  t | ƒ �à t j	 ƒ  �Í t j
 d d	 t t ƒ t j
 d d
 t t ƒ y t | d d ƒWn` t k
 rì } |  j | | j d d | ƒ nU t k
 r| sA|  j d j | ƒ ƒ qAn& Xt | ƒ sA|  j d j | ƒ ƒ n  Wd QXWd QXd S(   sw   Make sure the specified module, when imported, raises a
        DeprecationWarning and specifies itself in the message.Rl   R*   s   .pys   .pycs   .pyos\   Cannot test the Python 3 DeprecationWarning of the %s module, the C module is already loadedNt   errors   .+ (module|package) .+ removeds   .+ removed .+ (module|package)t   leveli    s%   %s warning didn't contain module names.   Non-optional module {0} raised an ImportError.s%   DeprecationWarning not raised for {0}(   s   .pys   .pycs   .pyo(   RO   t   modulesRQ   R0   t   endswithR   t   verboseR   R   t   catch_warningst   filterwarningsR	   Rb   t
   __import__t   assertInt   argst   ImportErrort   failR/   R   (   R   R   t   optionalt   modt   filenamet   exc(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   check_removale  s8    		 

c         C   s%   x |  j  D] } |  j | ƒ q
 Wd  S(   N(   t   all_platformsR  (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt"   test_platform_independent_removals�  s    c         C   s:   x3 |  j  j t j g  ƒ D] } |  j | d t ƒq Wd  S(   NR  (   t   inclusive_platformsRG   RO   t   platformR  R-   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_platform_specific_removals“  s    c         C   s+   x$ |  j  D] } |  j | d t ƒq
 Wd  S(   NR  (   t   optional_modulesR  R-   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_optional_module_removals˜  s    c      	   C   sx   d } d „  } xb d D]Z } t  | ƒ } t | ƒ t ƒ  � } | j d | d  ƒ Wd  QX|  j t | j ƒ | ƒ q Wd  S(	   Ns4   In 3.x, os.path.walk is removed in favor of os.walk.c         S   s   d  S(   N(    (   t   wheret   namesR   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   dumboŸ  R*   t   ntpatht   macpatht
   os2emxpatht	   posixpatht   crashers(   R  R  R  R  (   Rþ   R   R    t   walkR0   R   R   R   (   R   R   R  t   path_modR  R4   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_os_path_walk�  s    	
c      
   C   s`   d d l  m } t t j ƒ t j ƒ  �1 t j d d ƒ |  j t	 t
 | t d ƒ ƒ Wd  QXd  S(   Niÿÿÿÿ(   t   addR÷   t   reducei
   (   RŒ   R  R   t   unittestt   caseR   Rü   Rý   t   assertRaisesR	   R  RX   (   R   R  (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_reduce_move§  s
    c         C   sS   d d  l  } t | ƒ t j ƒ  �+ t j d d t ƒ |  j t | j ƒ Wd  QXd  S(   NiÿÿÿÿR÷   s   .*MutableString(   t
   UserStringR   R   Rü   Rý   R	   R  t   MutableString(   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   test_mutablestring_removal¯  s    
(   R’   R“   R”   R•   R–   R—   R˜   R™   Rš   R›   Rœ   R�   Rž   RŸ   R    R¡   R¢   R£   (   R¤   R¥   R¦   R§   R¨   R©   Rª   R«   R¬   R­   R®   R¯   R°   R±   R²   R³   R´   Rµ   R¶   R·   R¸   R¹   Rº   R»   R¼   R½   R¾   R¿   RÀ   RÁ   ((   RÃ   RÄ   RÅ   RÆ   RÇ   RÈ   RÉ   RÊ   RË   RÌ   RÍ   RÎ   RÏ   RÐ   RÑ   RÒ   RÓ   RÔ   RÕ   RÖ   R×   RØ   RÙ   RÚ   RÛ   RÜ   RÝ   RÞ   Rß   Rà   Rá   Râ   Rã   Rä   Rå   Ræ   Rç   Rè   Ré   Rê   (   Rì   Rí   (   Rï   Rð   Rñ   Rò   Ró   Rô   Rõ   Rö   (   Rb   Rc   R  R
  R  R   R  R	  R  R  R  R  R"  (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyR‘   =  sH                         
 (				
	c           C   s   t  t t ƒ d  S(   N(   R   R   R‘   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt	   test_mainº  s    t   __main__(   R  RO   t   test.test_supportR    R   R   R   t   testR   t   py3kwarningt   SkipTestRb   R   t	   _registryR  R   t   keysR   R   t   TestCaseR   R‘   R#  (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_py3kwarn.pyt   <module>   s(   
			ÿ }	