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.10/test/__pycache__/test___future__.cpython-310.opt-2.pyc
o

�iu	�@sDddlZddlZdZejZGdd�dej�Zedkr e��dSdS)�N)�alpha�beta�	candidate�finalc@seZdZdd�Zdd�ZdS)�
FutureTestcCsrtdd�}tt�D]!}tt|d�}|dur+t|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�1/usr/local/lib/python3.10/test/test___future__.py�
test_names
s�
��zFutureTest.test_namescs�tD]L}tt|�}|��}|��}|j�|j���fdd�}||d�|dur3||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-rrrrrsr�__main__)	Zunittestr	rZall_feature_namesrZTestCaserr.�mainrrrr�<module>s4�