|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��gu � @ s@ d dl Z d dlZdZejZG dd� de j�Zedkr<e �� dS )� N)�alpha�beta� candidate�finalc @ s e Zd Zdd� Zdd� ZdS )�
FutureTestc C sr t d d � }tt�D ]B}tt|d �}|d k rt|tj�r| �||kd| � |�|� 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�
isinstanceZ_Feature�
assertTrue�remove�assertEqual�len)�selfZgiven_feature_names�name�obj� r �3/opt/cppython/lib/python3.8/test/test___future__.py�
test_names
s ��zFutureTest.test_namesc s� t D ]�}tt|�}|�� }|�� }| j� | j�� �fdd�}||d� |d k rf||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| � � |tkd| � � 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'