ó
wÛjc           @   ss   d  d l  Z  d  d l m Z d  d l Z d Z e j Z d e  j f d     YZ d	   Z	 e
 d
 k ro e	   n  d S(   i˙˙˙˙N(   t   test_supportt   alphat   betat	   candidatet   finalt
   FutureTestc           B   s   e  Z d    Z d   Z RS(   c         C   s   t  } xn t t  D]` } t t | d   } | d  k	 r t | t j  r |  j | | k d |  | j |  q q W|  j	 t
 |  d d |  d  S(   Ns(   %r should have been in all_feature_namesi    s"   all_feature_names has too much: %r(   t   featurest   dirt
   __future__t   getattrt   Nonet
   isinstancet   _Featuret
   assertTruet   removet   assertEqualt   len(   t   selft   given_feature_namest   namet   obj(    (    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___future__.pyt
   test_names   s    	c            sç   xà t  D]Ĝ } t t |  } | j   } | j   } |  j   |  j     f d   } | | d  | d  k	 r | | d    | | k  d  n    t | d  d  t	 d d d	 | j
    t t | d  t  d
  q Wd  S(   Nc            sĉ     t  |  t  d |   t |   d d |  |  \ } } } } }   t  | t  d |    t  | t  d |    t  | t  d |    t  | t  d |    | t k d |    t  | t  d	 |  d  S(
   Ns   %s isn't tuplei   s   %s isn't 5-tuples   %s major isn't ints   %s minor isn't ints   %s micro isn't ints   %s level isn't strings!   %s level string has unknown values   %s serial isn't int(   R   t   tupleR   t   intt
   basestringt   GOOD_SERIALS(   t   tR   t   majort   minort   microt   levelt   serial(   t   at   e(    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___future__.pyt   check"   s    t   optionalt	   mandatorys8   optional not less than mandatory, and mandatory not Nonet   compiler_flags(   feature is missing a .compiler_flag attrt    s   <test>t   execs   .compiler_flag isn't int(   R   R	   R   t   getOptionalReleaset   getMandatoryReleaseR   R   R
   t   hasattrt   compileR%   R   R   (   R   t   featuret   valueR#   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___future__.pyt   test_attributes   s"    		
(   t   __name__t
   __module__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___future__.pyR   	   s   	c           C   s   t  j t  d  S(   N(   R    t   run_unittestR   (    (    (    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___future__.pyt	   test_main=   s    t   __main__(   R   R   R   R   (   t   unittestt   testR    R   R   t   all_feature_namesR   t   TestCaseR   R2   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___future__.pyt   <module>   s   	4	