Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test___future__.cpython-39.pyc

a

��gu	�@s@ddlZddlZdZejZGdd�dej�Zedkr<e��dS)�N)�alpha�beta�	candidate�finalc@seZdZdd�Zdd�ZdS)�
FutureTestcCsrtdd�}tt�D]B}tt|d�}|durt|tj�r|�||vd|�|�|�q|�t	|�dd|�dS)Nz(%r should have been in all_feature_namesrz"all_feature_names has too much: %r)
�features�dir�
__future__�getattr�
isinstanceZ_Feature�
assertTrue�remove�assertEqual�len)�selfZgiven_feature_names�name�obj�r�0/usr/local/lib/python3.9/test/test___future__.py�
test_names
s��zFutureTest.test_namescs�tD]�}tt|�}|��}|��}|j�|j���fdd�}||d�|durf||d��||kd��t|d�d�tdd	d
|j	��t
t|d�t�d�qdS)Ncs��t|t�d|��t|�dd|�|\}}}}}�t|t�d|��t|t�d|��t|t�d|��t|t�d|��|tvd|��t|t�d	|�dS)
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�err�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)rr
r	ZgetOptionalReleaseZgetMandatoryReleaserr�hasattr�compiler'rr)rZfeature�valuer%r&r$rr!r�test_attributess(


�
��zFutureTest.test_attributesN)�__name__�
__module__�__qualname__rr-rrrrrsr�__main__)	Zunittestr	rZall_feature_namesrZTestCaserr.�mainrrrr�<module>s4

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists