| Server IP : 118.27.122.248 / Your IP : 216.73.216.230 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3 �w2_u � @ s@ d dl Z d dlZd ZejZG dd� de j�Zedkr<e j� dS ) � N�alpha�beta� candidate�finalc @ s e Zd Zdd� Zdd� ZdS )� FutureTestc C sv t d d � }xNtt�D ]B}tt|d �}|d k rt|tj�r| j||kd| � |j|� qW | jt |�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 �9/opt/alt/python36/lib64/python3.6/test/test___future__.py� test_names s zFutureTest.test_namesc s� x�t D ]�}tt|�}|j� }|j� }| j� | j�� �fdd�}||d� |d k rh||d� � ||k d� � t|d�d� tdd d |j � � t t|d�t�d� qW d 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&