Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test___future__.cpython-311.pyc |
�
�Keu � �| � d dl Z d dlZdZej Z G d� de j � � Zedk r e j � � dS dS )� N)�alpha�beta� candidate�finalc � � e Zd Zd� Zd� ZdS )�
FutureTestc �d � t d d � }t t � � D ]d}t t |d � � }|�Jt |t j � � r0| � ||v d|z � � |� |� � �e| � t |� � dd|z � � 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�objs �>/usr/local/apps/python3/lib/python3.11/test/test___future__.py�
test_nameszFutureTest.test_names
s� � �&�q�q�q�k���
�O�O� 1� 1�D��*�d�D�1�1�C���:�c�:�3F�#G�#G������/�/�>��E�� � � $�*�*�4�0�0�0������0�1�1�1�3�6I�I� K� K� K� K� K� c �� ��� t D ]�}t t |� � }|� � � }|� � � }| j �| j ���fd�} ||d� � |� ||d� � �||k d� � �t |d� � d� � t ddd |j � � �t t |d� � t � � d
� � ��d S )Nc � �� �t | t � � d|z � � �t | � � dd|z � � | \ }}}}} �t |t � � d|z � � �t |t � � d|z � � �t |t � � d|z � � �t |t � � d|z � � �|t
v d|z � � �t |t � � d |z � � 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�es ��r �checkz)FutureTest.test_attributes.<locals>.check! s1 �� ���*�Q��&�&�(8�4�(?�@�@�@���#�a�&�&�!�/�$�6�7�7�7�78�4���u�e�V���*�U�C�(�(�*>�$�*F�G�G�G���*�U�C�(�(�*>��*E�F�F�F���*�U�C�(�(�*>��*E�F�F�F���*�U�C�(�(�+�d�2�4� 4� 4���%�<�'�:�T�A�C� C� C���*�V�S�)�)�+@�4�+G�H�H�H�H�Hr �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+ r, r* r( r) s @@r �test_attributeszFutureTest.test_attributes s> ��� �� /� /�G��J��0�0�E��/�/�1�1�H��1�1�3�3�I���A�� �A�
I�
I�
I�
I�
I�
I�
�E�(�J�'�'�'��$���i��-�-�-���(�Y�&�Q�S� S� S�
�A�g�e�_�-�-�=�
?�
?�
?�
�B��&�%�*=�>�>�>�
�A�j����8�8�#�>�>�-�
/�
/�
/�
/�? /� /r N)�__name__�
__module__�__qualname__r r6 � r r r r s5 � � � � � �K� K� K�!/� !/� !/� !/� !/r r �__main__) �unittestr r! �all_feature_namesr
�TestCaser r7 �mainr: r r �<module>r@ s{ �� ���� � � � �6���'��1/� 1/� 1/� 1/� 1/��"� 1/� 1/� 1/�h �z����H�M�O�O�O�O�O� �r