HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/__pycache__/test___future__.cpython-37.opt-1.pyc
B

��gu	�@s@ddlZddlZdZejZGdd�dej�Zedkr<e��dS)�N)ZalphaZbeta�	candidate�finalc@seZdZdd�Zdd�ZdS)�
FutureTestcCsvtdd�}xNtt�D]B}tt|d�}|dk	rt|tj�r|�||kd|�|�|�qW|�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.7/test/test___future__.py�
test_names
s
zFutureTest.test_namescs�x�tD]�}tt|�}|��}|��}|j�|j���fdd�}||d�|dk	rh||d��||kd��t|d�d�tdd	d
|j	��t
t|d�t�d�qWdS)Ncs��t|t�d|��t|�dd|�|\}}}}}�t|t�d|��t|t�d|��t|t�d|��t|t�d|��|tkd|��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)rrrZgetOptionalReleaseZgetMandatoryReleaser
r�hasattr�compiler$r	r)rZfeature�valuer"r#r!r)rr r�test_attributess"




zFutureTest.test_attributesN)�__name__�
__module__�__qualname__rr*rrrrrsr�__main__)	ZunittestrrZall_feature_namesrZTestCaserr+�mainrrrr�<module>s4