| Server IP : 121.121.20.254 / Your IP : 216.73.217.84 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���gP � � � d Z ddlZddlZ eddg� Z G d� dej
� Z G d� dej
� Zed k( r ej � yy)
z(Test the errno module
Roger E. Masse
� N�EDOM�ERANGEc � � e Zd Zd� Zd� Zy)�ErrnoAttributeTestsc �` � t D ]% }| j t t |� d|z � �' y )Nzerrno is missing %s)�std_c_errors�
assertTrue�hasattr�errno)�self�
error_codes �$C:\Python312\\Lib\test\test_errno.py�test_for_improper_attributesz0ErrnoAttributeTests.test_for_improper_attributes s* � �&�J��O�O�G�E�:�6�1�J�>�
@� '� c � � t j j � D ]% }| j t t |� d|z � �' y )Nzno %s attr in errno)r � errorcode�valuesr r
)r �values r �test_using_errorcodez(ErrnoAttributeTests.test_using_errorcode s6 � ��_�_�+�+�-�E��O�O�G�E�5�1�1�E�9�
;� .r N)�__name__�
__module__�__qualname__r r � r r r r
s
� �@�;r r c � � e Zd Zd� Zy)�ErrorcodeTestsc �� � t j j � D ]E }|j � s�| j t t |� t j d|z � �G y )Nzno %s attr in errno.errorcode)r �__dict__�keys�isupper�assertIn�getattrr )r � attributes r �test_attributes_in_errorcodez+ErrorcodeTests.test_attributes_in_errorcode sI � ����,�,�.�I�� � �"��
�
�g�e�Y�7����=� �I�K� /r N)r r r r# r r r r r s � �Kr r �__main__)
�__doc__r �unittest� frozensetr �TestCaser r r �mainr r r �<module>r* sa ���
� ��&�(�+�,��;�(�+�+� ;�K�X�&�&� K� �z���H�M�M�O� r