ó
ŒwÛjc           @   s�   d  d l  m Z d  d l m Z m Z d  d l Z e j d ƒ Z e j e d ƒ d e j	 f d „  ƒ  Yƒ Z
 d „  Z e d	 k r‹ e ƒ  n  d S(
   iÿÿÿÿ(   t   test_support(   t   precisionbigmemtestt   _2GNs   xml.etree.cElementTrees   requires _elementtreet	   MiscTestsc           B   s<   e  Z e d  e d d d ƒ d „  ƒ Z d „  Z d „  Z RS(   t   sizeid   t   memusei   c         C   s^   | t  d k  r  |  j d ƒ n  d | } t j ƒ  } z |  j t | j | ƒ Wd  d  } Xd  S(   Nid   s*   not enough free memory, need at least 2 GBt   x(   R   t   skipTestt   cETt	   XMLParsert   assertRaisest   OverflowErrort   feedt   None(   t   selfR   t   datat   parser(    (    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_xml_etree_c.pyt   test_length_overflow   s    
c         C   s–  t  j d ƒ } d | _ |  j t ƒ � | ` Wd  QX|  j | j d ƒ |  j t ƒ � | ` Wd  QX|  j | j ƒ d | _ |  j t ƒ � | ` Wd  QX|  j | j d ƒ |  j t ƒ � | ` Wd  QX|  j | j ƒ d | _ |  j t ƒ � | ` Wd  QX|  j | j d ƒ |  j t ƒ � | `	 Wd  QX|  j | j	 i  ƒ i d d 6d d 6| _	 |  j t ƒ � | `	 Wd  QX|  j | j	 i d d 6d d 6ƒ d  S(	   Nt   tagt   TAGt   TEXTt   TAILt   Bt   At   Dt   C(
   R   t   ElementR   R
   t   AttributeErrort   assertEqualt   textt   assertIsNonet   tailt   attrib(   R   t   element(    (    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_xml_etree_c.pyt   test_del_attribute   s4    			c            sœ   t  j d ƒ ‰  d d ‡  f d †  ƒ  Y} | ƒ  ˆ  _ ˆ  j ƒ  | ƒ  ˆ  _ ˆ  j ƒ  | ƒ  ˆ  _ | ƒ  ˆ  _ ˆ  j ƒ  | ƒ  ˆ  _ | ƒ  ˆ  _ ˆ  j ƒ  d  S(   Nt   elemt   Xc              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  j  ˆ  j ˆ  j ƒ  d  S(   N(   R   R   t   clear(   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_xml_etree_c.pyt   __del__>   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_xml_etree_c.pyR$   =   s   (    (   R   R   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_xml_etree_c.pyt   test_bpo_317288   s    


(   R'   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_xml_etree_c.pyR   
   s   "	 c          C   s7   d d l  m }  m } t j t ƒ |  j d t ƒ d  S(   Niÿÿÿÿ(   t   test_xml_etreet   test_xml_etree_ct   module(   t   testR*   R+   R    t   run_unittestR   t	   test_mainR   (   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_xml_etree_c.pyR/   R   s    t   __main__(   R-   R    t   test.test_supportR   R   t   unittestt   import_moduleR   t
   skipUnlesst   TestCaseR   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_xml_etree_c.pyt   <module>   s   G	
