ó
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 m Z m	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l m Z d  d l Z d  d l  m Z m Z m Z d  d l  m Z m Z m Z d  d l  m Z m Z m Z d  d l  m Z m Z d  d l  m Z m Z d  d	 l  m Z m Z e j d
 d e  Z! e d d  Z" d Z# d e j$ f d     YZ% d e j$ f d     YZ& d e& f d     YZ' d e f d     YZ( d e& f d     YZ) d e j$ f d     YZ* e+ d  Z, e- d k re, d e   n  d S(   i’’’’N(   t   choicet	   randrange(   t   test_support(   t
   namedtuplet   Countert   OrderedDict(   t   Hashablet   Iterablet   Iterator(   t   Sizedt	   Containert   Callable(   t   Sett
   MutableSet(   t   Mappingt   MutableMapping(   t   Sequencet   MutableSequencet   setst
   deprecatedt   TestNTs   x y zsÜ   ccopy_reg
_reconstructor
p0
(ctest.test_collections
TestNT
p1
c__builtin__
tuple
p2
(I10
I20
I30
tp3
tp4
Rp5
ccollections
OrderedDict
p6
((lp7
(lp8
S'x'
p9
aI10
aa(lp10
S'y'
p11
aI20
aa(lp12
S'z'
p13
aI30
aatp14
Rp15
b.
t   TestNamedTuplec           B   s   e  Z d    Z e j e j j d k d  d    Z d   Z	 d   Z
 d   Z d   Z d   Z d	   Z d
   Z d   Z RS(   c         C   sĒ  t  d d  } |  j | j d  |  j | j d  |  j | j t  |  j | j t j  |  j | j d  |  j t	 t  d d  |  j t	 t  d d  |  j t	 t  d d  |  j t	 t  d	 d
  |  j t	 t  d	 d  |  j t	 t  d	 d  |  j t	 t  d	 d  |  j t	 t  d	 d  t  d d  t  d d  t  d d  } |  j
 d t | j   t  d d  } |  j
 d t | j   |  j t | j d g  |  j t | j d d d g  d  S(   Nt   Points   x yt   xt   ys   abc%s   efg ghit   classt   9abct   abcs   efg g%his	   abc classs	   8efg 9ghis   _efg ghis   efg efg ghit   Point0s   x1 y2t   _s   a b ct   ntu   the quick brown foxs   u'u   theu   quicki   i   i!   (    (   R   R   (   u   theu   quick(   R   t   assertEqualt   __name__t	   __slots__t
   __module__t   __getitem__t   tuplet   _fieldst   assertRaisest
   ValueErrort   assertNotInt   reprt	   TypeErrort   _make(   t   selfR   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_collections.pyt   test_factoryB   s,    i   s)   Docstrings are omitted with -O2 and abovec         C   s&   t  d d  } |  j | j d  d  S(   NR   s   x ys   Point(x, y)(   R   R   t   __doc__(   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_collections.pyt   test_factory_doc_attr_   s    c      	   C   ss   xl d d g d d g d d g d d g d d g d d g g D]. \ } } |  j  t d | d t j |  q= Wd  S(   Nt   efgs   g%hit   _1R   R   t   8efgt   9ghit   _0t   _efgt   ghit   _2t    R   t   NTt   rename(   R0   s   g%hi(   R0   R1   (   R   R   (   R   R1   (   R2   R3   (   R4   R1   (   R   R5   (   R   R1   (   R   R0   R0   R6   (   R   R0   R7   R6   (   R   R8   R   (   R   R1   R   (   R   R   t   TrueR%   (   R,   t   spect   renamed(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_name_fixere   s    					c         C   s  t  d d  } | d d  } |  j | | d d d d   |  j | | d d d  |  j | | d d d d   |  j | | d    |  j | | t d d d d     |  j t | d  |  j t | d d d	  |  j t t d
 t    |  j t t d t    |  j t |  d  |  j d t	 |   |  j | | j
 d d g   |  j | j d  |  j | j d d  d  |  j | j   t d d d d   |  j t |  | j    y | j d d d d  Wn t k
 rłn X|  j d  t  d d  } | d d d d  } |  j t |  d  t  d d  } | d d d d  } |  j t |  d  d  S(   NR   s   x yi   i   R   R   i   i   i   s   Point(XXX=1, y=2)s
   Point(x=1)s   Point(x=11, y=22)t   __weakref__t   errors%   Did not detect an incorrect fieldnames   x, y(   i   i   (   R   R   (   i   i   (   R   R   (   R   R   t   dictR&   R*   t   evalt   localsR)   R(   t   dirR+   R%   t   _replacet   _asdictt   varsR'   t   _fail(   R,   R   t   p(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_instancep   s:    %%c         C   s5  t  d d  } | d d  } |  j | t  |  j | d	  |  j t |  d
  |  j t |  d d g  |  j t |  d  |  j t |   d  | \ } } |  j | | | f  |  j | d | d f d  |  j t | j d  |  j | j	 |  |  j | j
 |  |  j t t d t    d  S(   NR   s   x yi   i   i    i   i   s   p.z(   i   i   (   i   i   (   i   i   (   R   t   assertIsInstanceR$   R   t   listt   maxR&   t
   IndexErrorR#   R   R   t   AttributeErrorRB   RC   (   R,   R   RI   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_collections.pyt   test_tupleness   s    c         C   sģ  t  d d  } |  j |   d  |  j | j g   d  |  j t |    d  |  j |   j   i   |  j |   j d  t  d d  } |  j | d  d  |  j | j d g  d  |  j | d  j d  |  j t | d   d  |  j | d  j   i d d 6 |  j | d  j d d  d  |  j | d  j d  d	 } t t	 d
   t
 |  D   } t |  } t  d |  } | t
 |    } |  j | t t
 |    |  j | j t
 |   t t
 |    x3 t |  D]% \ } } |  j t | |  |  q Wt |  | j   }	 t t | t
 |    }
 |  j |	 |
  | j t | d d f | d d f g    } t
 |  } d | d <d | d <|  j | t |   |  j | j t |   d  S(   Nt   ZeroR8   s   Zero()t   Dott   di   s   Dot(d=1)iē  i  c         s   s@   |  ]6 } d  j  g  t d  D] } t t j  ^ q  Vq d S(   R8   i
   N(   t   joint   rangeR    t   stringt   ascii_letters(   t   .0t   it   j(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pys	   <genexpr>ŗ   s   t   Bigiū’’’i*   (    (    (    (   i   (   i   (   iē  (   RS   (   R   R   R+   R)   RF   R%   RS   RE   RL   t   setRU   t   lenR$   t	   enumeratet   getattrRA   t   zip(   R,   RQ   RR   t   nt   namesR[   t   bt   post   nameRS   t
   d_expectedt   b2t   b2_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_collections.pyt   test_odd_sizesØ   sD    #"+
/

c         C   s    t  d d d d d d  } x~ t t f D]p } t | d  } t | d  } xI d D]A } | | | |   } |  j | |  |  j | j | j  qS Wq( Wd  S(   NR   i
   R   i   t   zi   t   loadst   dumpsi’’’’i    i   i   (   i’’’’i    i   i   (   R   t   picklet   cPickleR_   R   R%   (   R,   RI   t   moduleRk   Rl   t   protocolt   q(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_pickleĪ   s    c         C   sn   t  d d d d d d  } xL t j t j f D]8 } | |  } |  j | |  |  j | j | j  q. Wd  S(   NR   i
   R   i   Rj   i   (   R   t   copyt   deepcopyR   R%   (   R,   RI   t   copierRq   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt	   test_copyŲ   s
    c         C   s  t  d d  } | d d d d d  } |  j | d  | j d d	 d
 d d d d d d d  } |  j | d  t j    } t  d d d t } Wd  QXt t j d | j	     } | t t
 j  8} t  d |  } t t t |    } | |   } |  j | |  | t t | j |     } |  j | |  | j |  } |  j | |  t |  |  j | j   t t | j |    | j |  } t d   | D  } | j t t | j |     } |  j | |  |  j | j t |   |  j | j   |  d  S(   Nt   Ts"   itemgetter property self cls tuplei   i   i   i   i   t
   itemgetteri
   t   propertyi   R,   i   t   clsi(   R$   i2   R   t   verboses	   [A-Za-z]+c         s   s   |  ] } | d  Vq d S(   i
   N(    (   RX   t   v(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pys	   <genexpr>ż   s    (   i   i   i   i   i   (   i
   i   i   i(   i2   (   R   R   RE   R   t   captured_stdoutR;   R\   t   ret   findallt   getvaluet   keywordt   kwlistR$   RU   R]   RA   R`   R%   R+   R)   RF   t   __getnewargs__(   R,   Rw   t   tt   newtt   templatet   wordst   valuest	   newvalues(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_name_conflictsß   s2    *
(!c         C   s&   t  j t  } |  j | j d  d  S(   Ni
   (   Rm   Rk   t   py273_named_tuple_pickleR   R   (   R,   t   pt(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_pickling_bug_18015  s    (   R    R"   R-   t   unittestt   skipIft   syst   flagst   optimizeR/   R>   RJ   RP   Ri   Rr   Rv   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_collections.pyR   @   s   			%		&	
		&t   ABCTestCasec           B   s#   e  Z d    Z d   Z d   Z RS(   c         G   s   t  j | d    } t d | f |  } |   xI | D]A } | j   } | | =t d | f |  } |  j t | |  q8 Wd  S(   Nc         W   s   d S(   Ni    (    (   t   st   args(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   <lambda>  R8   t   C(   RA   t   fromkeyst   typeRs   R&   R*   (   R,   R   Rb   t   methodstubsR   Re   t   stubs(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   validate_abstract_methods  s    c         C   s  d   } t  d t f i | | 6 } |  j |   |  |  j t | |   d d d     Y} t | | |  |  j |   |  |  j t | |   t  d t f i d  d 6 } |  j |   |  |  j t | |   d d d     Y} |  j |   |  |  j t | |   d  S(   Nc         W   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_collections.pyR     R8   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_collections.pyR   "  s    t   __hash__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_collections.pyR   ,  s    (    (    (	   R   t   objectRK   t
   assertTruet
   issubclasst   setattrt   Nonet   assertNotIsInstancet   assertFalse(   R,   R   Re   t   stubR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   validate_isinstance  s    	c      	   C   sŪ   d d d d d d d d d	 g	 } i  } x/ | D]' } d
 | d
 } t  t |  | | <q. Wd d d     Y} xh | j   D]Z \ } } t | |  s qy n  |   } | | |  |  j | j d t |  | f  qy Wd  S(   Nt   ltt   gtt   let   get   net   ort   andt   xort   subt   __t   Otherc           B   sP   e  Z d    Z d   Z e Z e Z e Z e Z e Z e Z	 e Z
 e Z e Z RS(   c         S   s   t  |  _ d  S(   N(   t   Falset
   right_side(   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_collections.pyt   __init__8  s    c         S   s   t  |  _ t  S(   N(   R;   R³   (   R,   t   other(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   __eq__:  s    	(   R    R"   R“   R¶   t   __lt__t   __gt__t   __le__t   __ge__t   __ne__t   __ror__t   __rand__t   __rxor__t   __rsub__(    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR±   7  s   		s   Right side not called for %s.%s(    (   R_   t   operatort   itemst   hasattrR   R³   R   (   R,   t   instancet   opst	   operatorst   opRe   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_collections.pyt   validate_comparison0  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_collections.pyR   
  s   		t   TestOneTrickPonyABCsc           B   sP   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 RS(   c            sh  t    t   t   g } xI | D]A } |  j | t  |  j t t |  t  t t |    q Wd  t
   t   t   t   t   t   t
 t  t t g } xI | D]A } |  j | t  |  j t t |  t  t t |    q¤ W|  j t t  d t f   f d     Y  |  j t      d  |  j t t
     |  j t d  |  j t d  d  S(   Nt   Hc              s    e  Z   f d    Z e j Z RS(   c            s   t    |   j   S(   N(   t   superR   (   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_collections.pyR   d  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_collections.pyRÉ   c  s   i    R   (   RL   R\   RA   R£   R   R¤   R    R   R)   R¢   t   intt   floatt   complext   strR$   t	   frozensetR   RK   R   R&   R*   R   t   hashR   R¦   (   R,   t   non_samplesR   t   samples(    (   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_collections.pyt   test_HashableQ  s$    //c            s}  d  d d d g } xI | D]A } |  j | t  |  j t t |  t  t t |    q Wt   t   t	   t
   t   t   t   j   t   j   t   j   d     d   g  D g } xI | D]A } |  j | t  |  j t t |  t  t t |    qÉ Wd t f   f d     Y  |  j t	      g   |  j t t     |  j t d  |  j t d  d  S(	   Ni*   gėQø	@y              š?c           s   s	   d  Vd  S(   N(    (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR   v  R8   c         s   s   |  ] } | Vq d  S(   N(    (   RX   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_collections.pys	   <genexpr>w  s    t   Ic              s   e  Z   f d    Z RS(   c            s   t    |   j   S(   N(   RŹ   t   __iter__(   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_collections.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_collections.pyRŌ   }  s   RÕ   (   R¢   R£   R   R¤   R    R   R)   RĪ   R$   RL   R\   RĻ   RA   t   keysRĮ   R   RK   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_collections.pyt   test_Iterablel  s"    /$	/c         C   sČ  d  d d d d j d  d d g  i  t   g
 } xI | D]A } |  j | t  |  j t t |  t  t t |    q7 Wt	 t
    t	 t    t	 t    t	 t    t	 t    t	 t    t	 t   j    t	 t   j    t	 t   j    d     d   g  D g } xI | D]A } |  j | t  |  j t t |  t  t t |    qW|  j t d d	  d
 d d     Y} |  j |   t  d t f d     Y} |  j |   t  d  S(   Ni*   gėQø	@y              š?R8   t   asciic           s   s	   d  Vd  S(   N(    (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR     R8   c         s   s   |  ] } | Vq d  S(   N(    (   RX   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_collections.pys	   <genexpr>  s    t   nextRÕ   t   NextOnlyc           B   s   e  Z d    Z RS(   c         s   s   d Vt   d  S(   Ni   (   t   StopIteration(   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_collections.pyt   __next__  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_collections.pyRŚ     s   t   NextOnlyNewc           B   s   e  Z d    Z RS(   c         s   s   d Vt   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_collections.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_collections.pyRŻ     s   (    (    (   R¢   t   encodeR\   R£   R   R¤   R    R   R)   t   iterRĪ   R$   RL   RA   RĻ   RÖ   RĮ   R   RK   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_collections.pyt   test_Iterator  s(    !/$$	/c      	   C   s2  d  d d d d     d   g  D g } xI | D]A } |  j | t  |  j t t |  t  t t |    q/ Wt   t   t	   t
   t   t   t   j   t   j   t   j   g	 } xI | D]A } |  j | t  |  j t t |  t  t t |    qÉ W|  j t d  |  j t d  d  S(   Ni*   gėQø	@y              š?c           s   s	   d  Vd  S(   N(    (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR   ¦  R8   c         s   s   |  ] } | Vq d  S(   N(    (   RX   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_collections.pys	   <genexpr>§  s    t   __len__(   R¢   R£   R	   R¤   R    R   R)   RĪ   R$   RL   R\   RĻ   RA   RÖ   RĮ   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_collections.pyt
   test_Sized¤  s    	/*/c         C   s&  d  d d d d     d   g  D g } xI | D]A } |  j | t  |  j t t |  t  t t |    q/ Wt   t   t	   t
   t   t   t   j   t   j   g } xI | D]A } |  j | t  |  j t t |  t  t t |    q½ W|  j t d  |  j t d  d  S(   Ni*   gėQø	@y              š?c           s   s	   d  Vd  S(   N(    (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR   ø  R8   c         s   s   |  ] } | Vq d  S(   N(    (   RX   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_collections.pys	   <genexpr>¹  s    t   __contains__(   R¢   R£   R
   R¤   R    R   R)   RĪ   R$   RL   R\   RĻ   RA   RÖ   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_collections.pyt   test_Container¶  s    	//c         C   s&  d  d d d d d j d  d
 g  i  t   d     d   g  D g } xI | D]A } |  j | t  |  j t t |  t  t t |    qM Wd   t t	 t
 t t j g  j g } xI | D]A } |  j | t  |  j t t |  t  t t |    q½ W|  j t d	  |  j t d	  d  S(   Ni*   gėQø	@y              š?R8   RŲ   c           s   s	   d  Vd  S(   N(    (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR   Ė  R8   c         s   s   |  ] } | Vq d  S(   N(    (   RX   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_collections.pys	   <genexpr>Ģ  s    c           S   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_collections.pyR   Ń  R8   t   __call__(    (   R¢   RŽ   R\   R£   R   R¤   R    R   R)   RĖ   R   R]   RL   t   appendRK   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_collections.pyt   test_CallableČ  s     	/	/c         C   si   xb t  t t t t t f D]H } d | f d     Y} |  j t | |   |  j t t	 |   q Wd  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_collections.pyR   Ž  s   (
   R   R   R   R	   R
   R   R   R    R¤   RĖ   (   R,   t   BR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_direct_subclassingÜ  s    c         C   sy   xr t  t t t t t f D]X } d d d     Y} |  j t | |  | j  | j	 |  |  j
 t | |   q Wd  S(   NR   c           B   s   e  Z e Z d  Z RS(   N(   R    R"   R   t   __metaclass__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_collections.pyR   å  s   (    (   R   R   R   R	   R
   R   R¤   R    R    t   registerR   (   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_collections.pyt   test_registrationć  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_collections.pyRČ   O  s   							t   WithSetc           B   sA   e  Z d d   Z d   Z d   Z d   Z d   Z d   Z RS(   c         C   s   t  |  |  _ d  S(   N(   R\   t   data(   R,   t   it(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR“   ī  s    c         C   s   t  |  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_collections.pyRį   ń  s    c         C   s   t  |  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_collections.pyRÕ   ō  s    c         C   s   | |  j  k S(   N(   Rī   (   R,   t   item(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyRć   ÷  s    c         C   s   |  j  j |  d  S(   N(   Rī   t   add(   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_collections.pyRń   ś  s    c         C   s   |  j  j |  d  S(   N(   Rī   t   discard(   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_collections.pyRņ   ż  s    (    (   R    R"   R“   Rį   RÕ   Rć   Rń   Rņ   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyRķ   ģ  s   				t   TestCollectionABCsc           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 RS(   c         C   s   x= t  t g D]/ } |  j |   t  |  j t | t   q W|  j t d d d  d t f d     Y} |  j |    d  S(   NRć   RÕ   Rį   t   MySetc           B   s#   e  Z d    Z d   Z d   Z RS(   c         S   s   t  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_collections.pyRć     s    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_collections.pyRį     s    c         S   s
   t  g   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_collections.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_collections.pyRō     s   		(   R\   RĻ   RK   R   R   R    R   RĒ   (   R,   t   sampleRō   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_Set  s    c         C   sL   d t  f d     Y} |   |   } } |  j t |  t |  k  d  S(   Nt   OneTwoThreeSetc           B   s5   e  Z d    Z d   Z d   Z d   Z d   Z RS(   c         S   s   d d d g |  _  d  S(   Ni   i   i   (   t   contents(   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_collections.pyR“     s    c         S   s   | |  j  k 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_collections.pyRć     s    c         S   s   t  |  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_collections.pyRį     s    c         S   s   t  |  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_collections.pyRÕ     s    c         S   s
   |  j    S(   N(   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_collections.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_collections.pyR÷     s
   				(   R   R   RŠ   (   R,   R÷   t   aRc   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_hash_Set  s    c         C   sr   |  j  t   t  |  j t t t   |  j t   t  |  j t t t   |  j t d d d d d  d  S(   NRć   RÕ   Rį   Rń   Rņ   (	   RK   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_collections.pyt   test_MutableSet#  s    c         C   s<   t  d  } | t  d  M} |  j t |  t d   d  S(   Nt   abcdt   cdeft   cd(   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_collections.pyt   test_issue_5647+  s    c         C   sH   d t  f d     Y} | d d d d g  } |  j | j   d  d  S(   NRō   c           B   sS   e  Z d  g Z d d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(	   t   __sc         S   s(   | d  k r g  } n  t |  |  _ d  S(   N(   R¢   R\   t	   _MySet__s(   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_collections.pyR“   5  s    	c         S   s   | |  j  k 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_collections.pyRć   9  s    c         S   s   t  |  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_collections.pyRÕ   ;  s    c         S   s   t  |  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_collections.pyRį   =  s    c         S   s#   | |  j  k } |  j  j |  | S(   N(   R  Rń   (   R,   R|   t   result(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyRń   ?  s    c         S   s#   | |  j  k } |  j  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_collections.pyRņ   C  s    c         S   s   d t  t |    S(   Ns	   MySet(%s)(   R)   RL   (   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_collections.pyt   __repr__G  s    N(   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_collections.pyRō   3  s   						i   i+   i   i   (   R   R   t   pop(   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_collections.pyt   test_issue_49201  s    c         C   s«   t    } t  t d   } t  |  } | | 8} |  j | |  t  |  } | | N} |  j | |  t  |  } | | M} |  j | |  | | O} |  j | |  d  S(   Ni
   (   Rķ   RU   R   (   R,   t   emptyt   fullR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_issue8750L  s    	



c         C   s   d t  f d     Y} d t  f d     Y} |   } |   } | | k  | | k | | k | | k | | k  | | k | | k | | k d  S(   Nt   MyComparableSetc           B   s#   e  Z d    Z d   Z d   Z RS(   c         S   s   t  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_collections.pyRć   _  s    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_collections.pyRį   a  s    c         S   s
   t  g   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_collections.pyRÕ   c  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_collections.pyR
  ^  s   		t   MyNonComparableSetc           B   s5   e  Z d    Z d   Z d   Z d   Z d   Z RS(   c         S   s   t  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_collections.pyRć   f  s    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_collections.pyRį   h  s    c         S   s
   t  g   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_collections.pyRÕ   j  s    c         S   s   t  S(   N(   t   NotImplemented(   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_collections.pyR¹   l  s    c         S   s   t  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_collections.pyR·   n  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_collections.pyR  e  s
   				(   R   (   R,   R
  R  t   cst   ncs(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_issue16373[  s    		






c         C   s    |  j  t |  t |   d  S(   N(   R   R\   (   R,   t   s1t   s2(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   assertSameSet~  s    c      	   C   sĶ  d t  f d     Y} t d  } t d  } t d  } | d  } | d  } | d  } t d  } t d  }	 t d  }
 t j  d  } t j  d  } t j  d  } | | @} |  j | | @|  |  j | | @|  |  j | | @|  |  j | | @|  |  j | | @|  |  j | |	 @|  | | B} |  j | | B|  |  j | | B|  |  j | | B|  |  j | | B|  |  j | | B|  |  j | |	 B|  | | } | | } |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | | |  |  j | |	 |  |  j | | |  | | A} |  j | | A|  |  j | | A|  |  j | | A|  |  j | | A|  |  j | | A|  |  j | |	 A|  |  j | | k   |  j | | k   |  j | | k   |  j | | k   |  j | | k   |  j | | k   |  j | | k   |  j | | k   |  j | | k   t j   # | |
 k  | | k  | |	 k  Wd  QX|  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  t j   # | |
 k | | k | |	 k Wd  QX|  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  t j   # | |
 k | | k | |	 k Wd  QX|  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  t j   # | |
 k | | k | |	 k Wd  QX|  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  | |
 k | | k | |	 k |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  | |
 k | | k | |	 k d  S(	   Nt   ListSetc           B   s8   e  Z d d   Z d   Z d   Z d   Z d   Z RS(   c         S   s@   g  |  _  x0 | D]( } | |  j  k r |  j  j |  q q Wd  S(   N(   Rī   Rę   (   R,   t   elementst   elem(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR“     s    	c         S   s   | |  j  k 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_collections.pyRć     s    c         S   s   t  |  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_collections.pyRÕ     s    c         S   s   t  |  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_collections.pyRį     s    c         S   s   d j  |  j  S(   Ns	   Set({!r})(   t   formatRī   (   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_collections.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_collections.pyR    s
   			R   t   bcdt   abcdet   abccbat   bcddcbt
   abcdeedcba(	   R   R\   RL   R   R  R   R¤   R   t   check_py3k_warnings(   R,   R  t   r1t   r2t   r3t   f1t   f2t   f3t   l1t   l2t   l3t   p1t   p2t   p3t   targett
   fwd_targett
   rev_target(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt(   test_Set_interoperability_with_real_sets  sģ    

















c         C   s   x: t  g D]/ } |  j |   t  |  j t | t   q
 W|  j t d d d d  d t f d     Y} |  j |    d  S(   NRć   RÕ   Rį   R#   t	   MyMappingc           B   s#   e  Z d    Z d   Z d   Z RS(   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_collections.pyRį   *  s    c         S   s
   t   d  S(   N(   RN   (   R,   RY   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR#   ,  s    c         S   s
   t  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_collections.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_collections.pyR-  )  s   		(   RA   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_collections.pyt   test_Mapping#  s    c         C   s`   x: t  g D]/ } |  j |   t  |  j t | t   q
 W|  j t d d d d d d  d  S(   NRć   RÕ   Rį   R#   t   __setitem__t   __delitem__(   RA   RK   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_collections.pyt   test_MutableMapping2  s
    c         C   sø   x@ t  t t g D]/ } |  j |   t  |  j t | t   q W|  j t t t   |  j t d  t  |  j t t	 t   |  j t t t   |  j
 t d d d d  d  S(   Ni
   Rć   RÕ   Rį   R#   (   R$   RL   RĪ   RK   R   R   R    t
   basestringRU   t   xrangeR   (   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_collections.pyt   test_Sequence9  s    c      	   C   s¹   x= t  t g D]/ } |  j |   t  |  j t | t   q Wx: t g D]/ } |  j |   t  |  j t | t   qJ W|  j t t	 t   |  j
 t d d d d d d d  d  S(   NRć   RÕ   Rį   R#   R/  R0  t   insert(   R$   RĪ   R£   R   R¤   R    RL   RK   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_collections.pyt   test_MutableSequenceD  s    (   R    R"   Rö   Rū   Rü   R   R  R	  R  R  R,  R.  R1  R4  R6  (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyRó      s   							#		”			t   TestCounterc           B   sY   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(	   c         C   sx  t  d  } |  j | t  i d d 6d d 6d d 6  |  j | t  d d d d d d   |  j | t  |  j | t  |  j t t  t   |  j t t  t   |  j t |  d  |  j t | j	    d  |  j t
 | j	    d d d g  |  j t
 | j    d d d g  |  j t
 |  d d d g  |  j t
 | j    d  d! d" g  |  j | d d  |  j | d	 d
  t j   7 |  j | j d  t  |  j | j d	  t  Wd  QX|  j | j d  t  |  j | j d	  t  |  j | j d d  d  |  j | j d	 d  d  |  j | t d d d d d d   |  j t |  d  |  j | j   d# d$ d% g  x: t d  D], } |  j | j |  d& d' d( g |   q¦W|  j d j t
 | j     d  | d c d 7<| d c d 8<| d =| d =| d c d 8<d | d <| d c d 7<|  j | t d d d d
 d d d d d d   |  j d j t
 | j     d  |  j | j d  d  |  j d |  x6 t d  D]( } | j   \ } } |  j | |  qßW| j   |  j | i   |  j t |  d  |  j t t  j d  |  j t  t! |  | j" t d d d d   | j" d d  | j" t  d d d d   | j"   | j# d d d d  | j# d  | j#   |  j | t d d d d d d d d   |  j | j$ d d  d  |  j | d d  |  j | j$ d d  d  |  j | d d  d  S()   Nt   abcabai   Rś   i   Rc   i   t   ci   Rj   i    i
   s!   Counter({'a': 3, 'b': 2, 'c': 1})i   R8   t   aaabbcRS   iū’’’t   et   fi   iž’’’t   aaaaffffs	   Counter()R   i2   i   iō  i,  t   cdci+  iM  (   Rś   i   (   Rc   i   (   R9  i   (   Rś   i   (   Rc   i   (   R9  i   (   Rś   i   (   Rc   i   (   R9  i   (%   R   R   RK   RA   R   R   R    R]   t   sumR   t   sortedRÖ   RĮ   R   R  t   has_keyR;   R²   Rć   t   getR)   t   most_commonRU   RT   R  R  R(   t   popitemt   clearR&   t   NotImplementedErrorR   R*   RŠ   t   updateR“   t
   setdefault(   R,   R9  RY   R  t   cnt(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_basicsQ  sz    +%%%%%
1%


+c         C   sø   |  j  t t d d  j    d g  |  j  t t d d  j    d g  |  j  t t d d   j    d g  |  j t t d  |  j t t d d  |  j t t j  d  S(	   NR,   i*   t   iterable(   R,   i*   (   RK  i*   (   RK  N(    (    (   R   RL   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_collections.pyt	   test_init  s    (((c         C   sō   t    } | j d d  |  j t | j    d g  t    } | j d d  |  j t | j    d g  t    } | j d d   |  j t | j    d g  |  j t t    j d  |  j t t    j i  i   |  j t t  j  d  S(   NR,   i*   RK  (   R,   i*   (   RK  i*   (   RK  N(   R   RG  R   RL   RĮ   R¢   R&   R*   (   R,   R9  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_update  s    			c         C   sÆ  t  d j    } t    } | j |  xt | j   t j |  t j |  t j t j | d   t j t j | d   t j t j | d   t j t j | d   t	 j t	 j | d   t	 j t	 j | d   t	 j t	 j | d   t	 j t	 j | d   t
 t |   | t  |  g  D]v \ } } | | | f } |  j | | k	  |  j | |  |  j t |  t |   |  j t |  t |   q1Wd  S(   Ns)   which witch had which witches wrist watchi    i   i   i’’’’(   R   t   splitRG  R^   Rs   Rt   Rm   Rk   Rl   Rn   RB   R)   R   R   R]   R   (   R,   R   t   update_testRY   t   dupt   msg(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_copying¦  s.    		c         C   sz   d t  f d     Y} | d  } | j   } |  j | |  |  j t |  t |   |  j t |  t |   d  S(   Nt	   MyCounterc           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_collections.pyRS  Ć  s   t   slartibartfast(   R   Rs   R   R]   R   (   R,   RS  R9  RS   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_copy_subclassĀ  s    c         C   sŖ   d } |  j  t t |  j    t |   |  j  t t |   t t |    |  j  t t |   t t |  j     |  j  t t |   t |   d  S(   Ns%   she sells sea shells by the sea shore(   R   R@  R   R  R\   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_collections.pyt   test_conversionsĖ  s
    ((.c         C   sS   t  d d d d d d  } x1 | D]) } |  j | | k  |  j | |  q" Wd  S(   NRś   i
   Rc   iž’’’R9  i    (   R   R   t   assertIn(   R,   R9  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_collections.pyt"   test_invariant_for_the_in_operatorÓ  s    c      
   C   s  t  d d d d d d  t    } |  j t |  t d d   d } xHt d  D]:} t  t d	   | D   } | j d
 d d d d d  t  t d   | D   } | j d d d d d d  xĮ t  j d   f t  j d   f t  j d   f t  j d   f g D]} \ } } | | |  } xB | D]: }	 |  j | | |	 | |	  | |	 | |	 | | f  q/W|  j	 d   | j
   D  qWqT Wd } xā t d  D]Ō } t  t d   | D   } t  t d   | D   } x t  j t j f t  j t j f t  j t j f g D]^ \ } }
 | | |  } |
 t | j    t | j     } |  j | t j | d   qWq„Wd  S(   NRś   i
   Rc   iž’’’R9  i    Rż   ič  c         s   s$   |  ] } | t  d  d  f Vq d S(   iž’’’i   N(   R   (   RX   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_collections.pys	   <genexpr>į  s    R;  i   R<  i’’’’t   gc         s   s$   |  ] } | t  d  d  f Vq d S(   iž’’’i   N(   R   (   RX   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_collections.pys	   <genexpr>ć  s    t   hRY   RZ   c         S   s   t  d |  |  S(   Ni    (   RM   (   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_collections.pyR   ę  R8   c         S   s   t  d |  |  S(   Ni    (   RM   (   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_collections.pyR   ē  R8   c         S   s   t  d |  |  S(   Ni    (   RM   (   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_collections.pyR   č  R8   c         S   s   t  d t |  |   S(   Ni    (   RM   t   min(   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_collections.pyR   é  R8   c         s   s   |  ] } | d  k Vq d S(   i    N(    (   RX   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_collections.pys	   <genexpr>š  s    t   abcdefid   c         s   s$   |  ] } | t  d  d  f Vq d S(   i    i   N(   R   (   RX   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_collections.pys	   <genexpr>õ  s    c         s   s$   |  ] } | t  d  d  f Vq d S(   i    i   N(   R   (   RX   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_collections.pys	   <genexpr>ö  s    (   R   R   RA   RU   RG  t   __add__t   __sub__t   __or__t   __and__R   R   R\   R  R   (   R,   R9  R  RY   RI   Rq   t	   counteropt   numberopR  R   t   setopt   counter_resultt
   set_result(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_multiset_operationsŁ  s:    "!%'c         C   sT  t  d d d d d d d d d	 d
 d d  } | j d d d d d d d d d	 d d d d d  |  j | t  d d d d d d d d d	 d d d d d d d   t  d d d d d d d d d	 d
 d d  } | j t  d d d d d d d d d	 d d d d d   |  j | t  d d d d d d d d d	 d d d d d d d   t  d  } | j d  |  j | t  d d d d d d d d d	 d   t    } | j d d  |  j t | j    d! g  t    } | j d  d  |  j t | j    d" g  |  j t t    j d  |  j t t    j i  i   |  j t t  j  d  S(#   NRś   iū’’’Rc   i    R9  i   RS   i
   R;  i   RY  i(   i   i   iż’’’i   R<  i   RZ  iĪ’’’iś’’’iž’’’i   iā’’’i2   t   aaabbcdt	   aaaabbccei’’’’R,   i*   iÖ’’’RK  (   R,   iÖ’’’(   RK  iÖ’’’(   R   t   subtractR   RL   RĮ   R&   R*   (   R,   R9  (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt   test_subtract   s$    -4C-:C1		(   R    R"   RJ  RL  RM  RR  RU  RV  RX  Rf  Rj  (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyR7  O  s   	?								'c         C   sH   t  j d t  } t | t t t g } t j |   t j	 t |   d  S(   NRo   (
   t   doctestt   DocTestSuitet   collectionsR   RČ   Ró   R7  R   t   run_unittestt   run_doctest(   R{   t   NamedTupleDocst   test_classes(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_collections.pyt	   test_main  s
    	t   __main__R{   (.   Rm  Rs   Rk  R   RĄ   Rm   Rn   t   randomR    R   R~   RV   R   t   testR   R   R   R   R   R   R   R   R	   R
   R   R   R   R   R   R   R   t   import_moduleR;   R   R   R   t   TestCaseR   R   RČ   Rķ   Ró   R7  R¢   Rr  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_collections.pyt   <module>   s>   %ŹE’ PĒ