ó
ŠwÛjc           @   s$  d  Z  d d l Z d d l Z d d l m Z d „  Z d d d „  ƒ  YZ d d d „  ƒ  YZ d	 d d
 „  ƒ  YZ	 d d d „  ƒ  YZ
 d d d „  ƒ  YZ d d  d „  ƒ  YZ d d! d „  ƒ  YZ d d l m Z m Z d „  Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d S("   s3   
Tests common to tuple, list and UserList.UserList
iÿÿÿÿN(   t   test_supportc         c   s   x |  D] } | Vq Wd S(   s   Regular generatorN(    (   t   seqnt   i(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   iterfunc   s    t   Sequencec           B   s    e  Z d  Z d „  Z d „  Z RS(   s   Sequence using __getitem__c         C   s   | |  _  d  S(   N(   R   (   t   selfR   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   __init__   s    c         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/seq_tests.pyt   __getitem__   s    (   t   __name__t
   __module__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/seq_tests.pyR      s   	t   IterFuncc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s    Sequence using iterator protocolc         C   s   | |  _  d |  _ d  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/seq_tests.pyR      s    	c         C   s   |  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/seq_tests.pyt   __iter__   s    c         C   sD   |  j  t |  j ƒ k r! t ‚ n  |  j |  j  } |  j  d 7_  | S(   Ni   (   R   t   lenR   t   StopIteration(   R   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/seq_tests.pyt   next   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/seq_tests.pyR      s   		t   IterGenc           B   s    e  Z d  Z d „  Z d „  Z RS(   s9   Sequence using iterator protocol defined with a generatorc         C   s   | |  _  d |  _ d  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/seq_tests.pyR   &   s    	c         c   s   x |  j  D] } | Vq
 Wd  S(   N(   R   (   R   t   val(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.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/seq_tests.pyR   $   s   	t   IterNextOnlyc           B   s    e  Z d  Z d „  Z d „  Z RS(   s    Missing __getitem__ and __iter__c         C   s   | |  _  d |  _ d  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/seq_tests.pyR   /   s    	c         C   sD   |  j  t |  j ƒ k r! t ‚ n  |  j |  j  } |  j  d 7_  | S(   Ni   (   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/seq_tests.pyR   2   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/seq_tests.pyR   -   s   	t
   IterNoNextc           B   s    e  Z d  Z d „  Z d „  Z RS(   s   Iterator missing next()c         C   s   | |  _  d |  _ d  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/seq_tests.pyR   :   s    	c         C   s   |  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/seq_tests.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/seq_tests.pyR   8   s   	t
   IterGenExcc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s   Test propagation of exceptionsc         C   s   | |  _  d |  _ d  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/seq_tests.pyR   B   s    	c         C   s   |  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/seq_tests.pyR   E   s    c         C   s   d d d  S(   Ni   i    (    (   R   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR   G   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/seq_tests.pyR   @   s   		t   IterFuncStopc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s   Test immediate stopc         C   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/seq_tests.pyR   L   s    c         C   s   |  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/seq_tests.pyR   N   s    c         C   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/seq_tests.pyR   P   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/seq_tests.pyR   J   s   		(   t   chaint   imapc         C   s(   t  t d „  t t t |  ƒ ƒ ƒ ƒ ƒ S(   s    Test multiple tiers of iteratorsc         S   s   |  S(   N(    (   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/seq_tests.pyt   <lambda>V   t    (   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/seq_tests.pyt	   itermultiT   s    t
   LyingTuplec           B   s   e  Z d  „  Z RS(   c         c   s	   d V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/seq_tests.pyR   Y   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/seq_tests.pyR   X   s   t	   LyingListc           B   s   e  Z d  „  Z RS(   c         c   s	   d V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/seq_tests.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/seq_tests.pyR   \   s   t
   CommonTestc           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 d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s™  g  } d g } d d g } |  j  ƒ  } |  j  | ƒ } |  j  | ƒ } |  j  | ƒ } |  j  | ƒ } |  j  | ƒ }	 |  j  | ƒ }
 |  j  | ƒ } |  j  t | ƒ ƒ } d d d „  ƒ  Y} | | ƒ } |  j  | ƒ } |  j t | ƒ t | ƒ ƒ d } |  j  | ƒ } |  j t | ƒ t | ƒ ƒ xd d t d ƒ d t d d d ƒ f D]ó } xE t t t t	 t
 f D]. } |  j |  j  | | ƒ ƒ |  j  | ƒ ƒ qdW|  j |  j  t | ƒ ƒ |  j  ƒ  ƒ |  j |  j  d „  d Dƒ ƒ |  j  d ƒ ƒ |  j t |  j  t | ƒ ƒ |  j t |  j  t | ƒ ƒ |  j t |  j  t | ƒ ƒ qHW|  j |  j  t d ƒ ƒ |  j  d ƒ ƒ |  j |  j  t d g ƒ ƒ |  j  d g ƒ ƒ d  S(   Ni    i   t   OtherSeqc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   _OtherSeq__data(   R   t   initseq(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR   u   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/seq_tests.pyt   __len__w   s    c         S   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/seq_tests.pyR   y   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/seq_tests.pyR    t   s   		s   this is also a sequencet   123R   iè  t   dog333333ó?iÐ  i˜  i   c         s   s   |  ] } | Vq d  S(   N(    (   t   .0t   c(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pys	   <genexpr>‰   s    i   (    (   R%   g333333ó?(   i   (   i   (   t	   type2testt   tuplet   assertEqualR   t   ranget   xrangeR   R   R   R   R   R   t   assertRaisest	   TypeErrorR   R   t   ZeroDivisionErrorR   R   R   (   R   t   l0t   l1t   l2t   ut   u0t   u1t   u2t   uut   uu0t   uu1t   uu2R   R    t   st   v0t   vvt   g(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_constructorsd   s<    	.,%, (c         C   s0   |  j  |  j ƒ  ƒ |  j |  j d g ƒ ƒ d  S(   Ni*   (   t   assertFalseR(   t
   assertTrue(   R   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt
   test_truth’   s    c         C   s  |  j  d d d d d g ƒ } xH t t | ƒ ƒ D]4 } |  j | | | ƒ |  j | t | ƒ | ƒ q1 Wx` t t | ƒ d ƒ D]H } |  j | | t | ƒ | ƒ |  j | t | ƒ t | ƒ | ƒ q€ W|  j t | j t | ƒ d ƒ |  j t | j t | ƒ ƒ |  j t | j t	 d d d ƒ ƒ |  j  ƒ  } |  j t | j d ƒ |  j t | j d ƒ |  j t
 | j ƒ |  j  d d g ƒ } |  j | d d ƒ |  j | d d ƒ |  j | d	 d ƒ |  j | d d ƒ |  j t | j d
 ƒ |  j t | j d ƒ d  S(   Ni    i   i   i   i   iÿÿÿÿi
   i   iþÿÿÿiýÿÿÿ(   R(   R,   R   R*   t   longR-   t
   IndexErrorR   t
   ValueErrort   sliceR.   (   R   R3   R   t   a(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_getitem–   s*    (!"c         C   sR  d d d d d g } |  j  | ƒ } |  j | d d !|  j  ƒ  ƒ |  j | d d !|  j  d g ƒ ƒ |  j | d d !|  j  d g ƒ ƒ |  j | d d	 !| ƒ |  j | d	 d !|  j  g  ƒ ƒ |  j | | ƒ |  j | d d  !|  j  d d d d g ƒ ƒ |  j | d  d !|  j  d d d g ƒ ƒ |  j | d  d  d  … | ƒ |  j | d  d  d … |  j  d d d g ƒ ƒ |  j | d d  d … |  j  d d g ƒ ƒ |  j | d  d  d … |  j  d d d d d g ƒ ƒ |  j | d  d  d … |  j  d d d g ƒ ƒ |  j | d d  d … |  j  d d g ƒ ƒ |  j | d d d … |  j  g  ƒ ƒ |  j | d d d … |  j  d g ƒ ƒ |  j | d d d … |  j  d g ƒ ƒ |  j | d d d … |  j  d d g ƒ ƒ |  j | d  d  d
 … |  j  d g ƒ ƒ |  j | d d
 d  … |  j  g  ƒ ƒ |  j | d
 d d  … | ƒ |  j | d d
 d … | d  d  d … ƒ |  j | d
 d d … |  j  g  ƒ ƒ |  j | d d d … |  j  d d d g ƒ ƒ |  j  d d d d d g ƒ } |  j | t d d ƒ d !|  j  d d d g ƒ ƒ |  j | d t d d ƒ !|  j  d d g ƒ ƒ |  j t | j ƒ d  S(   Ni    i   i   i   i   iþÿÿÿiÿÿÿÿiüÿÿiè  iœÿÿÿid   lÿÿÿÿd l   d l    l   € l   ‘ (   R(   R*   t   Nonet   powR-   R.   t   __getslice__(   R   t   lR3   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/seq_tests.pyt   test_getslice°   s<    ## ,)/,5/,&)),)&*&/3/c         C   s‹   |  j  d d d g ƒ } x | D] } |  j | | ƒ q Wx8 t | ƒ d t | ƒ d f D] } |  j | | ƒ qZ W|  j t | j ƒ d  S(   Ni    i   i   (   R(   t   assertInt   mint   maxt   assertNotInR-   R.   t   __contains__(   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/seq_tests.pyt   test_containsÖ   s    'c         C   sR   d d d „  ƒ  Y} |  j  | ƒ  |  j g  ƒ ƒ |  j | ƒ  |  j d g ƒ ƒ d  S(   Nt   AllEqc           B   s   e  Z d  „  Z d Z RS(   c         S   s   t  S(   N(   t   True(   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/seq_tests.pyt   __eq__ä   s    N(   R   R	   RW   RI   t   __hash__(    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyRT   à   s   	i   (    (   RQ   R(   RN   (   R   RT   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_contains_fakeß   s    c            s‰   d t  f d „  ƒ  Y‰  d d ‡  f d †  ƒ  Y} |  j d | ƒ  g ƒ } |  j d | ƒ |  j | ƒ  d g ƒ } |  j ˆ  | j d ƒ d  S(   Nt   DoNotTestEqc           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/seq_tests.pyRZ   î   s   t   StopComparesc              s   e  Z ‡  f d  †  Z RS(   c            s
   ˆ  ‚ d  S(   N(    (   R   RV   (   RZ   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyRW   ñ   s    (   R   R	   RW   (    (   RZ   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR[   ð   s   i   (    (   t	   ExceptionR(   RN   R-   RR   (   R   R[   t
   checkfirstt	   checklast(    (   RZ   s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_contains_orderê   s    c         C   s‰   |  j  t |  j ƒ  ƒ d ƒ |  j  t |  j g  ƒ ƒ d ƒ |  j  t |  j d g ƒ ƒ d ƒ |  j  t |  j d d d g ƒ ƒ d ƒ d  S(   Ni    i   i   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/seq_tests.pyt   test_lenù   s    "c         C   sH   |  j  d d d g ƒ } |  j t | ƒ d ƒ |  j t | ƒ d ƒ d  S(   Ni    i   i   (   R(   R*   RO   RP   (   R   R3   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_minmaxÿ   s    c         C   sQ  |  j  d g ƒ } |  j  d d g ƒ } |  j | | |  j  ƒ  ƒ |  j | |  j  ƒ  | ƒ |  j | |  j  d g ƒ | ƒ |  j |  j  d g ƒ | |  j  d d g ƒ ƒ |  j |  j  ƒ  | d ƒ |  j |  j  ƒ  d | ƒ |  j |  j  ƒ  | d ƒ |  j |  j  ƒ  d | ƒ |  j | | d ƒ |  j | d | ƒ |  j | | d ƒ |  j | d | ƒ |  j | | | d ƒ |  j | | d | ƒ |  j | | | d ƒ |  j | | d | ƒ |  j | | | | d ƒ |  j | | | d | ƒ d	 |  j  f d
 „  ƒ  Y} | d d g ƒ } |  j | | d ƒ |  j | | d ƒ d  S(   Ni    i   iÿÿÿÿl    l    i   l    i   t   subclassc           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/seq_tests.pyRb     s   (   R(   R*   t   assertIsNot(   R   R5   R6   Rb   t   u3(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_addmul  s0     /c      	   C   s  |  j  d d g ƒ } | |  j  ƒ  7} |  j | |  j  d d g ƒ ƒ | |  j  d d g ƒ 7} |  j | |  j  d d d d g ƒ ƒ | |  j  d d g ƒ 7} |  j | |  j  d d d d d d g ƒ ƒ |  j  d ƒ } | |  j  d ƒ 7} |  j | |  j  d	 ƒ ƒ d  S(
   Ni    i   i   i   i   i   t   spamt   eggst   spameggs(   R(   R*   (   R   R3   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt	   test_iadd   s    %+c      	   C   sN   |  j  d d g ƒ } | d 9} |  j | |  j  d d d d d d g ƒ ƒ d  S(   Ni    i   i   (   R(   R*   (   R   R3   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt	   test_imul-  s    
c         C   s?   d |  j  f d „  ƒ  Y} |  j t | d ƒ ƒ j ƒ  d ƒ d  S(   Nt   Tc           B   s   e  Z d  „  Z RS(   c         S   s   t  | ƒ d S(   Ns   !!!(   t   str(   R   t   key(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR   5  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/seq_tests.pyRk   4  s   i   i   (   i   i   (   R(   R*   t   iterR   (   R   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/seq_tests.pyt   test_getitemoverwriteiter2  s    c         C   s·   x° t  d ƒ D]¢ } t t | ƒ ƒ } xA t  d d ƒ D]0 } |  j |  j | | ƒ |  j | ƒ | ƒ q5 W|  j |  j | ƒ d |  j g  ƒ ƒ |  j t | ƒ t | d ƒ ƒ q Wd  S(   Ni   iýÿÿÿi   iüÿÿÿi   (   R,   R)   R+   R*   R(   t   id(   R   t   mR;   t   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/seq_tests.pyt   test_repeat9  s    .&c         C   s|   d d  l  } | j d k rx |  j d g ƒ } | d 9} |  j t | j d ƒ t | d ƒ rx |  j t | j d	 ƒ qx n  d  S(
   Niÿÿÿÿiÿÿÿi    i   i   t   __imul__i   i   i   (   t   syst   maxintR(   R-   t   MemoryErrort   __mul__t   hasattrRt   (   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/seq_tests.pyt   test_bigrepeatA  s    
c         C   sÊ  |  j  d d g ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | j d ƒ |  j t | j d ƒ |  j | j t d	 d
 ƒ ƒ |  j  d g ƒ ƒ |  j | j t d
 d ƒ ƒ |  j  d g ƒ ƒ |  j | j t d	 d ƒ ƒ |  j  d d g ƒ ƒ |  j | j t d	 d ƒ ƒ |  j  d d g ƒ ƒ |  j | j t d d ƒ ƒ |  j  g  ƒ ƒ |  j t | j t d	 d d	 ƒ ƒ |  j t | j d ƒ d  S(   Ni
   i   l    l    lÿÿÿÿ lÿÿÿÿ iýÿÿÿi   i    i   i   i   R   (   R(   R*   R   R-   RD   RF   RE   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/seq_tests.pyt   test_subscriptJ  s    ..11+"c            sÆ   |  j  d d d g ƒ d } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | j ƒ d t f d „  ƒ  Y‰  d d	 ‡  f d †  ƒ  Y} |  j ˆ  | j | ƒ  ƒ d  S(
   Ni    i   i   i   t   BadExcc           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/seq_tests.pyR|   b  s   t   BadCmpc              s   e  Z ‡  f d  †  Z RS(   c            s   | d k r ˆ  ƒ  ‚ n  t  S(   Ni   (   t   False(   R   RV   (   R|   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyRW   f  s    (   R   R	   RW   (    (   R|   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR}   e  s   (    (   R(   R*   t   countR-   R.   R\   (   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/seq_tests.pyt
   test_countZ  s    c            s0  |  j  d d g ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | j d ƒ |  j  d d d d d d g ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j t | j d d d ƒ |  j t | j ƒ d	 t f d
 „  ƒ  Y‰  d d ‡  f d †  ƒ  Y} |  j  d d d d g ƒ } |  j ˆ  | j | ƒ  ƒ |  j  d d d d d d g ƒ } |  j | j d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j | j d d t j	 d t j	 ƒ d ƒ |  j t | j d d t j	 d t j	 ƒ |  j t | j d d d ƒ d  S(   Ni    i   i   iþÿÿÿiÿÿÿÿiöÿÿÿi   i   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/seq_tests.pyR|   ~  s   R}   c              s   e  Z ‡  f d  †  Z RS(   c            s   | d k r ˆ  ƒ  ‚ n  t  S(   Ni   (   R~   (   R   RV   (   R|   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyRW   ‚  s    (   R   R	   RW   (    (   R|   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyR}   �  s   iüÿÿÿiýÿÿÿ(    (
   R(   R*   t   indexR-   RE   R   R.   R\   Ru   Rv   (   R   R3   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/seq_tests.pyt
   test_indexm  s:    !!-*c         C   s0   t  j |  t |  j ƒ t  j |  t |  j ƒ d  S(   N(   t   supportt   check_free_after_iteratingRn   R(   t   reversed(   R   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   test_free_after_iterating—  s    N(   R   R	   RI   R(   R?   RB   RH   RM   RS   RY   R_   R`   Ra   Re   Ri   Rj   Ro   Rs   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/seq_tests.pyR   `   s(   	.			&																*(    (    (    (    (    (    (    (   R
   t   unittestRu   t   testR    Rƒ   R   R   R   R   R   R   R   R   t	   itertoolsR   R   R   R)   R   t   listR   t   TestCaseR   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/seq_tests.pyt   <module>   s    		
		