ó
wŰjc           @   s   d  Z  d d l Z d d l m Z d d l Z e d d g  Z d e j f d     YZ d e j f d	     YZ	 d
   Z
 e d k r e
   n  d S(   s(   Test the errno module
   Roger E. Masse
i˙˙˙˙N(   t   test_supportt   EDOMt   ERANGEt   ErrnoAttributeTestsc           B   s   e  Z d    Z d   Z RS(   c         C   s2   x+ t  D]# } |  j t t |  d |  q Wd  S(   Ns   errno is missing %s(   t   std_c_errorst
   assertTruet   hasattrt   errno(   t   selft
   error_code(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyt   test_for_improper_attributes   s    c         C   s;   x4 t  j j   D]# } |  j t t  |  d |  q Wd  S(   Ns   no %s attr in errno(   R   t	   errorcodet
   itervaluesR   R   (   R   t   value(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyt   test_using_errorcode   s    (   t   __name__t
   __module__R
   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyR      s   	t   ErrorcodeTestsc           B   s   e  Z d    Z RS(   c         C   sP   xI t  j j   D]8 } | j   r |  j t t  |  t  j d |  q q Wd  S(   Ns   no %s attr in errno.errorcode(   R   t   __dict__t   iterkeyst   isuppert   assertInt   getattrR   (   R   t	   attribute(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyt   test_attributes_in_errorcode   s    (   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyR      s   c           C   s   t  j t t  d  S(   N(   R    t   run_unittestR   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyt	   test_main"   s    t   __main__(   t   __doc__R   t   testR    t   unittestt	   frozensetR   t   TestCaseR   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_errno.pyt   <module>   s   		