Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_errno.cpython-311.opt-1.pyc |
�
�Ke- � � � d Z ddlZddlZ eddg� � Z G d� dej � � Z G d� dej � � Zed k r ej � � dS dS )
z(Test the errno module
Roger E. Masse
� N�EDOM�ERANGEc � � e Zd Zd� Zd� ZdS )�ErrnoAttributeTestsc �r � t D ].}| � t t |� � d|z � � �/d S )Nzerrno is missing %s)�std_c_errors�
assertTrue�hasattr�errno)�self�
error_codes �9/usr/local/apps/python3/lib/python3.11/test/test_errno.py�test_for_improper_attributesz0ErrnoAttributeTests.test_for_improper_attributes sR � �&� @� @�J��O�O�G�E�:�6�6�1�J�>�
@�
@�
@�
@� @� @� c � � t j � � � D ].}| � t t |� � d|z � � �/d S )Nzno %s attr in errno)r � errorcode�valuesr r
)r �values r �test_using_errorcodez(ErrnoAttributeTests.test_using_errorcode sX � ��_�+�+�-�-� ;� ;�E��O�O�G�E�5�1�1�1�E�9�
;�
;�
;�
;� ;� ;r N)�__name__�
__module__�__qualname__r r � r r r r
s5 � � � � � �@� @� @�;� ;� ;� ;� ;r r c � � e Zd Zd� ZdS )�ErrorcodeTestsc �� � t j � � � D ]M}|� � � r7| � t t |� � t j d|z � � �Nd S )Nzno %s attr in errno.errorcode)r �__dict__�keys�isupper�assertIn�getattrr )r � attributes r �test_attributes_in_errorcodez+ErrorcodeTests.test_attributes_in_errorcode st � ���,�,�.�.� K� K�I�� � �"�"�
K��
�
�g�e�Y�7�7���=� �I�K� K� K�� K� Kr N)r r r r# r r r r r s( � � � � � �K� K� K� K� Kr r �__main__)
�__doc__r �unittest� frozensetr �TestCaser r r �mainr r r �<module>r* s� ��� �
���� �����y�&�(�+�,�,��;� ;� ;� ;� ;�(�+� ;� ;� ;�K� K� K� K� K�X�&� K� K� K� �z����H�M�O�O�O�O�O� �r