ó
‹wÛjc           @   sÿ  d  d l  Z  d  d l m Z m Z m Z m Z m Z m Z m Z d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f g Z	 d f  d „  ƒ  YZ
 d f  d	 „  ƒ  YZ d
 f  d „  ƒ  YZ d e  j f d „  ƒ  YZ d „  Z e d k rûe ƒ  n  d S(   iÿÿÿÿN(   t   run_unittestt   TESTFNt   unlinkt   have_unicodet   check_py3k_warningst   cpython_onlyt   check_free_after_iteratingi    i   i   t   BasicIterClassc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d |  _ d  S(   Ni    (   t   nt   i(   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/test_iter.pyt   __init__   s    	c         C   s2   |  j  } | |  j k r! t ‚ n  | d |  _  | S(   Ni   (   R	   R   t   StopIteration(   R
   t   res(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   next   s
    		(   t   __name__t
   __module__R   R   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR      s   	t   IteratingSequenceClassc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  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_iter.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_iter.pyt   __iter__%   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_iter.pyR   "   s   	t   SequenceClassc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  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_iter.pyR   )   s    c         C   s-   d | k o |  j  k  n r# | St ‚ d  S(   Ni    (   R   t
   IndexError(   R
   R	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   __getitem__+   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_iter.pyR   (   s   	t   TestCasec           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 e rù d „  Z n  d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d  „  Z# d! „  Z$ d" „  Z% d# „  Z& e' j( e d$ ƒ d% „  ƒ Z) d& „  Z* d' „  Z+ d( „  Z, d) „  Z- d* „  Z. e/ d+ „  ƒ Z0 d, „  Z1 d- „  Z2 d. „  Z3 d/ „  Z4 d0 „  Z5 d1 „  Z6 d2 „  Z7 d3 „  Z8 d4 „  Z9 d5 „  Z: d6 „  Z; d7 „  Z< RS(8   c         C   sS   g  } x6 y | j  ƒ  } Wn t k
 r- Pn X| j | ƒ q	 W|  j | | ƒ d  S(   N(   R   R   t   appendt   assertEqual(   R
   t   itt   seqR   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/test_iter.pyt   check_iterator6   s    c         C   s8   g  } x | D] } | j  | ƒ q W|  j | | ƒ d  S(   N(   R   R   (   R
   t   exprR   R   R   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   check_for_loopA   s    c         C   s&   |  j  t t d ƒ ƒ t d ƒ ƒ d  S(   Ni
   (   R   t   itert   range(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_basicH   s    c         C   s;   t  d ƒ } t | ƒ } t | ƒ } |  j | | k ƒ d  S(   Ni
   (   R    R   t
   assertTrue(   R
   R   R   t   it2(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_idempotencyL   s    c         C   s&   |  j  t t d ƒ ƒ t 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/test_iter.pyt   test_iter_for_loopS   s    c         C   s�   t  d ƒ } g  } xX t | ƒ D]J } xA t | ƒ D]3 } x* t | ƒ D] } | j | | | f ƒ qE Wq2 Wq W|  j | t ƒ d  S(   Ni   (   R    R   R   R   t   TRIPLETS(   R
   R   R   R	   t   jt   k(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_independenceW   s    "c         C   sn   t  d ƒ } g  t | ƒ D]; } t | ƒ D]( } t | ƒ D] } | | | f ^ q9 q) q } |  j | t ƒ d  S(   Ni   (   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_iter.pyt   test_nested_comprehensions_itera   s    Kc         C   s\   t  d ƒ } g  | D]/ } | D]" } | D] } | | | f ^ q' q q } |  j | t ƒ d  S(   Ni   (   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_iter.pyt   test_nested_comprehensions_forh   s    <c         C   s    |  j  t d ƒ t 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/test_iter.pyt   test_iter_class_forn   s    c         C   s&   |  j  t t d ƒ ƒ t d ƒ ƒ d  S(   Ni
   (   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_iter.pyt   test_iter_class_iterr   s    c         C   s    |  j  t d ƒ t 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/test_iter.pyt   test_seq_class_forv   s    c         C   s&   |  j  t t d ƒ ƒ t d ƒ ƒ d  S(   Ni
   (   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_iter.pyt   test_seq_class_iterz   s    c      	   C   s©   t  d ƒ } t | ƒ } t | ƒ } x | D] } t | ƒ q+ Wd | _ |  j t | ƒ g  ƒ |  j t | ƒ d d g ƒ |  j t | ƒ d d d d d d d g ƒ d  S(	   Ni   i   i   i    i   i   i   i   (   R   R   R   R   R   t   list(   R
   t   at   exhitt   empitt   x(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt&   test_mutating_seq_class_exhausted_iter}   s    	c         C   s0   d t  f d „  ƒ  Y} |  j t t | ƒ  ƒ d  S(   Nt	   IterClassc           B   s   e  Z d  „  Z RS(   c         S   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/test_iter.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_iter.pyR6   Š   s   (   t   objectt   assertRaisest	   TypeErrorR   (   R
   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_iter.pyt   test_new_style_iter_class‰   s    c         C   s9   d d d „  ƒ  Y} |  j  t | ƒ  d ƒ t d ƒ ƒ d  S(   Nt   Cc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d |  _  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_iter.pyR   ’   s    c         S   s/   |  j  } | d |  _  | d k r+ t ‚ n  | S(   Ni   id   (   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_iter.pyt   __call__”   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_iter.pyR;   ‘   s   	i
   (    (   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_iter.pyt   test_iter_callable�   s    	c         C   s2   d g d „ } |  j  t | d ƒ t d ƒ ƒ d  S(   Ni    c         S   s   |  d } | d |  d <| S(   Ni    i   (    (   t   stateR	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   spamž   s    
i
   (   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_iter.pyt   test_iter_function�   s    c         C   s2   d g d „ } |  j  t | d ƒ t d ƒ ƒ d  S(   Ni    c         S   s1   |  d } | d k r t  ‚ n  | d |  d <| S(   Ni    i
   i   (   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_iter.pyR?   ¦   s
    
	i   i
   (   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_iter.pyt   test_iter_function_stop¥   s    c         C   s{   d g d „ } g  } y+ x$ t  | d ƒ D] } | j | ƒ q( WWn' t k
 ri |  j | t d ƒ ƒ n X|  j d ƒ d  S(   Ni    c         S   s1   |  d } | d |  d <| d k r- t  ‚ n  | S(   Ni    i   i
   (   t   RuntimeError(   R>   R	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR?   °   s
    
	i   i
   s   should have raised RuntimeError(   R   R   RB   R   R    t   fail(   R
   R?   R   R4   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_exception_function¯   s    c         C   s   d t  f d „  ƒ  Y} g  } y( x! | d ƒ D] } | j | ƒ q, WWn' t k
 rm |  j | t d ƒ ƒ n X|  j d ƒ d  S(   Nt   MySequenceClassc           B   s   e  Z d  „  Z RS(   c         S   s%   | d k r t  ‚ n  t j |  | ƒ S(   Ni
   (   RB   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_iter.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_iter.pyRE   Á   s   i   i
   s   should have raised RuntimeError(   R   R   RB   R   R    RC   (   R
   RE   R   R4   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_exception_sequenceÀ   s    c         C   s6   d t  f d „  ƒ  Y} |  j | d ƒ t d ƒ ƒ d  S(   NRE   c           B   s   e  Z d  „  Z RS(   c         S   s%   | d k r t  ‚ n  t j |  | ƒ S(   Ni
   (   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_iter.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_iter.pyRE   Ñ   s   i   i
   (   R   R   R    (   R
   RE   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_stop_sequenceÐ   s    c         C   s&   |  j  t t d ƒ ƒ t 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/test_iter.pyt   test_iter_big_rangeÙ   s    c         C   s   |  j  t g  ƒ g  ƒ d  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_iter.pyt   test_iter_emptyÝ   s    c         C   s    |  j  t d ƒ t d ƒ ƒ d  S(   Ni    i   i   i   i   i   i   i   i   i	   i
   (
   i    i   i   i   i   i   i   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/test_iter.pyt   test_iter_tupleá   s    c         C   s&   |  j  t t d ƒ ƒ t d ƒ ƒ d  S(   Ni
   (   R   R   t   xrangeR    (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_xrangeå   s    c         C   s)   |  j  t d ƒ d d d d d g ƒ d  S(   Nt   abcdeR1   t   bt   ct   dt   e(   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_iter.pyt   test_iter_stringé   s    c         C   sM   |  j  t t d ƒ ƒ t d ƒ t d ƒ t d ƒ t d ƒ t d ƒ g ƒ d  S(   NRM   R1   RN   RO   RP   RQ   (   R   R   t   unicode(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_unicodeî   s    c         C   sA   i  } x t  d ƒ D] } d  | | <q W|  j | | j ƒ  ƒ d  S(   Ni
   (   R    t   NoneR   t   keys(   R
   t   dictR	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_dictô   s    c         C   s¿   t  t d ƒ } z, x% t d ƒ D] } | j d | ƒ q WWd  | j ƒ  Xt  t d ƒ } z3 |  j | d d d d d	 g ƒ |  j | g  ƒ Wd  | j ƒ  y t t ƒ Wn t k
 r¹ n XXd  S(
   Nt   wi   s   %d
t   rs   0
s   1
s   2
s   3
s   4
(   t   openR   R    t   writet   closeR   R   t   OSError(   R
   t   fR	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_iter_fileû   s    
c         C   sÉ  |  j  t t d ƒ ƒ t d ƒ ƒ |  j  t t d ƒ ƒ g  ƒ |  j  t d ƒ g  ƒ |  j  t t d d d ƒ ƒ t d d d ƒ ƒ i d d 6d d 6d	 d
 6} |  j  t | ƒ | j ƒ  ƒ |  j t t t ƒ |  j t t d ƒ t t d ƒ } z, x% t d ƒ D] } | j	 d | ƒ qþ WWd  | j
 ƒ  Xt t d ƒ } z^ |  j  t | ƒ d d d d d g ƒ | j d d ƒ |  j  t | ƒ d d d d d g ƒ Wd  | j
 ƒ  y t t ƒ Wn t k
 rÃn XXd  S(   Ni   i    i
   iÿÿÿÿi   t   onei   t   twoi   t   threei*   RY   s   %d
RZ   s   0
s   1
s   2
s   3
s   4
(    (   R   R0   R   R    RV   R8   R9   R[   R   R\   R]   t   seekR   R^   (   R
   RP   R_   R	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_builtin_list  s0    ".%
c         C   s©  |  j  t t d ƒ ƒ d ƒ |  j  t t d ƒ ƒ d ƒ |  j  t g  ƒ d ƒ |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ i d d 6d d 6d d 6} |  j  t | ƒ t | j ƒ  ƒ ƒ |  j t t t ƒ |  j t t d ƒ t t d ƒ } z, x% t	 d ƒ D] } | j
 d | ƒ qü WWd  | j ƒ  Xt t d ƒ } z@ |  j  t | ƒ d ƒ | j d d ƒ |  j  t | ƒ d ƒ Wd  | j ƒ  y t t ƒ Wn t k
 r£n XXd  S(   Ni   i    i   i   i   i   t   abcR1   RN   RO   Ra   Rb   Rc   i*   RY   s   %d
RZ   s   0
s   1
s   2
s   3
s   4
(   i    i   i   i   i   (    (    (    (    (   R1   RN   RO   (   s   0
s   1
s   2
s   3
s   4
(   s   0
s   1
s   2
s   3
s   4
(   R   t   tupleR   RV   R8   R9   R0   R[   R   R    R\   R]   Rd   R   R^   (   R
   RP   R_   R	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_builtin_tuple.  s2    "
c         C   sƒ  |  j  t d  t d ƒ ƒ t d d ƒ ƒ |  j  t d  t d ƒ ƒ g  ƒ |  j  t d  d ƒ d ƒ |  j  t d  d ƒ d ƒ i d d 6d d 6d d	 6} |  j  t d  | ƒ | j ƒ  ƒ |  j t t d  t ƒ |  j t t d  d
 ƒ d d d „  ƒ  Y} | d ƒ } | d ƒ } d d d „  ƒ  Y} | | | g d Œ  } |  j  t d „  | ƒ | g d ƒ |  j  t d „  t	 | ƒ ƒ | g d ƒ d  S(   Ni   i   i    Rf   Ra   i   Rb   i   Rc   i*   t   Booleanc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   truth(   R
   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_iter.pyR   \  s    c         S   s   |  j  S(   N(   Rj   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   __nonzero__^  s    (   R   R   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/test_iter.pyRi   [  s   	t   Seqc           B   s   e  Z d  „  Z d „  Z RS(   c         W   s   | |  _  d  S(   N(   t   vals(   R
   t   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_iter.pyR   d  s    c         S   s    d d d „  ƒ  Y} | |  j  ƒ S(   Nt   SeqIterc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  d |  _ d  S(   Ni    (   Rm   R	   (   R
   Rm   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR   h  s    	c         S   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/test_iter.pyR   k  s    c         S   s@   |  j  } | d |  _  | t |  j ƒ k  r6 |  j | St ‚ d  S(   Ni   (   R	   t   lenRm   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_iter.pyR   m  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_iter.pyRo   g  s   		(    (   Rm   (   R
   Ro   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR   f  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_iter.pyRl   c  s   	i   c         S   s   |  S(   N(    (   R4   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   <lambda>w  t    c         S   s   |  S(   N(    (   R4   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyRq   x  Rr   (    (    (    (    (
   R   t   filterRU   R   R    RV   R8   R9   R0   R   (   R
   RP   Ri   t   bTruet   bFalseRl   R   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_builtin_filterO  s    (#c         C   sº  |  j  t t d ƒ ƒ d ƒ |  j  t t d ƒ ƒ d ƒ |  j  t d d ƒ d ƒ |  j  t d d ƒ d ƒ i d d 6d d	 6d
 d 6} |  j  t | ƒ d	 ƒ |  j  t | ƒ d ƒ |  j  t | j ƒ  ƒ d
 ƒ |  j  t t | j ƒ  ƒ ƒ d ƒ t t d ƒ } z+ | j d ƒ | j d ƒ | j d ƒ Wd  | j	 ƒ  Xt t d ƒ } z@ |  j  t | ƒ d ƒ | j
 d d ƒ |  j  t | ƒ d ƒ Wd  | j	 ƒ  y t t ƒ Wn t k
 r´n XXd  S(   Ni   i   i    i   iÿÿÿÿi   Ra   i   Rb   i   Rc   RY   s   medium line
s   xtra large line
s   itty-bitty line
RZ   (   R   t   maxR   t   mint
   itervaluesR   R[   R   R\   R]   Rd   R   R^   (   R
   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/test_iter.pyt   test_builtin_max_min{  s2    "
c         C   s  |  j  t d „  t d ƒ ƒ t d d ƒ ƒ i d d 6d d 6d d	 6} |  j  t | d
 „ | ƒ | j ƒ  ƒ | j ƒ  } g  t d ƒ D]M } | t | ƒ k  r¦ | | p© d  | | t | ƒ k  rÈ | | pË d  f ^ q„ } t ƒ  �z |  j  t d  t d ƒ ƒ t d ƒ ƒ |  j  t d  | ƒ | j ƒ  ƒ |  j  t d  | t d ƒ t	 | j
 ƒ  ƒ ƒ | ƒ Wd  QXt t d ƒ } z0 x) t d ƒ D] } | j d | d ƒ q{WWd  | j ƒ  Xt t d ƒ } z) |  j  t t | ƒ t d d d ƒ ƒ Wd  | j ƒ  y t t ƒ Wn t k
 rn XXd  S(   Nc         S   s   |  d S(   Ni   (    (   R4   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyRq   œ  Rr   i   i   i   Ra   i   Rb   i   Rc   c         S   s   |  | |  f S(   N(    (   R(   RP   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyRq   Ÿ  Rr   RY   i
   t   xys   
RZ   i   (   R   t   mapR   R    t   itemsRV   Rp   RU   R   R   t   iterkeysR[   R   R\   R]   R   R^   (   R
   RP   t   dkeysR	   t   expectedR_   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_builtin_map›  s4    +%]
%	)
c         C   su  |  j  t ƒ  g  ƒ |  j  t g  Œ  g  ƒ |  j  t d  d g Œ  d! d" g ƒ |  j t t d  ƒ |  j t t t d ƒ d ƒ |  j t t t d ƒ t ƒ |  j  t t d ƒ ƒ d# d$ d% g ƒ |  j  t t d ƒ ƒ d& d' d( g ƒ i d d
 6d d 6d d 6} |  j  | j ƒ  t | | j	 ƒ  ƒ ƒ d d) d „  ƒ  Y} t
 t d ƒ } z | j d ƒ Wd  | j ƒ  Xt
 t d ƒ } z5 |  j  t | d	 ƒ | | d ƒ ƒ d* d+ d, g ƒ Wd  | j ƒ  y t t ƒ Wn t k
 rÓn XX|  j  t t d ƒ ƒ g  t d ƒ D] } | f ^ q÷ƒ d d- d „  ƒ  Y} d | f d „  ƒ  Y} d | f d „  ƒ  Y} |  j  t | ƒ  ƒ d ƒ |  j  t | ƒ  ƒ d ƒ |  j  t | ƒ  ƒ t t d ƒ ƒ ƒ |  j  t | ƒ  ƒ t t d ƒ ƒ ƒ |  j  t | ƒ  ƒ t t d ƒ ƒ ƒ g  t d ƒ D] } | | f ^ qú} x\ | ƒ  | ƒ  | ƒ  f D]B }	 x9 | ƒ  | ƒ  | ƒ  f D] }
 |  j  t |	 |
 ƒ | ƒ qJWq+Wd  S(.   Ni   i   t   abR1   RN   i
   i*   i   i    Ra   Rb   Rc   t   IntsFromc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   R	   (   R
   t   start(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR   Ó  s    c         S   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/test_iter.pyR   Ö  s    c         S   s   |  j  } | d |  _  | S(   Ni   (   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_iter.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_iter.pyRƒ   Ò  s   		RY   s	   a
bbb
cc
RZ   iœÿÿÿs   a
s   bbb
i�ÿÿÿs   cc
ižÿÿÿi   t   NoGuessLen5c           B   s   e  Z d  „  Z RS(   c         S   s   | d k r t  ‚ n  | S(   Ni   (   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_iter.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_iter.pyR…   ó  s   t
   Guess3Len5c           B   s   e  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_iter.pyt   __len__ú  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_iter.pyR†   ù  s   t   Guess30Len5c           B   s   e  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_iter.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_iter.pyRˆ   ý  s   i   (   i   i   (   i   R1   (   i   RN   (   i    (   i   (   i   (   i    (   i   (   i   (    (   i    s   a
iœÿÿÿ(   i   s   bbb
i�ÿÿÿ(   i   s   cc
ižÿÿÿ(    (   R   t   zipR8   R9   RU   R    R   R   R}   Ry   R[   R   R\   R]   R   R^   RK   Rp   (   R
   RP   Rƒ   R_   R	   R…   R†   Rˆ   R€   R4   t   y(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_builtin_zipÀ  sR    "%!
8%%%%c         C   s   t  ƒ  � |  j ƒ  Wd  QXd  S(   N(   R   t   _test_builtin_reduce(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_deprecated_builtin_reduce  s    
c         C   s  d d l  m } |  j t | t d ƒ ƒ d ƒ |  j t | t d ƒ d ƒ d ƒ |  j t t | t d ƒ ƒ |  j t | t d ƒ d ƒ d ƒ |  j t | t d ƒ ƒ d ƒ |  j t | t d ƒ d ƒ d ƒ i d d	 6d
 d 6d d 6} |  j t | | ƒ d j | j ƒ  ƒ ƒ d  S(   Niÿÿÿÿ(   t   addi   i
   i*   i4   i    i   Ra   i   Rb   i   Rc   Rr   (	   t   operatorRŽ   R   t   reduceR   R8   R9   t   joinRV   (   R
   RŽ   RP   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyRŒ     s    """s   needs unicode supportc         C   s³   d d
 d „  ƒ  Y} t  t d ƒ } z | j d ƒ Wd  | j ƒ  Xt  t d ƒ } z/ d j | | ƒ ƒ } |  j | t d	 ƒ ƒ Wd  | j ƒ  y t t ƒ Wn t k
 r­ n XXd  S(   Nt   OhPhooeyc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   t  | ƒ |  _ d |  _ d  S(   Ni    (   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_iter.pyR   #  s    c         S   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/test_iter.pyR   '  s    c         S   s9   |  j  } | d |  _  | d k r, t d ƒ S|  j j ƒ  S(   Ni   i   s   fooled you!(   R	   RS   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_iter.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_iter.pyR’   "  s   		RY   s   a
s   b
s   c
RZ   s    - s   a
 - b
 - fooled you! - c
(    s   a
b
s   a
b
c
(	   R[   R   R\   R]   R‘   R   RS   R   R^   (   R
   R’   R_   t   got(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_unicode_join_endcase  s    
c      
   C   sh  xŠ t  d ƒ t d ƒ f D]p } x$ t d ƒ D] } |  j | | ƒ q, Wx@ d d d d d g  i d d 6d | f	 D] } |  j | | ƒ qo Wq W|  j t d	 „  ƒ |  j t d
 „  ƒ i d d 6d d 6d d 6d d 6} x4 | D], } |  j | | ƒ |  j | | j ƒ  ƒ qÜ Wx: | j ƒ  D], } |  j | | j ƒ  ƒ |  j | | ƒ qWxR | j	 ƒ  D]D \ } } |  j | | f | j	 ƒ  ƒ |  j | | f | j	 ƒ  ƒ qVWt
 t d ƒ } z | j d ƒ Wd  | j ƒ  Xt
 t d ƒ } zY xR d D]J } | j d d ƒ |  j | | ƒ | j d d ƒ |  j | d | ƒ qåWWd  | j ƒ  y t t ƒ Wn t k
 rbn XXd  S(   Ni   Rf   iÿÿÿÿgö(\�Â5E@i   i   i   y              (@c           S   s
   d d k S(   Ni   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/test_iter.pyRq   O  Rr   c           S   s
   d t  k 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_iter.pyRq   P  Rr   Ra   i   Rb   Rc   y               @y              ð?RY   s   a
b
c
RZ   i    s   
(   i   i   y      @      (À(   R   R   R    t   assertInt   assertNotInR8   R9   Ry   t   valuest	   iteritemsR[   R   R\   R]   Rd   R   R^   (   R
   t   sc5R	   RP   R(   t   vR_   t   chunk(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_in_and_not_inH  sB    /" 
c         C   s   d d l  m } |  j | d d d d d d g d ƒ d ƒ |  j | d d ƒ d ƒ |  j | d d ƒ d ƒ |  j | d d	 ƒ d
 ƒ |  j t | d d ƒ |  j t | | | ƒ i d d 6d d 6d d 6d d 6} x' | D] } |  j | | | ƒ d ƒ qÛ W|  j | | j ƒ  d ƒ d ƒ |  j | | j ƒ  d ƒ d ƒ |  j | | j ƒ  d ƒ d
 ƒ t t d ƒ } z | j d ƒ Wd  | j	 ƒ  Xt t d ƒ } zT xM d d d d f D]9 \ } } | j
 d
 d
 ƒ |  j | | | d ƒ | ƒ q®WWd  | j	 ƒ  y t t ƒ Wn t k
 rn XXd  S(   Niÿÿÿÿ(   t   countOfi   i   i   i   t   122325t   2t   6i    i*   Ra   Rb   Rc   y               @y              ð?RY   s   a
b
c
b
RZ   R1   RN   RO   RP   s   
(   i   i   i   i   i   i   (   R1   i   (   RN   i   (   RO   i   (   RP   i    (   R�   R�   R   R8   R9   Ry   R[   R   R\   R]   Rd   R   R^   (   R
   R�   RP   R(   R_   t   lettert   count(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_countOfq  s6    +"%
c      	   C   sZ  d d l  m } |  j | d d d d d d g d ƒ d ƒ |  j | d d ƒ d ƒ |  j | d d ƒ d ƒ |  j | d d ƒ d ƒ |  j t | d d ƒ |  j t | d d ƒ |  j | d	 d
 ƒ d ƒ |  j | d	 d ƒ d ƒ |  j t | d	 d ƒ |  j t | d d ƒ |  j t | | | ƒ t t d ƒ } z | j d ƒ Wd  | j	 ƒ  Xt t d ƒ } zq t
 | ƒ } |  j | | d ƒ d ƒ |  j | | d ƒ d ƒ |  j | | d ƒ d ƒ |  j t | | d ƒ Wd  | j	 ƒ  y t t ƒ Wn t k
 rn XXt d ƒ } x- t d ƒ D] } |  j | | | ƒ | ƒ qW|  j t | | d ƒ d  S(   Niÿÿÿÿ(   t   indexOfi   i   i   i   i    i   Rž   RŸ   t   5R    i*   RY   s
   a
b
c
d
e
RZ   s   b
s   d
s   e
s   a
(   i   i   i   i   i   i   (   i   i   i   i   i   i   (   i   i   i   i   i   i   (   i   i   i   i   i   i   (   i   i   i   i   i   i   (   R�   R¤   R   R8   t
   ValueErrorR9   R[   R   R\   R]   R   R   R^   R   R    (   R
   R¤   R_   t   fitert   iclassR	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_indexOf”  s@    +
c            sN  t  t d ƒ } z|  j t | j d  ƒ |  j t | j d ƒ | j d d g ƒ | j d ƒ | j i d  d 6ƒ | j i  ƒ d d d	 „  ƒ  Y‰  d
 d ‡  f d †  ƒ  Y} | j | d d ƒ ƒ | j ƒ  t  t ƒ } g  t d d ƒ D] } t | ƒ d ^ qç } |  j	 t
 | ƒ | ƒ Wd  | j ƒ  y t t ƒ Wn t k
 rHn XXd  S(   NRY   i*   s   1
s   2
s   3
s   4
s   5
t   Iteratorc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s"   | |  _  | |  _ |  j  |  _ d  S(   N(   R„   t   finishR	   (   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_iter.pyR   Ë  s    		c         S   sA   |  j  |  j k r t ‚ n  t |  j  ƒ d } |  j  d 7_  | S(   Ns   
i   (   R	   R«   R   t   str(   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_iter.pyR   Ð  s
    	c         S   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/test_iter.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_iter.pyRª   Ê  s   		t   Whateverc              s    e  Z d  „  Z ‡  f d †  Z RS(   c         S   s   | |  _  | |  _ d  S(   N(   R„   R«   (   R
   R„   R«   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR   Û  s    	c            s   ˆ  |  j  |  j ƒ S(   N(   R„   R«   (   R
   (   Rª   (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.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_iter.pyR®   Ú  s   	i   iÐ  i   iÖ  s   
(   s   3
s   4
(    (    iÖ  (   t   fileR   R8   R9   t
   writelinesRU   R]   R    R¬   R   R0   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_iter.pyt   test_writelines½  s(    
,
c         C   s(  d \ } } |  j  | | f d ƒ t d ƒ \ } } } |  j  | | | f d ƒ y t d ƒ \ } } Wn t k
 ry n X|  j d ƒ y t d ƒ \ } } } Wn t k
 r³ n X|  j d ƒ y t \ } } } Wn t k
 rç n X|  j d ƒ i d d 6d d 6d d 6j ƒ  \ } } } |  j  | | | f d ƒ t t d ƒ } d } z" x | D] } | j	 | ƒ qWWWd  | j
 ƒ  Xt t d ƒ } z, | \ } } } |  j  | | | f | ƒ Wd  | j
 ƒ  y t t ƒ Wn t k
 ræn XXt d ƒ i d d 6\ } } \ } |  j  | | | f d ƒ d  S(   Ni   i   i   i    s   should have raised ValueErrors   should have raised TypeErrori*   RY   s   a
s   bb
s   ccc
RZ   i   (   i   i   (   i   i   (   i    i   i   (   i*   i*   i*   (   s   a
s   bb
s   ccc
(   i    i   i*   (   R   R   R¦   RC   Rp   R9   Ry   R[   R   R\   R]   R   R^   (   R
   R1   RN   RO   R_   t   linest   line(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_unpack_iterò  sL    *
#c         C   s·   d t  f d „  ƒ  Y} | ƒ  } |  j | j d ƒ ~ |  j | j d ƒ | ƒ  | ƒ  | ƒ  g } |  j | j d ƒ y t | ƒ \ } } Wn t k
 rœ n X~ |  j | j d ƒ d  S(   NR;   c           B   s    e  Z d  Z d „  Z d „  Z RS(   i    c         S   s   |  j  d 7_  t j |  ƒ S(   Ni   (   R¢   R7   t   __new__(   t   cls(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyRµ   +  s    c         S   s   |  j  } | j d 8_ d  S(   Ni   (   t	   __class__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_iter.pyt   __del__.  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_iter.pyR;   )  s   	i   i    i   (   R7   R   R¢   R   R¦   (   R
   R;   R4   t   lR1   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/test_iter.pyt   test_ref_counting_behavior'  s    		c         C   sd   t  d ƒ } t | ƒ } |  j t | ƒ t  d ƒ ƒ | j t  d d ƒ ƒ |  j t | ƒ g  ƒ d  S(   Ni   i
   (   R    R   R   R0   t   extend(   R
   R1   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/test_iter.pyt   test_sinkstate_listD  s
    c         C   sH   d } t  | ƒ } |  j t | ƒ t d ƒ ƒ |  j t | ƒ g  ƒ d  S(   Ni    i   i   i   i   i   (   i    i   i   i   i   (   R   R   R0   R    (   R
   R1   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/test_iter.pyt   test_sinkstate_tupleL  s    c         C   sQ   d } t  | ƒ } |  j t | ƒ d d d d d g ƒ |  j t | ƒ g  ƒ d  S(   NRM   R1   RN   RO   RP   RQ   (   R   R   R0   (   R
   R1   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/test_iter.pyt   test_sinkstate_stringR  s    %c         C   sW   t  d ƒ } t | ƒ } |  j t | ƒ t d ƒ ƒ d | _ |  j t | ƒ g  ƒ d  S(   Ni   i
   (   R   R   R   R0   R    R   (   R
   R1   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/test_iter.pyt   test_sinkstate_sequenceX  s
    	c         C   sT   d g d „ } t  | d ƒ } |  j t | ƒ t d ƒ ƒ |  j t | ƒ g  ƒ d  S(   Ni    c         S   s4   |  d } | d |  d <| d k r0 t  d ‚ n  | S(   Ni    i   i
   s   shouldn't have gotten this far(   t   AssertionError(   R>   R	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR?   b  s
    
i   (   R   R   R0   R    (   R
   R?   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/test_iter.pyt   test_sinkstate_callable`  s    c         C   s    i d d 6d d 6d d 6d d 6d d 6} xp t  | ƒ | j ƒ  | j ƒ  | j ƒ  f D]D } t  | ƒ } |  j t t | ƒ ƒ d ƒ |  j t | ƒ g  ƒ qT Wd  S(   Ni   i   i    i   i   i   (   R   R~   R˜   Ry   R   Rp   R0   (   R
   R1   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/test_iter.pyt   test_sinkstate_dictl  s
    )1c         C   sH   d „  } | ƒ  } |  j  t | ƒ t d ƒ ƒ |  j  t | ƒ g  ƒ d  S(   Nc          s   s    x t  d ƒ D] }  |  Vq Wd  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_iter.pyt   genv  s    i   (   R   R0   R    (   R
   RÃ   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/test_iter.pyt   test_sinkstate_yieldu  s    		c         C   sN   t  d ƒ } t | ƒ } |  j t | ƒ t d ƒ ƒ |  j t | ƒ g  ƒ d  S(   Ni   (   RK   R   R   R0   R    (   R
   R1   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/test_iter.pyt   test_sinkstate_range}  s    c         C   si   t  d ƒ } t | ƒ } t | ƒ } |  j t | ƒ t t  d ƒ t  d ƒ ƒ ƒ |  j t | ƒ g  ƒ d  S(   Ni   (   R    t	   enumerateR   R   R0   R‰   (   R
   R1   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/test_iter.pyt   test_sinkstate_enumerateƒ  s
    +c            sL   d t  f ‡  f d †  ƒ  Y‰  y x ˆ  ƒ  D] } q) WWn t k
 rG n Xd  S(   Nt   BadIteratorc              s    e  Z d  „  Z ‡  f d †  Z RS(   c         S   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/test_iter.pyR   �  s    c            s
   ˆ  `  d S(   Ni   (   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_iter.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_iter.pyRÈ   Œ  s   	(   R7   R9   (   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_iter.pyt	   test_3720Š  s    c         C   sd   d „  } d g d } x! t  d ƒ D] } | j d ƒ q# W| j | ƒ  ƒ |  j t | ƒ d ƒ d  S(   Nc          s   s    x t  d ƒ D] }  |  Vq Wd  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_iter.pyRÃ   Ÿ  s    i    iô  ið   iø  (   R    t   popR»   R   Rp   (   R
   RÃ   t   lstR	   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt3   test_extending_list_with_iterator_does_not_segfault™  s    	c         C   s   t  |  t t d ƒ d  S(   Ni    (   i    (   R   R   R   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   test_free_after_iterating¨  s    (=   R   R   R   R   R!   R$   R%   R)   R*   R+   R,   R-   R.   R/   R5   R:   R=   R@   RA   RD   RF   RG   RH   RI   RJ   RL   RR   R   RT   RX   R`   Re   Rh   Rv   Rz   R�   R‹   R�   RŒ   t   unittestt
   skipUnlessR”   Rœ   R£   R©   R±   R´   R   Rº   R¼   R½   R¾   R¿   RÁ   RÂ   RÄ   RÅ   RÇ   RÉ   RÌ   RÍ   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyR   3   sp   						
											
												 	!	,	 	%	M		+	)	#	)	5	5												c           C   s   t  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_iter.pyt	   test_main¬  s    t   __main__(   RÎ   t   test.test_supportR    R   R   R   R   R   R   R&   R   R   R   R   RÐ   R   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_iter.pyt   <module>   s(   4$$$$$$$$*ÿ ÿ ÿ |	