Your IP : 216.73.216.85
��Yfu � @ sZ d d l Z d d l Z d Z e j Z Gd d � d e j � Z e d k rV e j � d S)
� N�alpha�beta� candidate�finalc @ s( e Z d Z d d � Z d d � Z d S)�
FutureTestc C s� t d d � } xk t t � D]] } t t | d � } | d k r t | t j � r | j | | k d | � | j | � q W| j t | � d d | � d S)Nz(%r should have been in all_feature_namesr z"all_feature_names has too much: %r)
�features�dir�
__future__�getattr�
isinstanceZ_Feature�
assertTrue�remove�assertEqual�len)�selfZgiven_feature_names�name�obj� r �9/opt/alt/python35/lib64/python3.5/test/test___future__.py�
test_names
s zFutureTest.test_namesc s� x� t D]� } t t | � } | j � } | j � } | j � | j � � � f d d � } | | d � | d k r� | | d � � | | k d � � 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)
Nz%s isn't tuple� z%s isn't 5-tuplez%s major isn't intz%s minor isn't intz%s micro isn't intz%s level isn't stringz!%s level string has unknown valuez%s serial isn't int)r �tupler �int�str�GOOD_SERIALS)�tr �major�minor�micro�level�serial)�a�er r �check! s z)FutureTest.test_attributes.<locals>.check�optional� mandatoryz8optional not less than mandatory, and mandatory not None�
compiler_flagz(feature is missing a .compiler_flag attr� z<test>�execz.compiler_flag isn't int)r r
r ZgetOptionalReleaseZgetMandatoryReleaser r �hasattr�compiler&