ó
ŒwÛjc           @   sü  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l m Z d  d l m Z m Z m Z m Z d  d l m Z e a e d d d ƒZ e d d d ƒZ e d	 d d ƒZ d
 Z d Z d Z d Z d Z d „  Z  d e j! f d „  ƒ  YZ" e# d „ Z$ d „  Z% d „  Z& d „  Z' d „  Z( d e j! f d „  ƒ  YZ) i  Z* d e* d <d e* d <d e* d <d e* d  <d! e* d" <d# e* d$ <d% e* d& <d' e* d( <d) j+ e  j, e e# ƒ ƒ e* d* <i  Z- d+ e- d, <d- e- d. <d/ e j! f d0 „  ƒ  YZ. d1 e j! f d2 „  ƒ  YZ/ d3 e j! f d4 „  ƒ  YZ0 d5 e j! f d6 „  ƒ  YZ1 d7 e2 f d8 „  ƒ  YZ3 d9 e2 f d: „  ƒ  YZ4 d; e j! f d< „  ƒ  YZ5 d= e j! f d> „  ƒ  YZ6 d? e j! f d@ „  ƒ  YZ7 dA e j! f dB „  ƒ  YZ8 dC e j! f dD „  ƒ  YZ9 dE e j! f dF „  ƒ  YZ: dG e j! f dH „  ƒ  YZ; dI e j! f dJ „  ƒ  YZ< dK e j! f dL „  ƒ  YZ= dM e j! f dN „  ƒ  YZ> dO e j! f dP „  ƒ  YZ? dQ e j! f dR „  ƒ  YZ@ e dS „ ZA eB dT k røeA ƒ  n  d S(U   iÿÿÿÿN(   t   test_support(   t   TESTFNt   findfilet
   gc_collectt	   swap_attr(   t   ElementTrees
   simple.xmlt   subdirt   xmltestdatas   simple-ns.xmls   expat224_utf8_bug.xmls„   <body>
  <tag class='a'>text</tag>
  <tag class='b' />
  <section>
    <tag class='b' id='inner'>subtext</tag>
  </section>
</body>
sz   <section>
  <tag class='b' id='inner'>subtext</tag>
  <nexttag />
  <nextsection>
    <tag />
  </nextsection>
</section>
sy   
<body xmlns="http://effbot.org/ns">
  <tag>text</tag>
  <tag />
  <section>
    <tag>subtext</tag>
  </section>
</body>
sø   
<root>
<h:table xmlns:h="hello">
  <h:tr>
    <h:td>Apples</h:td>
    <h:td>Bananas</h:td>
  </h:tr>
</h:table>

<f:table xmlns:f="foo">
  <f:name>African Coffee Table</f:name>
  <f:width>80</f:width>
  <f:length>120</f:length>
</f:table>
</root>
sy   <!DOCTYPE points [
<!ENTITY % user-entities SYSTEM 'user-entities.xml'>
%user-entities;
]>
<document>&entity;</document>
c             s   ‡  f d †  } | S(   Nc            s&   ‡ ‡  f d †  } t  j | ˆ  ƒ | S(   Nc             s'   t  j ˆ  Œ  � ˆ |  | Ž  Wd  QXd  S(   N(   t   supportt   check_warnings(   t   argst   kwargs(   t   filterst   test(    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.pyt   newtest]   s    (   t	   functoolst   update_wrapper(   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.pyt	   decorator\   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_xml_etree.pyt   checkwarnings[   s    t
   ModuleTestc           B   s   e  Z d  „  Z RS(   c         C   s4   d d l  m } d d l  m } d d l  m } d  S(   Niÿÿÿÿ(   R   (   t   ElementInclude(   t   ElementPath(   t	   xml.etreeR   R   R   (   t   selfR   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.pyt   test_sanityh   s    (   t   __name__t
   __module__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.pyR   e   s   c         K   sP   t  j  ƒ  } t j |  ƒ } | j | | � | r; | j ƒ  S| j d ƒ | Sd  S(   Ni    (   t   StringIOt   ETR   t   writet   getvaluet   seek(   t   elemt	   to_stringt   optionst   filet   tree(    (    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.pyt	   serializep   s    
c         C   s   g  |  D] } | j  ^ q S(   N(   t   tag(   t   seqR    (    (    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.pyt   summarize_listz   s    c         C   sc   x\ |  j  ƒ  D]N } | j r7 | j j d d ƒ | _ n  | j r | j j d d ƒ | _ q q Wd  S(   Ns   
s   
(   t   itert   textt   replacet   tail(   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.pyt   normalize_crlf}   s
    		c            s   ‡  f d †  } | S(   Nc             s(   t  t k	 r t j d ƒ ‚ n  ˆ  |  Œ  S(   Ns   only for the Python version(   R   t   pyETt   unittestt   SkipTest(   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.pyt   wrapper…   s    (    (   R   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_xml_etree.pyt   python_only„   s    c            s   ‡  f d †  } | S(   Nc             s(   t  t k r t j d ƒ ‚ n  ˆ  |  Œ  S(   Ns   only for the C version(   R   R.   R/   R0   (   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.pyR1   Œ   s    (    (   R   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_xml_etree.pyt   cet_only‹   s    t   ElementTreeTestc           B   s  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z e d e e f f ƒ d „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   |  j  t | ƒ | ƒ d  S(   N(   t   assertEqualR%   (   R   R    t   expected(    (    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.pyt   serialize_check—   s    c            sp  ‡ f d †  ‰ ‡ f d †  ‰ ‡  ‡ ‡ ‡ f d †  ‰  t  j d ƒ } ˆ  | ƒ t  j | ƒ } ˆ  | j ƒ  ƒ t  j d d d ƒ} t  j | ƒ } ˆ j t | ƒ d ƒ t  j d d d ƒ} ‡ f d	 †  ‰ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j	 ƒ ˆ | j
 ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ˆ | j ƒ ‡ f d
 †  } | | j d ƒ ƒ | | j d ƒ ƒ | | j d ƒ ƒ | | j d ƒ ƒ | | j d ƒ ƒ | | j d ƒ ƒ ˆ j t  j t  j ƒ ˆ j t  j t  j ƒ ˆ j t  j t  j ƒ d  S(   Nc            s[   t  |  ƒ x. |  D]& } ˆ  j t  | ƒ d d d | ƒq W|  d } |  d } |  d  d  S(   Ni   t   msgs%   expected one-character string, got %rt    t    i    (   t   lenR5   (   t   stringt   chart
   new_string(   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.pyt   check_string�   s    


c            sm   t  |  ƒ |  j ƒ  } |  j ƒ  } x | D] } |  | } q) Wd |  d <ˆ  j |  d d d d |  d ƒd  S(   Nt   valuet   keyR8   s   expected value string, got %r(   R;   t   keyst   itemsR5   (   t   mappingRB   RC   RA   t   item(   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.pyt   check_mapping¦   s    

c            s  ˆ j  t j |  ƒ d d ƒˆ j  t |  d ƒ d d ƒˆ j  t |  d ƒ d d ƒˆ j  t |  d ƒ d d ƒˆ j  t |  d	 ƒ d d
 ƒˆ |  j ƒ ˆ |  j ƒ |  j d  k	 rÅ ˆ |  j ƒ n  |  j d  k	 rä ˆ |  j ƒ n  x |  D] } ˆ  | ƒ që Wd  S(   NR8   s   not an elementR&   s   no tag membert   attribs   no attrib memberR*   s   no text memberR,   s   no tail member(	   t
   assertTrueR   t	   iselementt   hasattrR&   RG   R*   t   NoneR,   (   t   elementR    (   t   check_elementRF   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.pyRM   °   s    R&   s   tägRA   R@   s   ^<Element 't\\xe4g' at 0x.*>$c            s$   ˆ  j  t |  d ƒ d d |  ƒd  S(   Nt   __call__R8   s   %s not callable(   RH   RJ   (   t   method(   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.pyt   check_methodË   s    c            s   ˆ  |  j  ƒ d  S(   N(   t   next(   t   it(   RP   (    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.pyt
   check_iterã   s    t   *(   R   t   ElementR   t   getroott   assertRegexpMatchest   reprt   appendt   extendt   insertt   removet   getchildrent   findt   iterfindt   findallt   findtextt   cleart   gett   setRB   RC   R)   t   itertextt   getiteratorR5   t   XMLt
   fromstringt   PIt   ProcessingInstructiont	   XMLParsert   XMLTreeBuilder(   R   RL   R$   RS   (    (   RM   RF   RP   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.pyt   test_interfaceš   sN    	

c         C   sq  t  j d ƒ } |  j | j d ƒ d | _ |  j | j d ƒ d | _ |  j | j d ƒ |  j | j ƒ d | _ |  j | j d ƒ d | _ |  j | j d ƒ |  j | j ƒ d | _ |  j | j d ƒ d | _ |  j | j d ƒ |  j | j i  ƒ i d d	 6d
 d 6| _ |  j | j i d d	 6d
 d 6ƒ i d d 6d d 6| _ |  j | j i d d 6d d 6ƒ d  S(   NR&   t   Tagt   TAGt   Textt   TEXTt   Tailt   TAILt   bt   at   dt   ct   Bt   At   Dt   C(   R   RU   R5   R&   t   assertIsNoneR*   R,   RG   (   R   RL   (    (    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.pyt   test_set_attributeó   s*    						!c         C   sS  t  j d ƒ } |  j | d ƒ t  j d ƒ } | j | ƒ |  j | d ƒ | j | ƒ |  j | d ƒ | j d | ƒ |  j | d ƒ | j | ƒ | j | g ƒ |  j | d ƒ | j | ƒ t  j d d d	 ƒ} |  j | d
 ƒ t  j d ƒ } | j | ƒ |  j | d ƒ | j d | ƒ |  j | d ƒ | j | ƒ |  j | d ƒ | j | ƒ |  j | d
 ƒ |  j t	 ƒ � } | j | ƒ Wd  QX|  j
 t | j ƒ d ƒ |  j | d
 ƒ | | | g | d d +|  j | d d ƒ |  j
 | d d !| d | d g ƒ |  j
 | d  d d … | d | d g ƒ | d d 5|  j | d ƒ d  S(   Ns   <body><tag/></body>s   <body><tag /></body>t   tag2s   <body><tag /><tag2 /></body>i    s   <body><tag2 /><tag /></body>R&   RA   R@   s   <tag key="value" />t   subtags!   <tag key="value"><subtag /></tag>s+   <tag key="value"><subtag /><subtag /></tag>s   list.remove(x): x not in listi   s
   <subtag />i	   i   (   R   Rg   R7   RU   RY   R\   R[   RZ   t   assertRaisest
   ValueErrorR5   t   strt	   exception(   R   R    t   eRL   t
   subelementt   cm(    (    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.pyt   test_simpleops  sH    	%+
	c         C   sO   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Ns   <tag>hello</tag>s)   <tag>&#104;&#101;&#108;&#108;&#111;</tag>s   <tag><![CDATA[hello]]></tag>(   R7   R   Rg   (   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.pyt
   test_cdata7  s    c         C   s°   t  j  t j d ƒ ƒ } t j d | ƒ } |  j | j d ƒ j d ƒ |  j | j d ƒ j d ƒ t j d t ƒ } |  j | j d ƒ j d ƒ |  j | j d ƒ j d ƒ d  S(   Ns   utf-8R#   R&   s   section/tagRL   s   element/../empty-elements   empty-element(	   R   t
   SAMPLE_XMLt   encodeR   R   R5   R^   R&   t   SIMPLE_XMLFILE(   R   t
   stringfileR$   (    (    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.pyt   test_file_initA  s    c         C   sY  d d l  m } t j t ƒ } x4 t d ƒ D]& } t j | ƒ j d t | ƒ ƒ q, Wt	 | j
 ƒ } x4 t d ƒ D]& } t j | ƒ j d t | ƒ ƒ qr W|  j t	 | j
 ƒ | ƒ x4 t d ƒ D]& } t j | ƒ j d t | ƒ ƒ qÂ W|  j t	 | j
 ƒ | ƒ x4 t d ƒ D]& } t j | ƒ j d t | ƒ ƒ qW|  j t	 | j
 ƒ d ƒ d  S(   Niÿÿÿÿ(   R   i
   s   ./i   iX  iô  (   R   R   R   Rg   R‰   t   rangeR   R^   R‚   R;   t   _cacheR5   t   assertGreatert
   assertLess(   R   R   R    t   it   cache_len_10(    (    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.pyt   test_path_cacheL  s     $ $ $ $c         C   s   d d  l  } t j d ƒ } | j  | ƒ } | j | ƒ } d | j d ƒ _ |  j | d ƒ |  j | d ƒ |  j | d ƒ d  S(   Niÿÿÿÿs   <tag>hello<foo/></tag>t   bart   foos   <tag>hello<bar /></tag>s   <tag>hello<foo /></tag>(   t   copyR   Rg   t   deepcopyR^   R&   R7   (   R   R—   t   e1t   e2t   e3(    (    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.pyt	   test_copy[  s    c         C   sþ  t  j d ƒ } | j d ƒ |  j | j d d ƒ d ƒ | j d d ƒ |  j | j d ƒ d ƒ t  j d d d ƒ} |  j | j d ƒ d ƒ |  j | j i d d 6ƒ i d d 6} t  j d | ƒ } | j ƒ  |  j | j d ƒ d ƒ |  j | j i d d 6ƒ i d d 6} t  j d | � } | j ƒ  |  j | j d ƒ d ƒ |  j | j i d d 6ƒ t  j d i d d 6d d ƒ} |  j | j d ƒ d ƒ |  j | j i d d 6ƒ t  j d ƒ } d | _ | j d d	 ƒ | j d
 d ƒ |  j t  j | ƒ d ƒ |  j t	 | j
 ƒ  ƒ d d
 g ƒ |  j t	 | j ƒ  ƒ d d g ƒ |  j | j d
 d ƒ d | j d
 <d | j d <|  j t  j | ƒ d ƒ t  j d ƒ } | j d d ƒ | j d d ƒ | j d d ƒ | j d d ƒ |  j t  j | ƒ d ƒ d  S(   NR&   RA   t   defaultR@   t   otherR   t   aat   testat   testvalt   testbt   test2s-   <test testa="testval" testb="test2">aa</test>t   test1t   testcs;   <test testa="testval" testb="test1" testc="test2">aa</test>Ru   s   Rt   s   
Rw   s   	
 Rv   s   

s5   <test a="" b="&#10;" c="	&#10; " d="&#10;&#10;" />(   R    R¡   (   R¢   R£   (   R   RU   Rc   R5   Rd   RG   Rb   R*   t   tostringt   sortedRB   RC   (   R   R    RG   (    (    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.pyt   test_attribg  sT    

	"c         C   sü   t  j d ƒ } i d d 6} | j d | ƒ } |  j | j | d d ƒ| j | ƒ |  j | d ƒ | j ƒ  |  j | d ƒ | j | ƒ |  j | d ƒ | j | | g ƒ |  j | d	 ƒ | g | (|  j | d ƒ t	 | g ƒ | (|  j | d ƒ d  S(
   NR&   R@   RA   R   R8   s   attrib aliasings!   <tag><subtag key="value" /></tag>s   <tag />sM   <tag><subtag key="value" /><subtag key="value" /><subtag key="value" /></tag>(
   R   RU   t   makeelementt   assertIsNotRG   RY   R7   Rb   RZ   t   tuple(   R   R    RG   t   subelem(    (    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.pyt   test_makeelementœ  s"    
	
c         C   sg  t  j t ƒ } t | ƒ t j ƒ  } | j | ƒ |  j | j ƒ  d ƒ t  j t ƒ } t | ƒ t j ƒ  } | j | ƒ |  j | j ƒ  d ƒ t	 t ƒ � } | j
 ƒ  } Wd  QXt  j ƒ  } |  j | j d ƒ | j | ƒ |  j | j ƒ  d ƒ t  j ƒ  } | j | ƒ |  j | j ƒ  d ƒ t  j ƒ  } t  j d | ƒ } | j | ƒ |  j | j ƒ  d ƒ d  S(   Nsi   <root>
   <element key="value">text</element>
   <element>text</element>tail
   <empty-element />
</root>s›   <ns0:root xmlns:ns0="namespace">
   <ns0:element key="value">text</ns0:element>
   <ns0:element>text</ns0:element>tail
   <ns0:empty-element />
</ns0:root>s   ^Expat t   target(   R   t   parseR‹   R-   R   R   R5   R   t   SIMPLE_NS_XMLFILEt   opent   readRk   RW   t   versiont   feedR7   t   closeRl   t   TreeBuilder(   R   R$   t   streamt   ft   datat   parserR®   (    (    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.pyt   test_parsefile²  s8    

c         C   s6  t  j d ƒ } |  j t  j | ƒ d ƒ t  j d ƒ } |  j t  j | ƒ d ƒ d d d g } t  j | ƒ } |  j t  j | ƒ d ƒ |  j d j t  j | ƒ ƒ d ƒ |  j t  j | d ƒ d ƒ t  j d ƒ \ } } |  j t	 | ƒ d ƒ t  j d	 ƒ \ } } |  j t	 | ƒ d
 ƒ |  j | d j
 d ƒ d  S(   Ns   <html><body>text</body></html>s   <html><body>s   text</bos
   dy></html>R9   t   asciisE   <?xml version='1.0' encoding='ascii'?>
<html><body>text</body></html>i    s(   <html><body id='body'>text</body></html>i   t   body(   R   Rg   R5   R¦   Rh   t   fromstringlistt   joint   tostringlistt   XMLIDR;   R&   (   R   RL   t   sequencet   _t   ids(    (    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.pyt   test_parseliteralê  s&    c         C   s  t  j } | t ƒ } t | ƒ \ } } |  j | | j f d ƒ |  j g  | D] \ } } | | j f ^ qM d d d g ƒ |  j | j j d ƒ | t ƒ } |  j g  | D] \ } } | | j f ^ qª d d d d  g ƒ d! } | t | ƒ } |  j g  | D] \ } } | | j f ^ qý g  ƒ d" } | t d | ƒ} |  j g  | D] \ } } | | j f ^ qGg  ƒ d# } | t | ƒ } |  j g  | D] \ } } | | j f ^ qŽd$ d% d& d' d( d) d* d+ g ƒ d, } | t | ƒ } |  j g  | D]3 \ } } | d- k r| | j f n	 | | f ^ qíd
 d. f d/ d0 d1 d2 d3 d4 d5 d6 d7 g
 ƒ d8 } | t	 j	 d ƒ | ƒ } g  | D] \ } } | | f ^ qs} |  j | d
 d9 f d: g ƒ d; } t
 t d ƒ �< } |  j t ƒ � } | | | ƒ Wd  QX|  j | j ƒ Wd  QX|  j t | j ƒ d ƒ t	 j	 d ƒ }	 d< } | |	 | ƒ } |  j g  | D] \ } } | | f ^ qJd
 d= f d
 d> f g ƒ t	 j	 d ƒ }	 | |	 ƒ }
 t |
 ƒ \ } } |  j | | j f d? ƒ |  j t  j ƒ � } t |
 ƒ Wd  QX|  j t | j ƒ d ƒ d  S(@   Nt   endRL   s   empty-elementt   roots   {namespace}elements   {namespace}empty-elements   {namespace}roott   eventst   starts   start-nss   end-nsR9   t	   namespaces   <root xmlns=''/>t   bogust   rbs   unknown event 'bogus's‡   <?xml version='1.0' encoding='iso-8859-1'?>
<body xmlns='http://&#233;ffbot.org/ns'
      xmlns:clé='http://effbot.org/ns'>text</body>
u   http://Ã©ffbot.org/nsu   clÃ©s   http://effbot.org/nss   <document />junkt   documents.   junk after document element: line 1, column 12(   RÆ   RL   (   RÆ   RL   (   RÆ   s   empty-element(   RÆ   RÇ   (   RÆ   s   {namespace}element(   RÆ   s   {namespace}element(   RÆ   s   {namespace}empty-element(   RÆ   s   {namespace}root(    (    (   RÉ   RÆ   (   RÉ   RÇ   (   RÉ   RL   (   RÆ   RL   (   RÉ   RL   (   RÆ   RL   (   RÉ   s   empty-element(   RÆ   s   empty-element(   RÆ   RÇ   (   RÉ   RÆ   s   start-nss   end-ns(   RÉ   RÆ   (   R9   RÊ   (   RÉ   s   {namespace}root(   RÉ   s   {namespace}element(   RÆ   s   {namespace}element(   RÉ   s   {namespace}element(   RÆ   s   {namespace}element(   RÉ   s   {namespace}empty-element(   RÆ   s   {namespace}empty-element(   RÆ   s   {namespace}root(   s   end-nsN(   s   start-nss   end-ns(   R9   R9   (   s   end-nsN(   RÉ   RÆ   RË   (   s   start-ns(   R9   u   http://Ã©ffbot.org/ns(   u   clÃ©s   http://effbot.org/ns(   RÆ   RÍ   (   R   t	   iterparseR‹   RQ   R5   R&   RÇ   R°   RK   R   R±   R€   R�   t   assertFalset   closedR‚   Rƒ   t
   ParseError(   R   RÎ   t   contextt   actionR    RÈ   t   resR¸   R†   t   sourceRR   (    (    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.pyt   test_iterparse   sŽ    	+
+
22+
	:	
%	(	c         C   s¹   t  j d ƒ } d | _ |  j | d ƒ d t  j | d ƒ _ |  j | d ƒ d  | _ |  j | d ƒ | j d t  j d	 ƒ ƒ |  j | d
 ƒ t  j	 d d ƒ | d <|  j | d ƒ d  S(   NR&   R*   s   <tag>text</tag>t   subtextR   s'   <tag>text<subtag>subtext</subtag></tag>s   text<subtag>subtext</subtag>i    t   comments*   text<!--comment--><subtag>subtext</subtag>RA   R@   s)   text<?key value?><subtag>subtext</subtag>(
   R   RU   R*   R7   t
   SubElementRK   R&   R[   t   CommentRi   (   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.pyt   test_writefile]  s    			c         C   s  t  t ƒ � } | j ƒ  } Wd  QXd t f d „  ƒ  Y} | ƒ  } t j d | ƒ } | j | ƒ |  j | d d d d d d d d g ƒ t  t ƒ � } | j ƒ  } Wd  QXd t f d	 „  ƒ  Y} | ƒ  } t j d | ƒ } | j | ƒ |  j | d d d d d d d d  d! d" g
 ƒ d  S(#   Nt   Builderc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   |  j  d | f ƒ d  S(   NRÉ   (   RY   (   R   R&   RG   (    (    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.pyRÉ   t  s    c         S   s   |  j  d | f ƒ d  S(   NRÆ   (   RY   (   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.pyRÆ   v  s    c         S   s   d  S(   N(    (   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.pyR¹   x  s    (   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.pyRÜ   s  s   		R®   RÉ   RÇ   RL   RÆ   s   empty-elementc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         S   s   |  j  d | f ƒ d  S(   NRÉ   (   RY   (   R   R&   RG   (    (    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.pyRÉ   ‹  s    c         S   s   |  j  d | f ƒ d  S(   NRÆ   (   RY   (   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.pyRÆ   �  s    c         S   s   d  S(   N(    (   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.pyR¹   �  s    c         S   s   |  j  d | | f ƒ d  S(   Nt   pi(   RY   (   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.pyRÝ   ‘  s    c         S   s   |  j  d | f ƒ d  S(   NRØ   (   RY   (   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.pyRØ   “  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.pyRÜ   Š  s
   				RÝ   R¹   RØ   s	    comment s   {namespace}roots   {namespace}elements   {namespace}empty-element(   RÉ   RÇ   (   RÉ   RL   (   RÆ   RL   (   RÉ   RL   (   RÆ   RL   (   RÉ   s   empty-element(   RÆ   s   empty-element(   RÆ   RÇ   (   RÝ   RÝ   R¹   (   RØ   s	    comment (   RÉ   s   {namespace}root(   RÉ   s   {namespace}element(   RÆ   s   {namespace}element(   RÉ   s   {namespace}element(   RÆ   s   {namespace}element(   RÉ   s   {namespace}empty-element(   RÆ   s   {namespace}empty-element(   RÆ   s   {namespace}root(	   R±   R‹   R²   t   listR   Rk   R´   R5   R°   (   R   R¸   R¹   RÜ   t   builderRº   (    (    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.pyt   test_custom_buildern  s@    		
		s@   This method will be removed in future versions.  Use .+ instead.c         C   sø  t  t d ƒ � } t j | ƒ } Wd  QX|  j g  | j ƒ  j ƒ  D] } t | j ƒ  ƒ ^ q@ d d d g g  g  g  g ƒ |  j g  | j	 ƒ  D] } t | j ƒ  ƒ ^ qŠ d d d g g  g  g  g ƒ t j
 t ƒ } |  j t | j ƒ  ƒ d ƒ |  j t | d j ƒ  ƒ d ƒ |  j | | j ƒ  ƒ | d } | d } | d d 5|  j t | j ƒ  ƒ d ƒ |  j | | d ƒ |  j | | d ƒ | | g | d d +|  j | | d ƒ |  j | | d ƒ |  j | | d ƒ | j ƒ  |  j | j ƒ  g  ƒ d  S(   Nt   rRL   s   empty-elementi   i   i   i    (   R±   R‹   R   R¯   R5   RV   R)   R(   R]   Rf   Rg   R‰   R;   t   assertNotEqualRb   (   R   R¸   R$   R    t   child1t   child2(    (    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.pyt   test_getchildren§  s<    	+
	%
 



c         C   sT   t  j d ƒ } |  j t  j | ƒ d ƒ t  j d ƒ } |  j t  j | ƒ d ƒ d  S(   Ns   <html><body>text</body></html>(   R   Rg   R5   R¦   Rh   (   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.pyt   test_writestringÏ  s    c      ?      s‚  d ‡  f d † } | d d ƒ | d d ƒ | d d ƒ | d d	 ƒ | d
 d ƒ | d d ƒ d „  ‰ ‡ f d †  } d d d d d d d d d d d d d d d d d d  d! d" d
 d# d$ d% d& d' d( d) d* d+ d, d- d. d/ d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d: d; d< d= d> d? d@ dA d dB dC dD dE dF dG dH dI dJ dK g? } x6 | D]. } ˆ  j  t j t j | | ƒ ƒ ƒ dL ƒ qBWdM dN dO dP dQ dR dS dT dU dV dW dX dY dZ d[ d\ d] d^ d_ g } x* | D]" } ˆ  j t t j | | ƒ ƒ qºWd` da db dc dd de df dg dh di g
 } x- | D]% } ˆ  j t j t j | | ƒ ƒ qWˆ  j t t j ˆ dj ƒ j d ƒ ƒ ˆ  j t t j ˆ dk ƒ j d ƒ ƒ d  S(l   NR9   c            s9   d |  | f } ˆ  j  t j | j |  ƒ ƒ j | ƒ d  S(   Ns0   <?xml version='1.0' encoding='%s'?><xml>%s</xml>(   R5   R   Rg   RŠ   R*   (   t   encodingR½   t   xml(   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.pyt   checkÖ  s    R¼   Ru   s   us-asciis
   iso-8859-1u   Â½s   iso-8859-15u   â‚¬t   cp437u   âˆšs	   mac-romanu   Ëšc         S   s   d |  S(   Ns*   <?xml version='1.0' encoding='%s'?><xml />(    (   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.pyRè   á  s    c            s   ˆ  |  ƒ j  |  ƒ S(   N(   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.pyt   bxmlã  s    s   utf-8s	   utf-8-sigs   utf-16s   utf-16bes   utf-16les	   iso8859-1s	   iso8859-2s	   iso8859-3s	   iso8859-4s	   iso8859-5s	   iso8859-6s	   iso8859-7s	   iso8859-8s	   iso8859-9s
   iso8859-10s
   iso8859-13s
   iso8859-14s
   iso8859-15s
   iso8859-16t   cp720t   cp737t   cp775t   cp850t   cp852t   cp855t   cp856t   cp857t   cp858t   cp860t   cp861t   cp862t   cp863t   cp865t   cp866t   cp869t   cp874t   cp1006t   cp1250t   cp1251t   cp1252t   cp1253t   cp1254t   cp1255t   cp1256t   cp1257t   cp1258s   mac-cyrillics	   mac-greeks   mac-icelands
   mac-latin2s   mac-turkishs
   iso2022-jps   iso2022-jp-1s   iso2022-jp-2s   iso2022-jp-2004s   iso2022-jp-3s   iso2022-jp-exts   koi8-rs   koi8-ut   ptcp154s   <xml />t   big5t	   big5hkscst   cp932t   cp949t   cp950s   euc-jps   euc-jis-2004s   euc-jisx0213s   euc-krt   gb2312t   gbkt   gb18030s
   iso2022-krt   johabt   hzs	   shift-jiss   shift-jis-2004s   shift-jisx0213s   utf-7t   cp037t   cp424t   cp500t   cp864t   cp875t   cp1026t   cp1140t   utf_32t	   utf_32_bet	   utf_32_let	   undefinedt   xxx(	   R5   R   R¦   Rg   R€   R�   RÑ   RŠ   t   LookupError(   R   Ré   Rë   t   supported_encodingsRç   t&   unsupported_ascii_compatible_encodingst(   unsupported_ascii_incompatible_encodings(    (   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.pyt   test_encodingÕ  sR    			,					 #%c         C   s¢   t  j d ƒ } d | _ |  j t | ƒ d ƒ |  j t | d d  ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd	 ƒ d  S(
   Ns-   <html><link/><script>1 &lt; 2</script></html>s   
s/   <html><link /><script>1 &lt; 2</script></html>
RO   Rè   t   htmls*   <html><link><script>1 < 2</script></html>
R*   s   1 < 2
(   R   Rg   R,   R5   R%   RK   (   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.pyt   test_methods  s    	c         C   sE   t  j d ƒ } |  j t | ƒ d ƒ |  j t | d d ƒd ƒ d  S(   Ns(   <html><CamelCase>text</CamelCase></html>RO   R#  (   R   Rg   R5   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.pyt   test_issue18347  s
    c         C   s  t  j d ƒ } |  j t | d d ƒd ƒ |  j | d ƒ |  j t  j ƒ � } t  j d ƒ Wd  QX|  j t | j ƒ d ƒ |  j t  j ƒ � } t  j t	 ƒ Wd  QX|  j t | j ƒ d ƒ t  j
 ƒ  } d | j d	 <| j t	 ƒ | j ƒ  } |  j | d
 ƒ d  S(   Ns*   <document title='&#x8230;'>test</document>Rç   s   us-asciis*   <document title="&#33328;">test</document>s   <document>&entity;</document>s#   undefined entity: line 1, column 10s,   undefined entity &entity;: line 5, column 10R*   t   entitys   <document>text</document>(   R   Rg   R5   R%   R7   R€   RÑ   R‚   Rƒ   t
   ENTITY_XMLRk   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.pyt   test_entity%  s"    c         C   sŸ   t  j d ƒ } |  j | d ƒ t  j d ƒ } |  j | d ƒ t  j d ƒ } |  j | d ƒ t  j d ƒ } |  j | d ƒ t  j t ƒ } |  j | d	 ƒ d  S(
   Ns   <tag xml:lang='en' />s   <tag xml:lang="en" />sC   <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' />sC   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />s7   <html:html xmlns:html='http://www.w3.org/1999/xhtml' />s7   <html:html xmlns:html="http://www.w3.org/1999/xhtml" />sG   <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope' />sE   <ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope" />sŸ   <ns0:body xmlns:ns0="http://effbot.org/ns">
  <ns0:tag>text</ns0:tag>
  <ns0:tag />
  <ns0:section>
    <ns0:tag>subtext</ns0:tag>
  </ns0:section>
</ns0:body>(   R   Rg   R7   t   SAMPLE_XML_NS(   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.pyt   test_namespaceC  s    				c         C   s›  t  j d ƒ } |  j | d ƒ t  j t  j d ƒ ƒ } |  j | d ƒ t  j t  j d d ƒ ƒ } |  j | d ƒ t  j t  j d d ƒ ƒ } t  j | t  j d d ƒ ƒ } t  j | t  j d d ƒ ƒ } |  j | d ƒ | j ƒ  d | j d	 <|  j | d
 ƒ | j ƒ  d | j t  j d	 ƒ <|  j | d
 ƒ | j ƒ  d | j d	 <|  j | d ƒ | j ƒ  t  j d ƒ | j d	 <|  j | d ƒ | j ƒ  t  j d ƒ } t  j d ƒ | j d <| j | ƒ | j | ƒ |  j | d ƒ |  j t	 t  j d d ƒ ƒ d ƒ |  j t	 t  j d ƒ ƒ d ƒ t  j d d ƒ } t  j d d ƒ } |  j | | ƒ t  j d d ƒ } |  j
 | | ƒ |  j
 | d ƒ |  j | d ƒ d  S(   Ns   {uri}tags   <ns0:tag xmlns:ns0="uri" />t   uriR&   t   tag1R~   s;   <ns0:tag xmlns:ns0="uri"><ns0:tag1 /><ns0:tag2 /></ns0:tag>R@   s   {uri}keys+   <ns0:tag xmlns:ns0="uri" ns0:key="value" />s
   {uri}values0   <ns0:tag xmlns:ns0="uri" ns0:key="{uri}value" />s/   <ns0:tag xmlns:ns0="uri" ns0:key="ns0:value" />s   {uri2}values	   {uri1}keys{   <ns0:tag xmlns:ns0="uri" xmlns:ns1="uri1" xmlns:ns2="uri2"><tag ns1:key="ns2:value" /><tag ns1:key="ns2:value" /></ns0:tag>t   nss   {ns}tags	   other-tags   ns:tag(   R   RU   R7   t   QNameRÙ   Rb   RG   RY   R5   R‚   Râ   (   R   R    R¬   t   q1t   q2(    (    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.pyt
   test_qnamed  sV    	
	
	
	
	
	"c         C   s   t  j d ƒ } d  S(   NsŠ   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>text</html>(   R   Rg   (   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.pyt   test_doctype_public¥  s    c            sü  d d l  m ‰  ‡  ‡ f d †  } | d d g ƒ | d d d g ƒ | d d	 d
 g ƒ | d d	 d g ƒ | d d d d d g ƒ | d d d d d d g ƒ | d d d d g ƒ | d d d d d d d d d d d d d g ƒ | d d d d g ƒ | d d d g ƒ | d d d d d  g ƒ | d! d! g ƒ | d" d! d d g ƒ | d# d# g ƒ | d$ d# d d	 d% g ƒ | d& d d d' d g ƒ | d( d) d d	 d* d+ d, d+ d	 d- d g
 ƒ | d. d. g ƒ | d/ d! d d0 g ƒ | d1 d! d d. g ƒ d  S(2   Niÿÿÿÿ(   R   c            s<   ˆ j  g  ˆ  j |  ƒ D] \ } } | p+ | ^ q | ƒ d  S(   N(   R5   t   xpath_tokenizer(   t   pR6   t   opR&   (   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.pyRé   °  s    	(RT   s   text()R*   s   ()s   @namet   @t   names   @*s   para[1]t   parat   [t   1t   ]s   para[last()]t   lasts   */parat   /s   /doc/chapter[5]/section[2]t   doct   chaptert   5t   sectiont   2s   chapter//paras   //s   //paras   //olist/itemt   olistRE   t   .s   .//paras   ..s   ../@langt   langs   chapter[title]t   titles#   employee[@secretary and @assistant]t   employeet	   secretaryR9   t   andt	   assistants   {http://spam}eggs
   ./spam.eggs   spam.eggs   .//{http://spam}egg(   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.pyt   test_xpath_tokenizer­  s2    	"c         C   s›   |  j  t j t j d d ƒ ƒ d ƒ |  j  t j t j d d ƒ ƒ d ƒ |  j  t j t j d d ƒ ƒ d ƒ |  j  t j t j d d ƒ d ƒ d ƒ d  S(	   NR   t   instructions   <?test instruction?>s
   <testing&>s   <?test <testing&>?>u   <testing&>Ã£t   latin1s<   <?xml version='1.0' encoding='latin1'?>
<?test <testing&>ã?>(   R5   R   R¦   Rj   Ri   (   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.pyt   test_processinginstructionÐ  s    !c         C   sÇ   xÀ d d d d d d d d d	 d
 d d d g D]‘ } xˆ | | j  ƒ  g D]t } d | } t t j d | ƒ d d ƒ} |  j | | ƒ t t j d | | f ƒ d d ƒ} |  j | | ƒ qG Wq. Wd  S(   Nt   AREAt   BASEt   BASEFONTt   BRt   COLt   FRAMEt   HRt   IMGt   INPUTt   ISINDEXt   LINKt   METAt   PARAMs   <%s>s   <%s />RO   R#  s	   <%s></%s>(   t   lowerR%   R   Rg   R5   (   R   RL   R    R6   t
   serialized(    (    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.pyt#   test_html_empty_elems_serializationà  s    
	(    R   R   R7   Rm   R}   R‡   Rˆ   R�   R”   Rœ   R¨   R­   R»   RÅ   RÖ   RÛ   Rà   R   t   DeprecationWarningt   PendingDeprecationWarningRå   Ræ   R"  R$  R%  R(  R*  R1  R2  RK  RN  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.pyR4   •   s8   		Y		)	
				5		8		]		9&		:				!	A		#	s´   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>120 Mz is adequate for an average home user.</p>
  <xi:include href="disclaimer.xml"/>
</document>
s   C1.xmlsÐ   <?xml version='1.0'?>
<disclaimer>
  <p>The opinions represented herein represent those of the individual
  and should not be interpreted as official policy endorsed by this
  organization.</p>
</disclaimer>
s   disclaimer.xmls¶   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>This document has been accessed
  <xi:include href="count.txt" parse="text"/> times.</p>
</document>
s   C2.xmlt   324387s	   count.txts¿   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>This document has been <em>accessed</em>
  <xi:include href="count.txt" parse="text"/> times.</p>
</document>
s   C2b.xmlsÙ   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>The following is the source of the "data.xml" resource:</p>
  <example><xi:include href="data.xml" parse="text"/></example>
</document>
s   C3.xmlsQ   <?xml version='1.0'?>
<data>
  <item><![CDATA[Brooks & Shields]]></item>
</data>
s   data.xmlsW  <?xml version='1.0'?>
<div xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="example.txt" parse="text">
    <xi:fallback>
      <xi:include href="fallback-example.txt" parse="text">
        <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>
      </xi:include>
    </xi:fallback>
  </xi:include>
</div>
s   C5.xmls„   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>Example.</p>
  <xi:include href="{}"/>
</document>
s   default.xmlsÅ   <?xml version='1.0'?>
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <p>120 Mz is adequate for an average home user.</p>
  <xi:include href="disclaimer.xml" parse="BAD_TYPE"/>
</document>
s   B1.xmlsn   <?xml version='1.0'?>
<div xmlns:xi="http://www.w3.org/2001/XInclude">
    <xi:fallback></xi:fallback>
</div>
s   B2.xmlt   XIncludeTestc           B   s>   e  Z d  d d „ Z d d „ Z d „  Z d „  Z d „  Z RS(   Rè   c         C   sP   y t  | } Wn t k
 r- t d ƒ ‚ n X| d k rL t j | ƒ } n  | S(   Ns   resource not foundRè   (   t   XINCLUDEt   KeyErrort   IOErrorR   Rg   (   R   t   hrefR¯   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.pyt   xinclude_loaderP  s    c         C   s   d  S(   N(   RK   (   R   Rf  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.pyt   none_loaderY  s    c         C   sF   d d l  m } |  j d ƒ } | j | ƒ |  j t | ƒ d ƒ d  S(   Niÿÿÿÿ(   R   s   default.xmls”   <document>
  <p>Example.</p>
  <root>
   <element key="value">text</element>
   <element>text</element>tail
   <empty-element />
</root>
</document>(   R   R   Rg  t   includeR5   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.pyt   test_xinclude_default\  s
    c         C   s]  d d l  m } |  j d ƒ } | j | |  j ƒ |  j t | ƒ d ƒ |  j d ƒ } | j | |  j ƒ |  j t | ƒ d ƒ |  j d ƒ } | j | |  j ƒ |  j t | ƒ d ƒ |  j d	 ƒ } | j | |  j ƒ |  j t | ƒ d
 ƒ |  j d ƒ } |  j t ƒ � } | j | |  j ƒ Wd  QX|  j t | j	 ƒ d ƒ |  j t | ƒ d ƒ d  S(   Niÿÿÿÿ(   R   s   C1.xmls  <document>
  <p>120 Mz is adequate for an average home user.</p>
  <disclaimer>
  <p>The opinions represented herein represent those of the individual
  and should not be interpreted as official policy endorsed by this
  organization.</p>
</disclaimer>
</document>s   C2.xmlsO   <document>
  <p>This document has been accessed
  324387 times.</p>
</document>s   C2b.xmlsX   <document>
  <p>This document has been <em>accessed</em>
  324387 times.</p>
</document>s   C3.xmlsæ   <document>
  <p>The following is the source of the "data.xml" resource:</p>
  <example>&lt;?xml version='1.0'?&gt;
&lt;data&gt;
  &lt;item&gt;&lt;![CDATA[Brooks &amp; Shields]]&gt;&lt;/item&gt;
&lt;/data&gt;
</example>
</document>s   C5.xmls   resource not foundsI  <div xmlns:ns0="http://www.w3.org/2001/XInclude">
  <ns0:include href="example.txt" parse="text">
    <ns0:fallback>
      <ns0:include href="fallback-example.txt" parse="text">
        <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>
      </ns0:include>
    </ns0:fallback>
  </ns0:include>
</div>(
   R   R   Rg  Ri  R5   R%   R€   Re  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.pyt   test_xincludej  s.    
c         C   sˆ  d d l  m } t j t d ƒ } |  j | j ƒ � } | j | d |  j ƒWd  QX|  j	 t
 | j ƒ d ƒ t j t d ƒ } |  j | j ƒ � } | j | d |  j ƒWd  QX|  j	 t
 | j ƒ d ƒ t j t d ƒ } |  j | j ƒ � } | j | d |  j ƒWd  QX|  j	 t
 | j ƒ d	 ƒ t j t d
 ƒ } |  j | j ƒ � } | j | d |  j ƒWd  QX|  j	 t
 | j ƒ d ƒ d  S(   Niÿÿÿÿ(   R   s   C1.xmlt   loaders%   cannot load 'disclaimer.xml' as 'xml's   C2.xmls!   cannot load 'count.txt' as 'text's   B1.xmls1   unknown parse type in xi:include tag ('BAD_TYPE')s   B2.xmlsY   xi:fallback tag must be child of xi:include ('{http://www.w3.org/2001/XInclude}fallback')(   R   R   R   Rg   Rc  R€   t   FatalIncludeErrorRi  Rh  R5   R‚   Rƒ   t   XINCLUDE_BAD(   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.pyt   test_xinclude_failuresª  s*    N(   R   R   RK   Rg  Rh  Rj  Rk  Ro  (    (    (    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.pyRb  N  s
   			@t   BugsTestc           B   s  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 e j e j ƒ  d	 ƒ d
 „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c            sÂ   ‡  f d †  } t  j d ƒ } | | ƒ t  j d ƒ } d | _ | | ƒ t  j d ƒ } d | _ | | ƒ t  j d ƒ } | j d d ƒ | | ƒ t  j d ƒ } | j d d ƒ | | ƒ d  S(   Nc            s?   ˆ  j  t ƒ � } t |  ƒ Wd  QXˆ  j t | j ƒ d ƒ d  S(   Ns   cannot serialize 123 (type int)(   R€   t	   TypeErrorR%   R5   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.pyRé   Ò  s    i{   R    t   123(   R   RU   R*   R,   Rd   (   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.pyt   test_bug_xmltoolkit21Ï  s    
	
	

c         C   sT   t  j t ƒ } t  j | ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ d  S(   NR&   R*   s   section/tagR×   (   R   Rg   R‰   R   R5   Ra   (   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.pyt   test_bug_xmltoolkit25ë  s    c         C   sT   t  j d ƒ } |  j t | j d ƒ ƒ g  ƒ |  j t | j d ƒ ƒ d g ƒ d  S(   Ns"   <doc><table><tbody/></table></doc>s   .//theads   .//tbodyt   tbody(   R   Rg   R5   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.pyt   test_bug_xmltoolkit28ó  s    c         C   sK   t  j d ƒ } t j ƒ  �* } t  j | ƒ |  j | j ƒ  d ƒ Wd  QXd  S(   Ns"   <doc><table><tbody/></table></doc>s$   <doc><table><tbody /></table></doc>
(   R   Rg   R   t   captured_stdoutt   dumpR5   R   (   R   R$   t   stdout(    (    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.pyt   test_bug_xmltoolkitX1ú  s    c         C   s  t  j d ƒ } |  j t  j | d ƒ d ƒ t  j d ƒ } |  j | j i d d 6ƒ |  j t  j | d ƒ d ƒ t  j d ƒ } |  j t  j | d ƒ d	 ƒ t  j d
 ƒ } |  j t  j | d ƒ d ƒ t  j d ƒ } | j d d ƒ |  j t  j | d ƒ d ƒ d  S(   Ns2   <?xml version='1.0' encoding='iso-8859-1'?><täg />s   utf-8s   <tÃ¤g />sD   <?xml version='1.0' encoding='iso-8859-1'?><tag ättr='v&#228;lue' />u   vÃ¤lueu   Ã¤ttrs   <tag Ã¤ttr="vÃ¤lue" />s:   <?xml version='1.0' encoding='iso-8859-1'?><täg>text</täg>s   <tÃ¤g>text</tÃ¤g>u   tÃ¤gR&   (   R   Rg   R5   R¦   RG   RU   Rd   (   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.pyt   test_bug_xmltoolkit39  s    c         C   s)   t  j d ƒ } |  j t | ƒ d ƒ d  S(   Ns=   <!DOCTYPE doc [<!ENTITY ldots '&#x8230;'>]><doc>&ldots;</doc>s   <doc>&#33328;</doc>(   R   Rg   R5   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.pyt   test_bug_xmltoolkit54  s    c         C   sE   |  j  t j ƒ � } t j d ƒ Wd  QX|  j t | j ƒ d ƒ d  S(   Ns?   <!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>s+   undefined entity &ldots;: line 1, column 36(   R€   R   RÑ   Rg   R5   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.pyt   test_bug_xmltoolkit55"  s    c         C   s0   d d d „  ƒ  Y} |  j  t t j | ƒ  ƒ d  S(   Nt   ExceptionFilec           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   Re  (   R   t   x(    (    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.pyR²   /  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_xml_etree.pyR~  .  s   (    (   R€   Re  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.pyt   test_bug_xmltoolkit60+  s    c         C   si   i d d 6d d 6} t  j ƒ  } | j j | ƒ | j d ƒ | j ƒ  } |  j | j d ƒ j d ƒ d  S(   Nu   â€™u   rsquou   â€˜u   lsquosF  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE patent-application-publication SYSTEM "pap-v15-2001-01-31.dtd" []>
<patent-application-publication>
<subdoc-abstract>
<paragraph id="A-0001" lvl="0">A new cultivar of Begonia plant named &lsquo;BCT9801BEG&rsquo;.</paragraph>
</subdoc-abstract>
</patent-application-publication>s   .//paragraphu7   A new cultivar of Begonia plant named â€˜BCT9801BEGâ€™.(	   R   Rl   R&  t   updateR´   Rµ   R5   R^   R*   (   R   t   ENTITIESRº   t   t(    (    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.pyt   test_bug_xmltoolkit624  s    s   Skips under coverage.c         C   sZ   d „  } | ƒ  t  j d  ƒ } x t d ƒ D] } | ƒ  q, W|  j t  j d  ƒ | ƒ d  S(   Nc          S   s:   t  j ƒ  }  |  j d i  ƒ |  j d ƒ |  j d ƒ d  S(   NR&   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.pyt   xmltoolkit63H  s    iè  (   t   syst   getrefcountRK   RŽ   R5   (   R   R…  t   countR’   (    (    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.pyt   test_bug_xmltoolkit63E  s    	c         C   sˆ   t  j d d d ƒ} |  j t  j | ƒ d ƒ |  j t  j t  j | ƒ ƒ j d ƒ d ƒ |  j t  j t  j t  j | ƒ ƒ ƒ d ƒ d  S(   Nt   SomeTagR*   s   def _f():
  return 3
s0   <SomeTag text="def _f():&#10;  return 3&#10;" />(   R   RU   R5   R¦   Rg   Rc   (   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.pyt   test_bug_200708_newlineT  s    $$c         C   s„   t  j ƒ  } | j d ƒ |  j | j ƒ  j d ƒ d d d „  ƒ  Y} t  j d | ƒ  ƒ } | j d ƒ |  j | j ƒ  j d ƒ d  S(   Ns   <element>some text</element>RL   t
   EchoTargetc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         S   s   d  S(   N(    (   R   R&   RG   (    (    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.pyRÉ   g  s    c         S   s   d  S(   N(    (   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.pyRÆ   i  s    c         S   s   d  S(   N(    (   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.pyR¹   k  s    c         S   s   t  j d ƒ S(   NRL   (   R   RU   (   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.pyRµ   m  s    (   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.pyRŒ  f  s   			R®   (    (   R   Rk   R´   R5   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.pyt   test_bug_200708_close_  s    	c         C   s  t  j d ƒ } t  j | d ƒ } |  j t | d d ƒd ƒ t  j d ƒ } t  j | d ƒ } t  j | d ƒ } |  j t | d d ƒd ƒ t  j d ƒ } t  j | d ƒ } t  j | d ƒ } |  j t ƒ � } t | d d ƒWd  QX|  j t | j ƒ d ƒ d  S(	   Ns   {default}elemt   default_namespaceR�   s%   <elem xmlns="default"><elem /></elem>s   {not-default}elemsI   <elem xmlns="default" xmlns:ns1="not-default"><elem /><ns1:elem /></elem>R    s<   cannot use non-qualified names with default_namespace option(	   R   RU   RÙ   R5   R%   R€   R�   R‚   Rƒ   (   R   R„   t   sR†   (    (    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.pyt!   test_bug_200709_default_namespaces  s     c         C   sŒ   t  j d ƒ } |  j t  j | ƒ d ƒ t  j d d ƒ t  j d ƒ } |  j t  j | ƒ d ƒ t  j d ƒ } |  j t  j | ƒ d ƒ d  S(   Ns/   {http://namespace.invalid/does/not/exist/}titlesB   <ns0:title xmlns:ns0="http://namespace.invalid/does/not/exist/" />R–   s(   http://namespace.invalid/does/not/exist/sB   <foo:title xmlns:foo="http://namespace.invalid/does/not/exist/" />s'   {http://purl.org/dc/elements/1.1/}titles8   <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/" />(   R   RU   R5   R¦   t   register_namespace(   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.pyt"   test_bug_200709_register_namespaceŠ  s    c         C   s‚   t  j d ƒ } | j t  j d ƒ ƒ |  j | d j t  j ƒ t  j d ƒ } | j t  j d ƒ ƒ |  j | d j t  j ƒ d  S(   NRu   R–   i    (   R   RU   RY   RÚ   R5   R&   Ri   (   R   Ru   (    (    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.pyt   test_bug_200709_element_comment™  s    c         C   s§   t  j d ƒ } t  j | d ƒ } t  j | d ƒ } t  j d ƒ } | j d | ƒ |  j t | ƒ d d d g ƒ | j d | ƒ |  j t | ƒ d d d d g ƒ d  S(   NRu   Rt   Rw   Rv   i    iÿÿÿÿ(   R   RU   RÙ   R[   R5   R(   (   R   Ru   Rt   Rw   Rv   (    (    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.pyt   test_bug_200709_element_insert¥  s    c         C   si   t  j d ƒ } t  j | d ƒ } t  j d ƒ } | j | ƒ |  j t | j t  j ƒ ƒ t  j g ƒ d  S(   NRu   Rt   s   TEST-b(   R   RU   RÙ   RÚ   RY   R5   R(   R)   (   R   Ru   Rt   t	   comment_b(    (    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.pyt   test_bug_200709_iter_comment¯  s
    c         C   sb   t  j ƒ  } | j d ƒ } | j d i  ƒ } | j d ƒ } | j ƒ  } |  j t | ƒ d ƒ d  S(   NR¹   R&   s   <tag />(   R   R¶   R¹   RÉ   RÆ   Rµ   R5   R%   (   R   t   bobR„   (    (    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.pyt   test_bug_1534630¹  s    c         C   sZ   t  j d ƒ } |  j t  j | d ƒ d ƒ t  j d ƒ } |  j t  j | d ƒ d ƒ d  S(   Ns7   <?xml version='1.0' encoding='utf-8'?><body>tÃ£g</body>R¼   s<   <?xml version='1.0' encoding='ascii'?>
<body>t&#227;g</body>s;   <?xml version='1.0' encoding='iso-8859-1'?><body>tãg</body>(   R   Rg   R5   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.pyt   test_issue6233Á  s    c         C   sN   t  j d ƒ } |  j | j d ƒ t  j | ƒ } |  j t  j | ƒ d ƒ d  S(   Ns+   <prefix:localname xmlns:prefix="${stuff}"/>s   {${stuff}}localnames&   <ns0:localname xmlns:ns0="${stuff}" />(   R   Rg   R5   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.pyt   test_issue3151Í  s    c         C   sb   t  j d ƒ } |  j t | ƒ d g ƒ t  j t ƒ } | | (|  j t | ƒ d d d g ƒ d  S(   Ns   <body><tag/></body>R&   RA  (   R   Rg   R5   R(   R‰   (   R   R    t   newelem(    (    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.pyt   test_issue6565Ó  s
    c         C   s$   t  j d d ƒ t  j d d ƒ d  S(   Nt	   test10777s   http://myuri/(   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.pyt   test_issue10777Ú  s    c         C   s?   d | } t  j | ƒ } |  j | j d ƒ | j d ƒ ƒ d  S(   Ns   <a b="%s"/>Rt   s   utf-8(   R   Rg   R5   Rc   t   decode(   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.pyt   check_expat224_utf8_bugá  s    
c         C   s6   d d } |  j  | ƒ d d d } |  j  | ƒ d  S(   Ns   Ã i   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.pyt   test_expat224_utf8_bugæ  s    
c         C   s“   t  t d ƒ � } | j ƒ  } Wd  QXt j | ƒ } | j d ƒ } | j d ƒ j ƒ  } | j d d ƒ } | d d !} |  j	 | j d ƒ | ƒ d  S(   NRÌ   Rt   s   utf-8s   
R:   i   iüÿÿÿ(
   R±   t   UTF8_BUG_XMLFILER²   R   Rh   Rc   RŸ  t   stripR+   R5   (   R   t   fpt   rawRÇ   t   xmlattrR*   (    (    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.pyt   test_expat224_utf8_bug_fileò  s    (   R   R   Rs  Rt  Rv  Rz  R{  R|  R}  R€  R„  R/   t   skipIfR†  t   gettraceR‰  R‹  R�  R�  R’  R“  R”  R–  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.pyRp  Í  s2   											!						
	
							t   BasicElementTestc           B   s5   e  Z e d  „  ƒ Z e d „  ƒ Z e d „  ƒ Z RS(   c         C   sL  d d	 d „  ƒ  Y} | ƒ  } t  j d d | ƒ| _ t j | ƒ } ~ t ƒ  |  j | ƒ  ƒ t  j d ƒ } | ƒ  } | | _ t j | ƒ } t  j | d d | ƒ} ~ ~ ~ t ƒ  |  j | ƒ  ƒ t  j d ƒ } t  j d ƒ } t  j d ƒ } | j | ƒ | j | ƒ | j | ƒ t j | ƒ } ~ ~ ~ t ƒ  |  j | ƒ  ƒ d  S(
   Nt   Dummyc           B   s   e  Z RS(    (   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.pyR«    s   t   joet   attrR–   R™   Rš   R›   (    (	   R   RU   t   dummyreft   weakreft   refR   R|   RÙ   RY   (   R   R«  Rv   t   wrefR„   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.pyt   test_cyclic_gc  s2    					c            sy   g  ‰  ‡  f d †  } t  j d ƒ } t j | | ƒ } |  j | ƒ  j d ƒ ~ |  j ˆ  t g ƒ |  j | ƒ  d  ƒ d  S(   Nc            s   ˆ  j  t ƒ d  S(   N(   RY   t   True(   t   w(   t   flag(    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.pyt   wref_cb+  s    R„   (   R   RU   R¯  R°  R5   R&   R³  RK   (   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.pyt   test_weakref(  s    c         C   sc   t  j d d d d d d d ƒ} |  j | j d d d	 ƒd ƒ |  j | j d
 d d	 ƒd	 ƒ d  S(   NR–   R  i   t   yi   t   zi   R�   i   R´  (   R   RU   R5   Rc   (   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.pyt   test_get_keyword_args4  s    !(   R   R   R2   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.pyRª    s   $t   BadElementTestc           B   s_   e  Z d  „  Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z RS(	   c            s¶   d t  f ‡  f d †  ƒ  Y} | ƒ  g ‰  t j d ƒ } y | j ˆ  ƒ Wn t k
 r[ n Xt t k r² d | t j f d „  ƒ  Y} | d ƒ g ‰  t j d ƒ } | j ˆ  ƒ n  d  S(   Nt   Xc              s   e  Z e ‡  f d  †  ƒ Z RS(   c            s   t  j d ƒ g ˆ  (t  j S(   Nt   baz(   R   RU   (   R   (   t   L(    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.pyt	   __class__>  s    (   R   R   t   propertyR¿  (    (   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.pyR¼  =  s   R–   t   Yc           B   s   e  Z RS(    (   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.pyRÁ  J  s   R  (   t   objectR   RU   RZ   Rq  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.pyt   test_extend_mutable_list<  s    c            sÎ   d t  f ‡  f d †  ƒ  Y} | ƒ  t j d ƒ g ‰  t j d ƒ } y | j ˆ  ƒ Wn t k
 rg n Xt t k rÊ d | t j f d „  ƒ  Y} | d ƒ t j d ƒ g ‰  t j d ƒ } | j ˆ  ƒ n  d  S(   NR¼  c              s   e  Z e ‡  f d  †  ƒ Z RS(   c            s   ˆ  2t  j S(   N(   R   RU   (   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.pyR¿  R  s    (   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.pyR¼  Q  s   R½  R–   RÁ  c           B   s   e  Z RS(    (   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.pyRÁ  ^  s   R•   (   RÂ  R   RU   RZ   Rq  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.pyt   test_extend_mutable_list2P  s    c            s«   d t  j f ‡  f d †  ƒ  Y} t  j d ƒ ‰  ˆ  j | d ƒ g ƒ |  j t ˆ  j t  j d ƒ ƒ t  j d ƒ ‰  ˆ  j t  j d ƒ g ƒ |  j t ˆ  j | d ƒ ƒ d  S(   NR¼  c              s    e  Z ‡  f d  †  Z e j Z RS(   c            s   ˆ  2t  S(   N(   t   False(   R   t   o(   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.pyt   __eq__g  s    (   R   R   RÇ  RÂ  t   __hash__(    (   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.pyR¼  f  s   R–   R•   R½  (   R   RU   RZ   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.pyt   test_remove_with_mutatingd  s    c      
   C   sL   t  j d ƒ } t | d | ƒ �% |  j t ƒ � t | ƒ Wd  QXWd  QXd  S(   NR–   R&   (   R   RU   R   R€   t   RuntimeErrorRX   (   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.pyt   test_recursive_reprs  s    c            s•   d t  f ‡  f d †  ƒ  Y} t j ƒ  } | j d i  ƒ | j d ƒ | j | d ƒ ƒ | j d ƒ | j d ƒ | j ƒ  ‰  |  j ˆ  j d ƒ d  S(   NR¼  c              s   e  Z ‡  f d  †  Z RS(   c            s#   y ˆ  j  Wn t k
 r n Xd  S(   N(   R*   t	   NameError(   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.pyt   __del__}  s    (   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.pyR¼  |  s   R&   t   ABCDt   EFGHt   IJKLt   ABCDEFGHIJKL(	   R‚   R   R¶   RÉ   R¹   RÆ   Rµ   R5   R*   (   R   R¼  Rt   (    (   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.pyt   test_element_get_textz  s    c            s¶   d t  f ‡  f d †  ƒ  Y} t j ƒ  } | j d i  ƒ | j d i  ƒ | j d ƒ | j d ƒ | j | d ƒ ƒ | j d ƒ | j d ƒ | j ƒ  ‰  |  j ˆ  d j d	 ƒ d  S(
   NR¼  c              s   e  Z ‡  f d  †  Z RS(   c            s'   y ˆ  d j  Wn t k
 r" n Xd  S(   Ni    (   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.pyRÍ  �  s    (   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.pyR¼  �  s   RÇ   R&   RÎ  RÏ  RÐ  i    RÑ  (	   R‚   R   R¶   RÉ   RÆ   R¹   Rµ   R5   R,   (   R   R¼  Rt   (    (   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.pyt   test_element_get_tail�  s    c         C   s^   t  j d ƒ } | j d  g ƒ | j ƒ  } |  j t | ƒ | ƒ |  j t t	 f t
 | ƒ d  S(   NR&   (   R   RU   RZ   RK   R)   t   assertIsRQ   R€   t   AttributeErrorRq  RÞ   (   R   R„   RR   (    (    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.pyt   test_element_iter¢  s
    c            sw   d d ‡  f d †  ƒ  Y} t  j d ƒ ‰  ˆ  j t  j d ƒ ƒ ˆ  | ƒ   ˆ  j t  j d ƒ ƒ ˆ  d d | ƒ  … d  S(   NR¼  c              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  2d S(   Ni   (    (   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.pyt	   __index__®  s    (   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.pyR¼  ­  s   R    t   childi    i
   (    (   R   RU   RY   (   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.pyt   test_subscr«  s    c            sr   d d ‡  f d †  ƒ  Y} t  j d ƒ ‰  x- t d ƒ D] } ˆ  j d t  j d ƒ ƒ q5 Wg  ˆ  d d | ƒ  … <d  S(   NR¼  c              s   e  Z ‡  f d  †  Z RS(   c            s   g  ˆ  (d S(   Ni   (    (   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.pyR×  ¼  s    (   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.pyR¼  »  s   R    i
   i    RØ  (    (   R   RU   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.pyt   test_ass_subscr¹  s
    (   R   R   RÃ  RÄ  R2   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.pyR»  ;  s   								t   MutatingElementPathc           B   s#   e  Z d  „  Z d „  Z e j Z RS(   c         G   s   t  j |  | Œ } | | _ | S(   N(   R‚   t   __new__R    (   t   clsR    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.pyRÜ  È  s    	c         C   s   |  j  2t S(   N(   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.pyRÇ  Ì  s    (   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.pyRÛ  Ç  s   		t   BadElementPathc           B   s   e  Z d  „  Z e j Z RS(   c         C   s   d d ‚ d  S(   Ng      ð?g        (    (   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.pyRÇ  Ò  s    (   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.pyRÞ  Ñ  s   	t   BadElementPathTestc           B   sP   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         C   s<   t  t |  ƒ j ƒ  d d l m } | j |  _ i  | _ d  S(   Niÿÿÿÿ(   R   (   t   superRß  t   setUpR   R   R�   t
   path_cache(   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.pyRá  ×  s    c         C   s3   d d l  m } |  j | _ t t |  ƒ j ƒ  d  S(   Niÿÿÿÿ(   R   (   R   R   Râ  R�   Rà  Rß  t   tearDown(   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.pyRã  Ý  s    c         C   sB   t  j d ƒ } | j t  j d ƒ g ƒ | j t | d ƒ ƒ d  S(   NR–   R•   R  (   R   RU   RZ   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.pyt   test_find_with_mutatingâ  s    c         C   sW   t  j d ƒ } | j t  j d ƒ g ƒ y | j t d ƒ ƒ Wn t k
 rR n Xd  S(   NR–   R•   R  (   R   RU   RZ   R^   RÞ  t   ZeroDivisionError(   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.pyt   test_find_with_errorç  s    c         C   sB   t  j d ƒ } | j t  j d ƒ g ƒ | j t | d ƒ ƒ d  S(   NR–   R•   R  (   R   RU   RZ   Ra   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.pyt   test_findtext_with_mutatingï  s    c         C   sW   t  j d ƒ } | j t  j d ƒ g ƒ y | j t d ƒ ƒ Wn t k
 rR n Xd  S(   NR–   R•   R  (   R   RU   RZ   Ra   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.pyt   test_findtext_with_errorô  s    c         C   sB   t  j d ƒ } | j t  j d ƒ g ƒ | j t | d ƒ ƒ d  S(   NR–   R•   R  (   R   RU   RZ   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.pyt   test_findall_with_mutatingü  s    c         C   sW   t  j d ƒ } | j t  j d ƒ g ƒ y | j t d ƒ ƒ Wn t k
 rR n Xd  S(   NR–   R•   R  (   R   RU   RZ   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.pyt   test_findall_with_error  s    (
   R   R   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.pyRß  Ö  s   							t   ElementTreeTypeTestc           B   s>   e  Z d  „  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z RS(   c         C   s…   |  j  t j t ƒ |  j  t j t ƒ |  j  t j t ƒ t t k r� |  j  t j t ƒ |  j  t j t ƒ |  j  t j	 t ƒ n  d  S(   N(
   t   assertIsInstanceR   RÑ   t   typeR.  R   R.   RU   R¶   Rk   (   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.pyt   test_istype  s    c         C   s{   d t  j f d „  ƒ  Y} | d ƒ } |  j | t  j ƒ |  j | | ƒ |  j | j d ƒ d | _ |  j | j d ƒ d  S(   Nt	   MyElementc           B   s   e  Z RS(    (   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.pyRï    s   R–   R¬  (   R   RU   Rì  R5   R&   R*   (   R   Rï  t   mye(    (    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.pyt   test_Element_subclass_trivial  s    	c            s‡   d t  j f ‡  f d †  ƒ  Y‰  ˆ  d i d d 6d d 6d d	 d
 d ƒ} |  j | j d ƒ |  j t | j ƒ  ƒ d d d d g ƒ d  S(   NRï  c              s   e  Z i  ‡  f d  † Z RS(   c            s$   t  ˆ  |  ƒ j | d | | � d  S(   Nt   __(   Rà  t   __init__(   R   R&   RG   t   extra(   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.pyRó  %  s    (   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.pyRï  $  s   R–   i   Ru   i   Rt   Rw   i   Rv   i   t   foo__(   Ru   i   (   Rt   i   (   Rw   i   (   Rv   i   (   R   RU   R5   R&   R§   RC   (   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.pyt!   test_Element_subclass_constructor"  s
    )c         C   s?   d t  j f d „  ƒ  Y} | d ƒ } |  j | j ƒ  d ƒ d  S(   NRï  c           B   s   e  Z d  „  Z RS(   c         S   s   |  j  S(   N(   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.pyt	   newmethod0  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_xml_etree.pyRï  /  s   R¬  (   R   RU   R5   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.pyt    test_Element_subclass_new_method-  s    (   R   R   Rî  R2   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.pyRë  
  s   		t   ElementFindTestc           B   sM   e  Z e d  „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c      	   C   s  t  j t t  d t  j ƒ  ƒ �Zt  j t ƒ } |  j | j d ƒ j d ƒ |  j t  j	 | ƒ j d ƒ j d ƒ |  j | j
 d ƒ d ƒ |  j | j
 d ƒ ƒ |  j | j
 d d ƒ d ƒ |  j t  j	 | ƒ j
 d ƒ d ƒ |  j t | j d ƒ ƒ d d g ƒ |  j t | j d ƒ ƒ d d d g ƒ |  j | j d ƒ ƒ |  j | j
 d ƒ ƒ |  j t | j d ƒ ƒ g  ƒ Wd  QXd  S(   NR   R&   R*   t   togR�   s   .//tags   section/tag(   R   R   R   t   _SimpleElementPathRg   R‰   R5   R^   R&   R   Ra   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.pyt   test_simplefind8  s    %"%(c         C   sQ  t  j t ƒ } |  j | j d ƒ j d ƒ |  j | j d ƒ j d ƒ |  j | j d ƒ j d ƒ t  j t ƒ | d <|  j | j d ƒ j d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d	 ƒ |  j | j d d
 ƒ d	 ƒ |  j | j d ƒ ƒ |  j | j d d
 ƒ d
 ƒ |  j t  j d ƒ j d ƒ d	 ƒ d  S(   NR&   s   section/tags   ./tagi   s   section/nexttagt   nexttagR*   R×   R9   R�   Rú  s   <tag><empty /></tag>t   empty(	   R   Rg   R‰   R5   R^   R&   t   SAMPLE_SECTIONRa   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.pyt   test_find_simpleK  s    c         C   s¹   d } t  j | ƒ } |  j | j d ƒ j d d ƒ |  j | j d ƒ j d d ƒ |  j | j d ƒ j d d ƒ |  j | j d	 ƒ j d d
 ƒ |  j | j d ƒ j d d ƒ d  S(   Ns“   
        <body>
            <tag class='a'/>
            <tag class='b'/>
            <tag class='c'/>
            <tag class='d'/>
        </body>s   ./tag[1]t   classRu   s   ./tag[2]Rt   s   ./tag[last()]Rv   s   ./tag[last()-1]Rw   s   ./tag[last()-2](   R   Rg   R5   R^   RG   (   R   t
   LINEAR_XMLR„   (    (    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.pyt   test_find_xpathb  s        c         C   sÚ  t  j t ƒ } t  j t ƒ | d <|  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d d g ƒ |  j t | j d ƒ ƒ g  ƒ |  j t | j d ƒ ƒ g  ƒ |  j t | j d ƒ ƒ d d d g ƒ |  j t | j d	 ƒ ƒ d g d
 ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d d d g ƒ |  j t | j d ƒ ƒ d d d d g ƒ |  j t | j d ƒ ƒ d d d d g ƒ |  j t | j d ƒ ƒ d d d g ƒ |  j t | j d ƒ ƒ d d d d g ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ d g ƒ |  j t | j d ƒ ƒ g  ƒ |  j t | j d ƒ ƒ g  ƒ |  j t | j d  ƒ ƒ d g d ƒ |  j | j d! ƒ | j d ƒ ƒ d  S("   Ni   RD  R½   R&   Rú  s   tog/fooRT   RA  s   .//tagi   s   section/tags   section//tags	   section/*Rý  t   nextsections
   section//*s   section/.//*s   */*s   *//*s   */tags   */./tags   ./tags   ././tags   .//tag[@class]i   s   .//tag[@class="a"]s   .//tag[@class="b"]s   .//tag[@id]s   .//section[tag]s   .//section[element]s   ../tags   section/../tags	   section//(   R   Rg   R‰   Rÿ  R5   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.pyt   test_findalls  sR    "%"&""&&


c         C   s~   t  j t ƒ } |  j t | j d ƒ ƒ g  ƒ |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g d ƒ d  S(   NR&   s   {http://effbot.org/ns}tagi   s   .//{http://effbot.org/ns}tagi   (   R   Rg   R)  R5   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.pyt   test_test_find_with_nsŸ  s    c         C   s9   t  j t ƒ } |  j t d ƒ � | j d ƒ Wd  QXd  S(   Ns#   cannot use absolute path on elements   /tag(   R   Rg   R‰   t   assertRaisesRegexpt   SyntaxErrorR`   (   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.pyt   test_bad_find©  s    	
c         C   s‚  t  j t ƒ } |  j t  j | ƒ j d ƒ j d ƒ |  j t  j | ƒ j d ƒ j d ƒ d } t j | t	 f ƒ �* |  j t  j | ƒ j d ƒ j d ƒ Wd  QXt  j t
 ƒ | d <|  j t  j | ƒ j d ƒ j d ƒ |  j t  j | ƒ j d ƒ ƒ |  j t  j | ƒ j d ƒ ƒ |  j t  j | ƒ j d ƒ d	 ƒ |  j t  j | ƒ j d ƒ ƒ |  j t  j | ƒ j d d
 ƒ d
 ƒ |  j t  j | ƒ j d ƒ d	 ƒ t j | t	 f ƒ �' |  j t  j | ƒ j d ƒ d	 ƒ Wd  QX|  j t  j | ƒ j d ƒ d ƒ |  j t t  j | ƒ j d ƒ ƒ d g d ƒ t j | t	 f ƒ � t  j | ƒ j d ƒ } Wd  QX|  j t | ƒ d g d ƒ d  S(   NR&   s   ./tags‰   This search is broken in 1.3 and earlier, and will be fixed in a future version.  If you rely on the current behaviour, change it to '.+'s   /tagi   s   section/tagRú  s   tog/fooR*   R�   R×   (   R   Rg   R‰   R5   R   R^   R&   R   R	   t   FutureWarningRÿ  R|   Ra   R(   R`   (   R   R„   R8   RR   (    (    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.pyt   test_find_through_ElementTree¯  s.    %%+%""("!(
   R   R   R2   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.pyRù  7  s   			,	
	t   ElementIterTestc           B   sS   e  Z d d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   s   t  | j | ƒ ƒ S(   N(   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.pyt   _ilistÏ  s    c         C   sÆ  t  j d ƒ } |  j |  j | ƒ d d d g ƒ |  j |  j | j d ƒ ƒ d d g ƒ |  j t | j ƒ  ƒ j d ƒ |  j d j | j	 ƒ  ƒ d ƒ |  j d j | j d ƒ j	 ƒ  ƒ d ƒ |  j t | j	 ƒ  ƒ d ƒ t
 | d	 t ƒ} |  j t t  j | ƒ ƒ d
 d ƒ t  t k rrt
 | d	 t ƒ} t  j d t  j ƒ  ƒ } |  j t t  j | d | ƒƒ d
 d ƒ n  t  j d  ƒ } |  j t | j ƒ t  j d ƒ } |  j d j | j	 ƒ  ƒ d ƒ d  S(   Ns7   <html><body>this is a <i>paragraph</i>.</body>..</html>R#  R½   R’   R9   s   this is a paragraph...s   this is a paragraph.s
   this is a R!   i    RÆ   R®   Rº   s*   <root>a&amp;<sub>b&amp;</sub>c&amp;</root>s   a&b&c&(   R   Rg   R5   R  R^   RQ   R)   R&   R¿   Re   R%   RÅ  RÎ   R.   Rk   R¶   R   RK   R€   RÕ  (   R   R>  t
   sourcefileRº   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.pyt
   test_basicÒ  s&    "(!#"
c         C   sÿ   t  j d ƒ } |  j |  j | ƒ d g ƒ t  j | d ƒ } |  j |  j | ƒ d d g ƒ t  j | d ƒ } |  j |  j | ƒ d d d g ƒ t  j | d ƒ } |  j |  j | ƒ d d d d g ƒ | d | d <| d =|  j |  j | ƒ d d g ƒ d  S(   NRu   Rt   Rw   Rv   i   i    (   R   RU   R5   R  RÙ   (   R   Ru   Rt   Rw   Rv   (    (    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.pyt   test_cornersî  s    "%c         C   sý   t  j d ƒ } |  j |  j | d ƒ d g d ƒ |  j |  j | d ƒ d g d ƒ t  t k r� |  j t | j d d ƒ ƒ d g d ƒ n  d d d d d d d g } |  j t | j ƒ  ƒ | ƒ |  j |  j | ƒ | ƒ |  j |  j | d	 ƒ | ƒ d  S(
   NsJ  
            <document>
                <house>
                    <room>bedroom1</room>
                    <room>bedroom2</room>
                </house>
                <shed>nothing here
                </shed>
                <house>
                    <room>bedroom8</room>
                </house>
            </document>t   roomi   t   housei   R&   RÍ   t   shedRT   (   R   Rg   R5   R  R.   R(   R)   (   R   R>  t   all_tags(    (    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.pyt   test_iter_by_tag  s    	##c         C   sL   t  j s t t k r> t j d t f ƒ � |  j ƒ  Wd  QXn
 |  j ƒ  d  S(   Ns@   This method will be removed in future versions.  Use .+ instead.(   R†  t   py3kwarningR   R.   R   R	   R`  t   _test_getiterator(   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.pyt   test_getiterator"  s
    	c         C   s  t  j d ƒ } |  j t | j d ƒ ƒ d g d ƒ |  j t | j d ƒ ƒ d g d ƒ t  t k r“ |  j t | j d d ƒ ƒ d g d ƒ n  d d d d d d d g } |  j t | j ƒ  ƒ | ƒ |  j t | j d  ƒ ƒ | ƒ |  j t | j d	 ƒ ƒ | ƒ d  S(
   NsJ  
            <document>
                <house>
                    <room>bedroom1</room>
                    <room>bedroom2</room>
                </house>
                <shed>nothing here
                </shed>
                <house>
                    <room>bedroom8</room>
                </house>
            </document>R  i   R  i   R&   RÍ   R  RT   (   R   Rg   R5   R(   Rf   R.   RK   (   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.pyR  +  s    	c         C   sB   t  j d ƒ } | j ƒ  } |  j t ƒ � t j | ƒ Wd  QXd  S(   NRu   (   R   RU   R)   R€   Rq  R—   (   R   Ru   RR   (    (    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.pyRœ   K  s    c         C   sl   t  j d ƒ } | j ƒ  } xJ t t j d ƒ D]5 } |  j t t j f ƒ � t j	 | | ƒ Wd  QXq/ Wd  S(   NRu   i   (
   R   RU   R)   RŽ   t   picklet   HIGHEST_PROTOCOLR€   Rq  t   PicklingErrort   dumps(   R   Ru   RR   t   proto(    (    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.pyt   test_pickleQ  s
    N(   R   R   RK   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.pyR  Î  s   						 	t   TreeBuilderTestc           B   s€   e  Z d  Z d Z d „  Z d „  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z	 e d „  ƒ Z
 e d „  ƒ Z e d	 „  ƒ Z RS(
   s    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>text<div>subtext</div>tail</html>s   <toplevel>sometext</toplevel>c         C   sÈ   |  j  | j d ƒ |  j  | j d ƒ |  j  | j d  ƒ |  j  | j i  ƒ t | ƒ } |  j  t | ƒ d ƒ | d } |  j  | j d ƒ |  j  | j d ƒ |  j  | j d ƒ |  j  | j i  ƒ d  S(   NR#  R*   i   i    t   divR×   R,   (   R5   R&   R*   R,   RK   RG   RÞ   R;   (   R   R„   t   childrenRØ  (    (    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.pyt   _check_sample1_elementa  s    
c         C   sR   d d d „  ƒ  Y} t  j d | ƒ  ƒ } | j |  j ƒ |  j | j ƒ  d ƒ d  S(   Nt   DummyBuilderc           B   s"   e  Z d  „  Z Z Z d „  Z RS(   c          W   s   d  S(   N(   RK   (   Ru   (    (    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.pyt   <lambda>p  R9   c         S   s   d S(   Ni*   (    (   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.pyRµ   r  s    (   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.pyR#  o  s   R®   i*   (    (   R   Rk   R´   t   sample1R5   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.pyt   test_dummy_buildern  s    c         C   sK   t  j d t  j d d  ƒ ƒ } | j |  j ƒ | j ƒ  } |  j | ƒ d  S(   NR®   t   element_factory(   R   Rk   R¶   RK   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.pyt$   test_treebuilder_elementfactory_noney  s    c         C   sz   d t  j f d „  ƒ  Y} | ƒ  } |  j | j d ƒ d ƒ t  j d | ƒ } | j |  j ƒ | j ƒ  } |  j | ƒ d  S(   Nt   MyTreeBuilderc           B   s   e  Z d  „  Z RS(   c         S   s   | d S(   Ni   (    (   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.pyt   foobarƒ  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_xml_etree.pyR)  ‚  s   i
   i   R®   (	   R   R¶   R5   R*  Rk   R´   R%  Rµ   R"  (   R   R)  t   tbRº   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.pyt   test_subclass€  s    	c            sj   g  ‰  ‡  f d †  } t  j d | ƒ } t  j d | ƒ } | j |  j ƒ | j ƒ  |  j ˆ  d g ƒ d  S(   Nc            s   ˆ  j  |  ƒ t j |  | ƒ S(   N(   RY   R   RU   (   R&   RG   (   t   lst(    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.pyt	   myfactory’  s    R'  R®   t   toplevel(   R   R¶   Rk   R´   t   sample2Rµ   R5   (   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.pyt   test_element_factory�  s    
c         C   sz   d t  j f d „  ƒ  Y} t  j d | ƒ } t  j d | ƒ } | j |  j ƒ | j ƒ  } |  j | | ƒ |  j | ƒ d  S(   NRï  c           B   s   e  Z RS(    (   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.pyRï  Ÿ  s   R'  R®   (	   R   RU   R¶   Rk   R´   R%  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.pyt   test_element_factory_subclass�  s    c         C   sR   d d d „  ƒ  Y} t  j d | ƒ  ƒ } | j |  j ƒ |  j | j ƒ  d ƒ d  S(	   Nt   DoctypeParserc           B   s1   e  Z d Z d  „  Z d „  Z Z Z d „  Z RS(   c         S   s   | | | f |  _  d  S(   N(   t   _doctype(   R   R7  t   pubidt   system(    (    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.pyt   doctype°  s    c          W   s   d  S(   N(   RK   (   Ru   (    (    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.pyR$  ³  R9   c         S   s   |  j  S(   N(   R4  (   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.pyRµ   µ  s    N(	   R   R   RK   R4  R7  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.pyR3  ­  s   	R®   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(    (   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(   R   Rk   R´   R%  R5   Rµ   (   R   R3  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.pyt   test_doctype«  s     c      	   C   sÕ   d t  f d „  ƒ  Y} t j d | ƒ  ƒ x: d
 D]2 } |  j t ƒ � t j d | | ƒ ƒ Wd  QXq0 Wt j d | d	 t ƒ ƒ xO d D]G } t j d | | d	 t ƒƒ } | j |  j ƒ |  j | j	 ƒ  ƒ q† Wd  S(   Nt   RaisingBuilderc           B   s    e  Z d e d  „ Z d „  Z RS(   c         S   s   | |  _  | |  _ d  S(   N(   t   raise_int   what(   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.pyRó  Â  s    	c         S   s1   | |  j  k r$ |  j |  j  ƒ ‚ n  d „  } | S(   Nc          W   s   d  S(   N(    (   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.pyt   handleÉ  s    (   R:  R;  (   R   R7  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.pyt   __getattr__Æ  s    	N(   R   R   RK   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.pyR9  Á  s   R®   RÉ   R¹   RÆ   RØ   RÝ   R;  (   RÉ   R¹   RÆ   RØ   RÝ   (   RÉ   R¹   RÆ   RØ   RÝ   (
   RÂ  R   Rk   R€   R�   RÕ  R´   R%  R|   Rµ   (   R   R9  t   eventRº   (    (    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.pyt   test_builder_lookup_errors¿  s     (   R   R   R%  R0  R"  R&  R2   R(  R,  R1  R2  R8  R3   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.pyR  Y  s   		t   XMLParserTestc           B   sY   e  Z d  Z d Z d „  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z	 RS(   s   <file><line>22</line></file>sŠ   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>text</html>c         C   sE   |  j  | j d ƒ |  j  | d j d ƒ |  j  | d j d ƒ d  S(   NR#   i    t   linet   22(   R5   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.pyt   _check_sample_elementá  s    c         C   sŸ   t  j d t f ƒ �  t j d  t j ƒ  d ƒ } Wd  QX| j |  j ƒ |  j	 | j
 ƒ  ƒ t j d d d t j ƒ  ƒ } | j |  j ƒ |  j	 | j
 ƒ  ƒ d  S(   Ns
   .*\bhtml\bs   utf-8Rç   R®   (   R   t   check_py3k_warningsR_  R   Rk   RK   R¶   R´   R%  RC  Rµ   (   R   Rº   t   parser2(    (    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.pyt   test_constructor_argsæ  s    !c         C   sI   d t  j f d „  ƒ  Y} | ƒ  } | j |  j ƒ |  j | j ƒ  ƒ d  S(   Nt   MyParserc           B   s   e  Z RS(    (   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.pyRG  ÷  s   (   R   Rk   R´   R%  RC  Rµ   (   R   RG  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.pyR,  õ  s    	c         C   sV   t  j ƒ  } t j d t f ƒ � | j d d d ƒ Wd  QX| j d ƒ | j ƒ  d  S(   NR9   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtds   <html/>(   R   Rk   R   R	   R_  R7  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.pyt   test_doctype_warningý  s    c      
      s  g  ‰  d t  j f ‡  f d †  ƒ  Y} | ƒ  } t j d t f ƒ � | j |  j ƒ Wd  QX| j ƒ  |  j ˆ  d g ƒ g  ‰  g  ‰ t	 j
 ƒ  �} t	 j d t ƒ d d ‡ f d	 †  ƒ  Y} | d
 | ƒ  ƒ } | j |  j ƒ | j ƒ  |  j ˆ  g  ƒ |  j ˆ d g ƒ Wd  QXd  S(   Nt   MyParserWithDoctypec              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  j  | | | f ƒ d  S(   N(   RY   (   R   R7  R5  R6  (   R4  (    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.pyR7  
	  s    (   R   R   R7  (    (   R4  (    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.pyRI  		  s   R9   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdt   errorR3  c              s,   e  Z d  „  Z Z Z Z ‡  f d †  Z RS(   c          W   s   d  S(   N(   RK   (   Ru   (    (    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.pyR$  	  R9   c            s   ˆ  j  | | | f ƒ d  S(   N(   RY   (   R   R7  R5  R6  (   t	   _doctype2(    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.pyR7  	  s    (   R   R   R¹   RÉ   RÆ   Rµ   R7  (    (   RK  (    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.pyR3  	  s   R®   (   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(    (   R#  s&   -//W3C//DTD XHTML 1.0 Transitional//ENs7   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd(   R   Rk   R   R	   R_  R´   R0  Rµ   R5   t   warningst   catch_warningst   simplefilter(   R   RI  Rº   R3  (    (   R4  RK  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.pyt   test_subclass_doctype	  s*    	
	 

	 (
   R   R   R%  R0  RC  R2   RF  R,  RH  RO  (    (    (    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.pyR@  Ú  s   		t   NamespaceParseTestc           B   s   e  Z d  „  Z RS(   c         C   s�   i d d 6d d 6} t  j t ƒ } |  j t | j d | ƒ ƒ d ƒ |  j t | j d | ƒ ƒ d ƒ |  j t | j d	 | ƒ ƒ d ƒ d  S(
   Nt   hellot   hR–   R¸   s   {hello}tablei   s   .//{hello}tdi   s   .//{foo}name(   R   Rh   t   SAMPLE_XML_NS_ELEMSR5   R;   R`   (   R   t   nsmapR>  (    (    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.pyt   test_find_with_namespace)	  s
    ""(   R   R   RU  (    (    (    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.pyRP  (	  s   t   ElementSlicingTestc           B   st   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z RS(   c         C   s   g  | D] } | j  ^ q S(   N(   R&   (   R   t   elemlistR„   (    (    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.pyt
   _elem_tags3	  s    c         C   s   |  j  t | ƒ ƒ S(   N(   RX  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.pyt   _subelem_tags6	  s    c         C   s>   t  j d ƒ } x( t | ƒ D] } t  j | d | ƒ q W| S(   sx   Create an Element with a tag 'a', with the given amount of children
           named 'a0', 'a1' ... and so on.

        Ru   s   a%s(   R   RU   RŽ   RÙ   (   R   t   numchildrenR„   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.pyt   _make_elem_with_children9	  s    c            ss   |  j  d ƒ ‰  |  j ˆ  d j d ƒ |  j ˆ  d j d ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ d  S(   Ni
   i   t   a1iþÿÿÿt   a8c              s   ˆ  d S(   Ni   (    (    (   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.pyR$  I	  R9   c              s   ˆ  d S(   Niôÿÿÿ(    (    (   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.pyR$  J	  R9   (   R[  R5   R&   R€   t
   IndexError(   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.pyt   test_getslice_single_indexC	  s
    c         C   sú   |  j  d ƒ } |  j |  j | d ƒ d d d g ƒ |  j |  j | d d !ƒ d d d g ƒ |  j |  j | d d !ƒ d d d g ƒ |  j |  j | d d !ƒ d d g ƒ |  j |  j | d d !ƒ d d g ƒ |  j |  j | d	  ƒ d
 d g ƒ d  S(   Ni   i   t   a3t   a4t   a5i   i   iÿÿÿÿi   t   a0R\  (   R[  R5   RX  (   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.pyt   test_getslice_rangeL	  s    &))&&c         C   s%  |  j  d ƒ } |  j |  j | d d d … ƒ d d g ƒ |  j |  j | d  d  d … ƒ d d d	 d g ƒ |  j |  j | d  d  d … ƒ d d g ƒ |  j |  j | d d  d … ƒ d
 d g ƒ |  j |  j | d d  t j … ƒ d g ƒ |  j |  j | d d  t j d >… ƒ d g ƒ d  S(   Ni
   i   i   R]  t   a9i   Rc  R`  t   a6R\  i@   (   R[  R5   RX  R†  t   maxsize(   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.pyt   test_getslice_stepsV	  s    ,2,,,c         C   s   |  j  d ƒ } |  j |  j | d  d  d … ƒ d d d d g ƒ |  j |  j | d  d  d … ƒ d d g ƒ |  j |  j | d d  t j … ƒ d g ƒ |  j |  j | d d  t j d	 … ƒ d g ƒ |  j |  j | d d  t j d
 >… ƒ d g ƒ d  S(   Ni   iÿÿÿÿR`  t   a2R\  Rc  iþÿÿÿi   i   i@   (   R[  R5   RX  R†  Rg  (   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.pyt   test_getslice_negative_steps`	  s    2,-1c         C   si  |  j  d ƒ } | d d 5|  j |  j | ƒ d d g ƒ |  j  d ƒ } | d 3|  j |  j | ƒ g  ƒ t t k re|  j  d ƒ } | d  d  d … =|  j |  j | ƒ g  ƒ |  j  d ƒ } | d  d  d … =|  j |  j | ƒ d d g ƒ |  j  d ƒ } | d	 d  d … =|  j |  j | ƒ d d g ƒ |  j  d ƒ } | d  d  d … =|  j |  j | ƒ d
 g ƒ n  d  S(   Ni   i    i   Ri  R`  iÿÿÿÿiþÿÿÿRc  i   R\  (   R[  R5   RY  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.pyt   test_delslicei	  s&    
c         C   sú   |  j  d ƒ } t j d ƒ | d <|  j |  j | ƒ d d d d g ƒ t j d ƒ | d <|  j |  j | ƒ d d d d g ƒ |  j t ƒ � t j d	 ƒ | d
 <Wd  QX|  j t ƒ � t j d	 ƒ | d <Wd  QX|  j |  j | ƒ d d d d g ƒ d  S(   Ni   Rt   i   Rc  Ri  R`  Rw   iþÿÿÿRv   i   iûÿÿÿ(   R[  R   RU   R5   RY  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.pyt   test_setslice_single_indexƒ	  s    %%c         C   s  |  j  d ƒ } g  t d ƒ D] } t j d | ƒ ^ q | d d +|  j |  j | ƒ d d d d	 g ƒ |  j  d ƒ } t j d
 ƒ g | d d +|  j |  j | ƒ d d
 d	 g ƒ |  j  d ƒ } g  t d ƒ D] } t j d | ƒ ^ qÍ | d d +|  j |  j | ƒ d d d d d	 g ƒ d  S(   Ni   i   s   b%si   i   Rc  t   b0t   b1R`  Rt   t   b2(   R[  RŽ   R   RU   R5   RY  (   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.pyt   test_setslice_range‘	  s    3%"3c         C   sÿ  |  j  d ƒ } g  t d ƒ D] } t j d | ƒ ^ q | d d d … <|  j |  j | ƒ d d d d	 d
 d g ƒ |  j  d ƒ } |  j t ƒ �$ t j d ƒ g | d d d … <Wd  QX|  j t ƒ �> g  t d ƒ D] } t j d | ƒ ^ qÔ | d d d … <Wd  QX|  j t ƒ � g  | d d d … <Wd  QX|  j |  j | ƒ d d d d d
 d g ƒ |  j  d ƒ } t j d ƒ g | d d  t j	 … <|  j |  j | ƒ d d d d g ƒ t j d ƒ g | d d  t j	 d >… <|  j |  j | ƒ d d d d g ƒ d  S(   Ni   i   s   b%si   i   Rc  Rm  Ri  Rn  Ra  Rb  Rt   i   R\  R`  i   Rw   i@   (
   R[  RŽ   R   RU   R5   RY  R€   R�   R†  Rg  (   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.pyt   test_setslice_stepsž	  s     9+%?+"%&c         C   sA  |  j  d ƒ } g  t d ƒ D] } t j d | ƒ ^ q | d d d … <|  j |  j | ƒ d d d d	 g ƒ |  j  d ƒ } |  j t ƒ �$ t j d
 ƒ g | d d d … <Wd  QX|  j t ƒ �> g  t d ƒ D] } t j d | ƒ ^ qÎ | d d d … <Wd  QX|  j t ƒ � g  | d d d … <Wd  QX|  j |  j | ƒ d d d d	 g ƒ |  j  d ƒ } t j d
 ƒ g | d d  t j	 … <|  j |  j | ƒ d d
 d d	 g ƒ t j d ƒ g | d d  t j	 d … <|  j |  j | ƒ d d d d	 g ƒ t j d ƒ g | d d  t j	 d >… <|  j |  j | ƒ d d d d	 g ƒ d  S(   Ni   i   s   b%si    iÿÿÿÿRc  Rn  Rm  R`  Rt   i   R\  Ri  i   Rw   Rv   i@   (
   R[  RŽ   R   RU   R5   RY  R€   R�   R†  Rg  (   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.pyt   test_setslice_negative_steps²	  s$    9%%?%#%'%'(   R   R   RX  RY  R[  R_  Rd  Rh  Rj  Rk  Rl  Rp  Rq  Rr  (    (    (    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.pyRV  2	  s   			
			
	
						t   IOTestc           B   sl   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d d d „  ƒ  YZ d „  Z	 d	 „  Z
 d
 „  Z RS(   c         C   s   t  j t ƒ d  S(   N(   R   t   unlinkR   (   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.pyRã  Ê	  s    c         C   s–  t  j d ƒ } d | _ |  j t | ƒ d ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ t  j d ƒ } d	 | _ |  j t | ƒ d
 ƒ |  j t | d d ƒd
 ƒ |  j t | d d ƒd
 ƒ |  j t | d d ƒd ƒ t  j d ƒ } d	 | j d <|  j t | ƒ d ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ t  j d ƒ } d | _ |  j t | ƒ d ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ t  j d ƒ } d | j d <|  j t | ƒ d ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ |  j t | d d ƒd ƒ d  S(   NR&   u   abcs   <tag>abc</tag>Rç   s   utf-8s   us-asciis
   iso-8859-1s:   <?xml version='1.0' encoding='iso-8859-1'?>
<tag>abc</tag>s   <&"'>s   <tag>&lt;&amp;"'&gt;</tag>sF   <?xml version='1.0' encoding='iso-8859-1'?>
<tag>&lt;&amp;"'&gt;</tag>RA   s"   <tag key="&lt;&amp;&quot;'&gt;" />sN   <?xml version='1.0' encoding='iso-8859-1'?>
<tag key="&lt;&amp;&quot;'&gt;" />u   Ã¥Ã¶Ã¶<>s%   <tag>&#229;&#246;&#246;&lt;&gt;</tag>s   <tag>Ã¥Ã¶Ã¶&lt;&gt;</tag>sB   <?xml version='1.0' encoding='iso-8859-1'?>
<tag>åöö&lt;&gt;</tag>s(   <tag key="&#229;&#246;&#246;&lt;&gt;" />s   <tag key="Ã¥Ã¶Ã¶&lt;&gt;" />sE   <?xml version='1.0' encoding='iso-8859-1'?>
<tag key="åöö&lt;&gt;" />(   R   RU   R*   R5   R%   RG   (   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.pyR"  Í	  s^    			c         C   sW   t  j t  j d ƒ ƒ } | j t ƒ t t d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   Ns   <site />RÌ   (   R   R   Rg   R   R   R±   R5   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.pyt   test_write_to_filename
  s    c         C   s   t  j t  j d ƒ ƒ } t t d ƒ �$ } | j | ƒ |  j | j ƒ Wd  QXt t d ƒ � } |  j | j	 ƒ  d ƒ Wd  QXd  S(   Ns   <site />t   wbRÌ   (
   R   R   Rg   R±   R   R   RÏ   RÐ   R5   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.pyt   test_write_to_file
  s    c         C   sE   t  j ƒ  } t j d ƒ } | j | ƒ |  j | j ƒ  j d ƒ d  S(   Ns"   <?xml version="1.0"?><site></site>t   site(   R   R   R   R¯   R5   RV   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.pyt   test_read_from_stringio
  s    c         C   sK   t  j t  j d ƒ ƒ } t j ƒ  } | j | ƒ |  j | j ƒ  d ƒ d  S(   Ns   <site />(   R   R   Rg   R   R   R5   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.pyt   test_write_to_stringio
  s    t   dummyc           B   s   e  Z RS(    (   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.pyR{  "
  s   c         C   s]   t  j  d ƒ } |  j ƒ  } | j | _ t j ƒ  } | j | ƒ |  j | j ƒ  j d ƒ d  S(   Ns"   <?xml version="1.0"?><site></site>Rx  (	   R   R{  R²   R   R   R¯   R5   RV   R&   (   R   R·   t   readerR$   (    (    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.pyt   test_read_from_user_reader%
  s    c         C   sc   t  j t  j d ƒ ƒ } t j ƒ  } |  j ƒ  } | j | _ | j | ƒ |  j | j ƒ  d ƒ d  S(   Ns   <site />(   R   R   Rg   R   R{  R   R5   R   (   R   R$   R·   t   writer(    (    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.pyt   test_write_to_user_writer-
  s    c         C   so   t  j d ƒ } |  j t  j | ƒ d j t  j | ƒ ƒ ƒ |  j t  j | d ƒ d j t  j | d ƒ ƒ ƒ d  S(   Ns   <tag>foo</tag>R9   s   utf-16(   R   Rh   R5   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.pyt   test_tostringlist_invariant5
  s    (    (   R   R   Rã  R"  Ru  Rw  Ry  Rz  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.pyRs  É	  s   		;						t   ParseErrorTestc           B   s2   e  Z d  „  Z d „  Z d „  Z e d „  ƒ Z RS(   c         C   s   |  j  t j ƒ  t ƒ d  S(   N(   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.pyR,  @
  s    c         C   s/   y t  j | ƒ Wn t  j k
 r* } | SXd  S(   N(   R   Rh   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.pyt
   _get_errorC
  s    c         C   sX   |  j  |  j d ƒ j d ƒ |  j  |  j d ƒ j d	 ƒ |  j  |  j d ƒ j d
 ƒ d  S(   NR–   i   i    s   <tag>&foo;</tag>i   s   foobar<i   (   i   i    (   i   i   (   i   i   (   R5   R‚  t   position(   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.pyt   test_error_positionI
  s    c         C   s?   d d l  m } |  j | j |  j d ƒ j ƒ | j j ƒ d  S(   Niÿÿÿÿ(   t   expatR–   (   t   xml.parsersR…  R5   t   ErrorStringR‚  t   codet   errorst   XML_ERROR_SYNTAX(   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.pyt   test_error_codeN
  s    (   R   R   R,  R‚  R„  R2   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.pyR�  ?
  s   			t   KeywordArgsTestc           B   s   e  Z d  „  Z RS(   c         C   sv  t  j d ƒ } |  j | j d d  ƒ | j d d d d  ƒ ƒ |  j | j d d  d  ƒ | j d d d d  d d  ƒ ƒ |  j | j d d  ƒ | j d d d d  ƒ ƒ |  j t | j d d  ƒ ƒ t | j d d d d  ƒ ƒ ƒ |  j t  j	 d ƒ j
 i  ƒ t  j	 d t d d d d	 ƒ ƒ t  j	 d d
 t d d d d	 ƒ ƒt  j	 d t d d ƒ d d	 ƒt  j	 d d d d d	 ƒt  j	 d t d d d d	 ƒ d d d d	 ƒg } xC | D]; } |  j | j d ƒ |  j | j
 t d d d d	 ƒ ƒ q¤Wt  j | d d d
 i d d 6ƒ} |  j | j
 d d ƒ |  j t d ƒ � t  j	 d d ƒ Wd  QX|  j t d ƒ � t  j	 d d
 d ƒWd  QXd  S(   Ns
   <a>foo</a>Ru   t   patht
   namespacesR�   Rf  t   #t   idR–   RG   i    R*  t   value1t   key1s   must be dict, not strs   I'm not a dict(   R   Rg   R5   R^   RK   Ra   R`   RÞ   R_   RU   RG   t   dictR&   RÙ   R  Rq  (   R   R  t   elementsR„   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.pyt   test_issue14818X
  s0    !0&#(   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.pyRŒ  U
  s   t   NoAcceleratorTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s"   t  t k	 r t j d ƒ ‚ n  d  S(   Ns   only for the Python version(   R   R.   R/   R0   (   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.pyRá  z
  s    c         C   s6   |  j  t j j t j ƒ |  j  t j j t j ƒ d  S(   N(   Rì  R.   RU   Ró  t   typest   FunctionTypeRk   (   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.pyt   test_correct_import_pyET
  s    (   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.pyR–  y
  s   	c         C   sù   |  d  k r t }  n  |  a t t t t t t t	 t
 t t t t t t t g } t t k	 rm | j t g ƒ n  d d l m } t j } | j ƒ  } | j } | j ƒ  | _ z t j | Œ  Wd  d d l m } | j ƒ  | j | ƒ | | _ d  a Xd  S(   Niÿÿÿÿ(   R   (   RK   R.   R   R   RV  Rª  R»  Rß  R4   Rs  R�  Rb  Rë  Rù  R  R  R@  Rp  RZ   R–  R   R   t   _namespace_mapR—   R�   R   t   run_unittestRb   R�  (   t   modulet   test_classesR   RT  t
   nsmap_copyRâ  (    (    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.pyt	   test_main‰
  sB    				
	t   __main__(C   t   cgiR—   R   t   ioR  R   R†  R—  R/   RL  R¯  R   R    R   t   test.test_supportR   R   R   R   R   R   R.   RK   R   R‹   R°   R¢  R‰   Rÿ  R)  RS  R'  R   t   TestCaseR   R³  R%   R(   R-   R2   R3   R4   Rc  t   formatt   escapeRn  Rb  Rp  Rª  R»  R‚   RÛ  RÞ  Rß  Rë  Rù  R  R  R@  RP  RV  Rs  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.pyt   <module>	   sˆ   "


	

				
ÿ ÿ ÿ _
	








ÿ 78Œ
4-—‹�N
—v$7