| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/test/__pycache__/ |
Upload File : |
o
�9ju � @ sD d dl Z d dlZdZejZG dd� de j�Zedkr e �� dS dS )� N)�alpha�beta� candidate�finalc @ s e Zd Zdd� Zdd� ZdS )�
FutureTestc C sr t d d � }tt�D ]!}tt|d �}|d ur+t|tj�r+| �||v d| � |�|� q
| �t |�dd| � d S )Nz(%r should have been in all_feature_namesr z"all_feature_names has too much: %r)
�features�dir�
__future__�getattr�
isinstance�_Feature�
assertTrue�remove�assertEqual�len)�self�given_feature_names�name�obj� r �+/usr/lib/python3.10/test/test___future__.py�
test_names
s �
��zFutureTest.test_namesc s� t D ]L}tt|�}|�� }|�� }| j� | j�� �fdd�}||d� |d ur3||d� � ||k d� � t|d�d� tdd d
|j � � t
t|d�t�d� qd S )Nc s� � t | t�d| � �t| �dd| � | \}}}}}� t |t�d| � � t |t�d| � � t |t�d| � � t |t�d| � � |tv 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 �getOptionalRelease�getMandatoryReleaser
r �hasattr�compiler) r r )r �feature�valuer'