ó
ŠwÛjc           @   sQ   d  Z  d d l Z d d l Z d d l m Z m Z d e j f d „  ƒ  YZ d S(   s,   
Tests common to list and UserList.UserList
iÿÿÿÿN(   t   test_supportt	   seq_testst
   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 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sé   |  j  |  j g  ƒ |  j ƒ  ƒ |  j d d d g ƒ } | j ƒ  |  j  | |  j g  ƒ ƒ |  j d d d g ƒ } | j d d d g ƒ |  j  | |  j d d d g ƒ ƒ |  j | ƒ } |  j t | ƒ t | ƒ ƒ |  j  | | ƒ d  S(   Ni   i   i   i   i   i   (   t   assertEqualt	   type2testt   __init__t   assertNotEqualt   id(   t   selft   at   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/list_tests.pyt	   test_init   s    
"c         C   sý   g  } d d d g } |  j  | ƒ } |  j  | ƒ } |  j t | ƒ t | ƒ ƒ |  j t | ƒ t | ƒ ƒ |  j t | ƒ t | ƒ ƒ |  j t | ƒ d ƒ |  j t | ƒ d ƒ | j | ƒ | j d ƒ |  j t | ƒ d ƒ |  j t | ƒ d ƒ d  S(   Ni    i   i   s	   [0, 1, 2]i   s   [0, 1, 2, [...], 3](   R   R   t   strt   reprt   append(   R   t   l0t   l2t   a0t   a2(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt	   test_repr   s    c         C   sY   |  j  g  ƒ } x0 t t j ƒ  d ƒ D] } |  j  | g ƒ } q& W|  j t t | ƒ d  S(   Nid   (   R   t   ranget   syst   getrecursionlimitt   assertRaisest   RuntimeErrorR   (   R   R	   t   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/list_tests.pyt   test_repr_deep0   s    c      	   C   sÊ   |  j  t d ƒ ƒ } | j | ƒ | j t d d ƒ ƒ | j | ƒ | j d ƒ z` t t j d ƒ � } | | IWd  QXt t j d ƒ �# } |  j | j ƒ  t	 | ƒ ƒ Wd  QXWd  t
 j t j ƒ Xd  S(   NiÈ   i�  t   wbt   rb(   R   t   xrangeR   t   extendt   openR    t   TESTFNR   t   readR   t   ost   remove(   R   t   dt   fo(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt
   test_print6   s    &c         C   s!  |  j  t d ƒ ƒ } |  j t | j t d d d ƒ d d d g ƒ |  j t | j t d d ƒ d ƒ |  j t | j t d d d ƒ d d g ƒ |  j t | j d d ƒ d d d g | t d d d ƒ <|  j | |  j  d d d d d d d	 d
 d d d d d d d d d d d d g ƒ ƒ d  S(   Ni   i    i
   i   i   i   t   xi   i   i   i	   i   i   i   i   i   i   i   i   i   (	   R   R   R   t
   ValueErrort   __setitem__t   slicet	   TypeErrort   __getitem__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/list_tests.pyt   test_set_subscriptD   s    ."+*c         C   s­   |  j  t d ƒ ƒ } t | ƒ } |  j t | ƒ |  j  t d d d ƒ ƒ ƒ |  j t | j ƒ |  j t t |  j  ƒ  ƒ ƒ |  j  ƒ  ƒ |  j t t	 t d d d g ƒ ƒ d  S(   Ni   i   iÿÿÿÿi   i   i   (
   R   R   t   reversedR   t   listR   t   StopIterationt   nextR+   t   len(   R   R	   t   r(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_reversedO   s    +c         C   sF  |  j  d d g ƒ } d | d <d | d <|  j | |  j  d d g ƒ ƒ d | d <|  j | |  j  d d g ƒ ƒ d | d <|  j | |  j  d d g ƒ ƒ |  j t | j d d ƒ |  j t | j d d ƒ |  j  g  ƒ } |  j t | j d d ƒ |  j t | j d d ƒ |  j t | j ƒ |  j  d d d d	 d
 g ƒ } d | d <d | d <d	 | d <|  j | |  j  d d d	 d	 d
 g ƒ ƒ d | d <d | d <d | d <|  j | |  j  d d d d	 d
 g ƒ ƒ d | d <d | d <|  j | |  j  d d d d d g ƒ ƒ d | d <d | d <|  j | |  j  d d d d d g ƒ ƒ d  S(   Ni    i   id   iÈ   iÿÿÿÿiþÿÿÿiýÿÿÿi   i   i   l    l    l    i   i   i   iX   lÿÿÿÿ ic   lÿÿÿÿ i   i	   (   R   R   R   t
   IndexErrorR)   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/list_tests.pyt   test_setitemY   s:    






(


(

(

c         C   s	  |  j  d d g ƒ } | d =|  j | d g ƒ | d =|  j | g  ƒ |  j  d d g ƒ } | d =|  j | d g ƒ | d =|  j | g  ƒ |  j  d d g ƒ } |  j t | j d ƒ |  j t | j d ƒ |  j  g  ƒ } |  j t | j d ƒ |  j t | j ƒ d  S(   Ni    i   iþÿÿÿiÿÿÿÿiýÿÿÿi   (   R   R   R   R5   t   __delitem__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/list_tests.pyt   test_delitemz   s     c      
   C   s  d d g } |  j  | ƒ } xt d d ƒ D]õ } | |  | | *|  j | | ƒ | } | |  | | *|  j | | ƒ | | | | )|  j | | ƒ | } | | | | )|  j | | ƒ xf t d d ƒ D]U } | | | !| | | +|  j | | ƒ | } | | | !| | | +|  j | | ƒ qÇ Wq+ W| } d d g | d *|  j | d d d d g ƒ g  | d )|  j | g  ƒ |  j  d d d d d	 g ƒ } | | d *|  j | |  j  d d d d d	 d	 g ƒ ƒ |  j  d d d d d	 g ƒ } | | d )|  j | |  j  d d d d d d	 g ƒ ƒ |  j  d d d d d	 g ƒ } | | d d +|  j | |  j  d d d d d d	 d	 g ƒ ƒ |  j  g  ƒ } t t d
 ƒ ƒ | (|  j | |  j  t d
 ƒ ƒ ƒ |  j t | j d d d	 ƒ |  j t | j t d d d	 ƒ ƒ |  j t | j ƒ |  j t | j ƒ d  S(   Ni    i   iýÿÿÿi   iþÿÿÿiÿÿÿÿi   i   i   i
   (	   R   R   R   t   tupleR   R+   t   __setslice__R)   R*   (   R   t   lR	   R   R   t   jt   aa2(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_setslice�   sP    

+
+."c         C   s  |  j  d d g ƒ } | d d 5| d d 5|  j | |  j  g  ƒ ƒ |  j  d d g ƒ } | d d 5| d d 5|  j | |  j  g  ƒ ƒ |  j  d d g ƒ } | d d 5|  j | |  j  d g ƒ ƒ |  j  d d g ƒ } | d	 d
 5|  j | |  j  d g ƒ ƒ |  j  d d g ƒ } | d 3| d 4|  j | |  j  g  ƒ ƒ |  j  d d g ƒ } | d 3| d 4|  j | |  j  g  ƒ ƒ |  j  d d g ƒ } | d 3|  j | |  j  d g ƒ ƒ |  j  d d g ƒ } | d
 3|  j | |  j  d g ƒ ƒ |  j  d d g ƒ } | 2|  j | |  j  g  ƒ ƒ d  S(   Ni    i   i   l    l    l    iþÿÿÿiÿÿÿÿlÿÿÿÿ lÿÿÿÿ (   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/list_tests.pyt   test_delsliceÀ   s>    





c         C   so   |  j  g  ƒ } | j d ƒ | j d ƒ | j d ƒ |  j | |  j  d d d g ƒ ƒ |  j t | j ƒ d  S(   Ni    i   i   (   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/list_tests.pyt   test_appendé   s    "c      	   C   s
  |  j  d g ƒ } |  j  d ƒ } | } | j | ƒ |  j | | | ƒ | j |  j  g  ƒ ƒ |  j | | | ƒ | j | ƒ |  j | |  j  d d d d d d g ƒ ƒ |  j  d ƒ } | j d ƒ |  j | t d ƒ ƒ |  j t | j d  ƒ |  j t | j ƒ d  S(   Ni    i   t   spamt   eggst   spameggs(   i    i   (   R   R   R   R/   R   R+   t   None(   R   t   a1R   R	   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_extendò   s    +c         C   sì   |  j  d d d g ƒ } | j d d ƒ | j d d ƒ | j d d ƒ |  j | d d d d d d g ƒ | } | j d d ƒ | j d d ƒ | j d	 d
 ƒ |  j | |  j  d d d d d d d d d
 g	 ƒ ƒ |  j t | j ƒ d  S(   Ni    i   i   iþÿÿÿiÿÿÿÿt   fooi8ÿÿÿt   leftiÈ   t   right(   R   t   insertR   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/list_tests.pyt   test_insert  s    "4c         C   sÙ   |  j  d d d g ƒ } | j ƒ  |  j | d d g ƒ | j d ƒ |  j | d g ƒ |  j t | j d ƒ | j d ƒ |  j | g  ƒ |  j t | j ƒ |  j t | j d d ƒ |  j  d d d d d	 g ƒ } d  S(
   Niÿÿÿÿi    i   i   i*   i
   i   i   i(   (   R   t   popR   R   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/list_tests.pyt   test_pop  s    
c            s  |  j  d d d g ƒ } | j d ƒ |  j | d d g ƒ | j d ƒ |  j | d g ƒ | j d ƒ |  j | g  ƒ |  j t | j d ƒ |  j t | j ƒ d t f d „  ƒ  Y‰  d d ‡  f d †  ƒ  Y} |  j  d d d d g ƒ } |  j ˆ  | j | ƒ  ƒ d	 d ‡  f d
 †  ƒ  Y} |  j  d ƒ } | j d ƒ |  j | |  j  d ƒ ƒ | j d ƒ |  j | |  j  d ƒ ƒ |  j t | j d ƒ |  j | |  j  d ƒ ƒ |  j  d d | ƒ  d g ƒ } |  j  | ƒ } |  j ˆ  | j d ƒ x- t | | ƒ D] \ } } |  j | | ƒ qúWd  S(   Ni    i   t   BadExcc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRN   0  s   t   BadCmpc              s   e  Z ‡  f d  †  Z RS(   c            s   | d k r ˆ  ƒ  ‚ n  t  S(   Ni   (   t   False(   R   t   other(   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   __eq__4  s    (   RO   RP   RT   (    (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRQ   3  s   i   i   t   BadCmp2c              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  ƒ  ‚ d  S(   N(    (   R   RS   (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRT   =  s    (   RO   RP   RT   (    (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRU   <  s   t   abcdefghcijt   ct
   abdefghcijt	   abdefghijR	   R
   (    (    (	   R   R#   R   R   R(   R+   t	   Exceptiont   zipt   assertIs(   R   R	   RQ   RU   R$   t   eR'   t   y(    (   RN   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_remove#  s4    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   RN   c           B   s   e  Z RS(    (   RO   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/list_tests.pyRN   X  s   RQ   c              s   e  Z ‡  f d  †  Z RS(   c            s   | d k r ˆ  ƒ  ‚ n  t  S(   Ni   (   RR   (   R   RS   (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRT   \  s    (   RO   RP   RT   (    (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRQ   [  s   (    (   R   R   t   countR   R+   RZ   (   R   R	   RQ   (    (   RN   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt
   test_countP  s    c            sÜ  |  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 ƒ | j
 d ƒ |  j t | j d d d ƒ |  j | |  j  d d d d d g ƒ ƒ d d d „  ƒ  Y} |  j  ƒ  } g  t d ƒ D] } | | ƒ ^ q©| (|  j t | j d  ƒ d  S(   Ni    i   i   iþÿÿÿiÿÿÿÿiöÿÿÿi   i   RN   c           B   s   e  Z RS(    (   RO   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/list_tests.pyRN   t  s   RQ   c              s   e  Z ‡  f d  †  Z RS(   c            s   | d k r ˆ  ƒ  ‚ n  t  S(   Ni   (   RR   (   R   RS   (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRT   x  s    (   RO   RP   RT   (    (   RN   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyRQ   w  s   iüÿÿÿiýÿÿÿt   EvilCmpc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   victim(   R   Rc   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyR   ’  s    c         S   s   |  j  2t S(   N(   Rc   RR   (   R   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/list_tests.pyRT   ”  s    (   RO   RP   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/list_tests.pyRb   ‘  s   	id   (    (    (   R   R   t   indexR   R(   R`   R+   RZ   R   t   maxintR#   R   RD   (   R   t   uRQ   R	   Rb   t   _(    (   RN   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt
   test_indexc  sH    !!-*(&c         C   s‚   |  j  d d d d d g ƒ } | } | j ƒ  |  j | d d d d d g ƒ | j ƒ  |  j | | ƒ |  j t | j d ƒ d  S(   Niþÿÿÿiÿÿÿÿi    i   i   i*   (   R   t   reverseR   R   R+   (   R   Rf   t   u2(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_reverseœ  s    

c         C   s*   t  j d t f ƒ � |  j ƒ  Wd  QXd  S(   Ns!   the cmp argument is not supported(   R    t   check_py3k_warningst   DeprecationWarningt
   _test_sort(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt	   test_sort¦  s    c            s~  |  j  d d g ƒ } | j ƒ  |  j | d d g ƒ |  j  d d d d d g ƒ } | j ƒ  |  j | |  j  d d d d d g ƒ ƒ |  j t | j d d ƒ d „  } | j | ƒ |  j | |  j  d d d d d g ƒ ƒ d „  } |  j  t d	 ƒ ƒ ‰  ˆ  j | ƒ |  j t ˆ  j d ƒ ‡  f d
 †  } |  j t ˆ  j | ƒ |  j t ˆ  j d „  ƒ |  j t ˆ  j d d d d ƒ d  S(   Ni   i    i   iÿÿÿÿiþÿÿÿi*   c         S   s   t  | |  ƒ S(   N(   t   cmp(   R	   R
   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   revcmp¶  s    c         S   s   t  |  d | d ƒ S(   Ni   i   (   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/list_tests.pyt   myComparison¼  s    i   c            s   ˆ  j  d ƒ t |  | ƒ S(   Ni   (   R   Rp   (   R'   R^   (   t   z(    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   selfmodifyingComparisonÃ  s    c         S   s   d S(   Nt   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/list_tests.pyt   <lambda>È  t    (   R   t   sortR   R   R+   R   R(   (   R   Rf   Rq   Rr   Rt   (    (   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/list_tests.pyRn   «  s$    

(	(	c         C   s3   |  j  d ƒ } d | d *|  j | t d ƒ ƒ d  S(   NRA   t   hi   t   ham(   R   R   R/   (   R   Rf   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt
   test_sliceÌ  s    
c         C   sš   t  t |  ƒ j ƒ  |  j d d g ƒ } | } | d d g 7} |  j | | ƒ |  j d ƒ } | d 7} |  j | |  j d ƒ ƒ |  j t | j d  ƒ d  S(   Ni    i   i   i   RA   RB   RC   (
   t   superR   t	   test_iaddR   R\   R   R   R+   t   __iadd__RD   (   R   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/list_tests.pyR}   Ñ  s    
c      	   C   s¬   |  j  d d g ƒ } | d 9} |  j | |  j  d d d d d d g ƒ ƒ | d 9} |  j | |  j  g  ƒ ƒ |  j  g  ƒ } t | ƒ } | d 9} |  j t | ƒ | ƒ d  S(   Ni    i   i   i
   (   R   R   R   (   R   Rf   Ru   t   oldid(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt	   test_imulÞ  s    
+

c         C   s‡  |  j  d d d d d g ƒ } | d  d  d … =|  j | |  j  d d g ƒ ƒ |  j  t d ƒ ƒ } | d d  d … =|  j | |  j  d d d g ƒ ƒ |  j  t d ƒ ƒ } | d d  d … =|  j | |  j  d d d d g ƒ ƒ |  j  t d ƒ ƒ } | d  d  d	 … =|  j | |  j  d d d d d d
 d d d g	 ƒ ƒ |  j  t d ƒ ƒ } d g d | d  d  d … <|  j | |  j  d d d d d d d d d d g
 ƒ ƒ |  j  t d ƒ ƒ } d g d | d  d  d … <|  j | |  j  d d d d d d d
 d d d g
 ƒ ƒ |  j  t d ƒ ƒ } | | d  d  d … <|  j | |  j  d d d d g ƒ ƒ |  j  t d ƒ ƒ } | } | } |  j  d d g ƒ | d d +|  j  d d g ƒ | t d d ƒ <|  j  d d g ƒ | d d d  … <|  j | | ƒ |  j | | ƒ |  j  t d ƒ ƒ } t t d ƒ ƒ | d  d  d … <|  j | |  j  d d d d d d d d d d g
 ƒ ƒ |  j  t d ƒ ƒ } | d d  d … =d  S(   Ni    i   i   i   i   i   iþÿÿÿi
   iè  i   i   i   i	   iÿÿÿÿiüÿÿÿt   twot   elementsiM  l                                                (   R   R   R   R*   RD   R9   (   R   R	   R
   RW   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_extendedslicingé  sD    "%477%""7c         C   s0   d t  f d „  ƒ  Y} |  j t t | ƒ  ƒ d  S(   Nt   Fc           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   t   KeyboardInterrupt(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   __iter__  s    (   RO   RP   R†   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyR„     s   (   t   objectR   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/list_tests.pyt#   test_constructor_exception_handling  s    c         C   s°   |  j  d d d g ƒ } t | ƒ } t | ƒ } x | D] } t | ƒ q7 W| j d ƒ |  j t | ƒ g  ƒ |  j t | ƒ d g ƒ |  j | |  j  d d d d g ƒ ƒ d  S(   Ni   i   i   i	   (   R   t   iterR1   R   R   R/   (   R   R	   t   exhitt   empitR'   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   test_exhausted_iterator  s    (   RO   RP   R   R   R   R&   R-   R4   R6   R8   R>   R?   R@   RF   RK   RM   R_   Ra   Rh   Rk   Ro   Rn   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/list_tests.pyR   
   s4   						
	!		0	)						-		9	
		!				)	(   t   __doc__R   R"   t   testR    R   R   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/list_tests.pyt   <module>   s   