
    ;e-                         d Z ddlZddlZ eddg          Z G d dej                  Z G d dej                  Zed	k    r ej	                     dS dS )
z(Test the errno module
   Roger E. Masse
    NEDOMERANGEc                       e Zd Zd Zd ZdS )ErrnoAttributeTestsc                 r    t           D ].}|                     t          t          |          d|z             /d S )Nzerrno is missing %s)std_c_errors
assertTruehasattrerrno)self
error_codes     &/usr/lib/python3.11/test/test_errno.pytest_for_improper_attributesz0ErrnoAttributeTests.test_for_improper_attributes   sR    & 	@ 	@JOOGE:661J>@ @ @ @	@ 	@    c                     t           j                                        D ].}|                     t	          t           |          d|z             /d S )Nzno %s attr in errno)r   	errorcodevaluesr	   r
   )r   values     r   test_using_errorcodez(ErrnoAttributeTests.test_using_errorcode   sX    _++-- 	; 	;EOOGE5111E9; ; ; ;	; 	;r   N)__name__
__module____qualname__r   r    r   r   r   r   
   s5        @ @ @; ; ; ; ;r   r   c                       e Zd Zd ZdS )ErrorcodeTestsc                     t           j                                        D ]M}|                                r7|                     t          t           |          t           j        d|z             Nd S )Nzno %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geY77=	IK K K	K 	Kr   N)r   r   r   r#   r   r   r   r   r      s(        K K K K Kr   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HMOOOOO r   