ó
ŒwÛjc           @   s  d  d l  Z  d  d l m Z e j d ƒ d  d l m Z m Z m Z m Z m	 Z	 m
 Z
 m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z e e d d d d d	 d
 d d d d d ƒ Z d e  j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d d „ Z e d k re d e ƒ n  d S(   iÿÿÿÿN(   t   test_supportt	   _testcapi(   t   _test_structmembersTypet   CHAR_MAXt   CHAR_MINt	   UCHAR_MAXt   SHRT_MAXt   SHRT_MINt	   USHRT_MAXt   INT_MAXt   INT_MINt   UINT_MAXt   LONG_MAXt   LONG_MINt	   ULONG_MAXt	   LLONG_MAXt	   LLONG_MINt
   ULLONG_MAXi   i   i   i   i   i   i   i   gr§t°þÿ#@g¨¸�˜·3$@t   hit   ReadWriteTestsc           B   sb   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z e j e	 e
 d ƒ d ƒ d „  ƒ Z d „  Z RS(	   c         C   sU   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ |  j t t t d d ƒ d  S(   Nt   T_BOOLi   (   t   Truet   tsR   t   assertEqualt   Falset   assertRaisest	   TypeErrort   setattr(   t   self(    (    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_structmembers.pyt	   test_bool   s
    		c         C   sX   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ t t _ |  j t j t ƒ d  S(   N(   R   R   t   T_BYTER   R   R   t   T_UBYTE(   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_structmembers.pyt	   test_byte   s    			c         C   sX   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ t t _ |  j t j t ƒ d  S(   N(   R   R   t   T_SHORTR   R   R   t   T_USHORT(   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_structmembers.pyt
   test_short!   s    			c         C   sX   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ t t _ |  j t j t ƒ d  S(   N(   R	   R   t   T_INTR   R
   R   t   T_UINT(   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_structmembers.pyt   test_int)   s    			c         C   sX   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ t t _ |  j t j t ƒ d  S(   N(   R   R   t   T_LONGR   R   R   t   T_ULONG(   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_structmembers.pyt	   test_long1   s    			t
   T_LONGLONGs   long long not presentc         C   s�   t  t _ |  j t j t  ƒ t t _ |  j t j t ƒ t t _ |  j t j t ƒ d t _ |  j t j d ƒ d t _ |  j t j d ƒ d  S(   Ni   i   (   R   R   R*   R   R   R   t   T_ULONGLONG(   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_structmembers.pyt   test_longlong9   s    					c         C   sF   |  j  t j d ƒ |  j t t t d d ƒ |  j t t t d ƒ d  S(   NR   t   T_STRING_INPLACEt   s(   R   R   R-   R   R   R   t   delattr(   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_structmembers.pyt   test_inplace_stringI   s    (   t   __name__t
   __module__R   R    R#   R&   R)   t   unittestt
   skipUnlesst   hasattrR   R,   R0   (    (    (    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_structmembers.pyR      s   					$t   TestWarningsc           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   Nt    i   (   R    t   check_warningst   RuntimeWarningR   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_structmembers.pyt   test_byte_maxQ   s    c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   NR7   i   (   R    R8   R9   R   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_structmembers.pyt   test_byte_minU   s    c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   NR7   i   (   R    R8   R9   R   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_structmembers.pyt   test_ubyte_maxY   s    c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   NR7   i   (   R    R8   R9   R   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_structmembers.pyt   test_short_max]   s    c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   NR7   i   (   R    R8   R9   R   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_structmembers.pyt   test_short_mina   s    c         C   s-   t  j d t f ƒ � t d t _ Wd  QXd  S(   NR7   i   (   R    R8   R9   R   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_structmembers.pyt   test_ushort_maxe   s    (   R1   R2   R:   R;   R<   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_structmembers.pyR6   O   s   					c         C   s   t  j t ƒ d  S(   N(   R    t   run_unittestR1   (   t   verbose(    (    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_structmembers.pyt	   test_mainj   s    t   __main__RA   (   R3   t   testR    t   import_moduleR   R   R   R   R   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   t   TestCaseR   R6   t   NoneRB   R1   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_structmembers.pyt   <module>   s   j?