ó
‹wÛjc           @   sÕ  d  d l  Z  d  d l m Z d  d l Td  d l Z d  d l m Z d  d l m Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l Z d  d l m Z y d  d l Z Wn e k
 rÇ e Z n Xe j Z e d Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d f  d „  ƒ  YZ d „  Z d „  Z d „  Z d e  j f d „  ƒ  YZ  d e  j f d „  ƒ  YZ! d e  j f d „  ƒ  YZ" d e  j f d „  ƒ  YZ# d „  Z$ d f  d „  ƒ  YZ% d f  d „  ƒ  YZ& d f  d  „  ƒ  YZ' d! f  d" „  ƒ  YZ( d# f  d$ „  ƒ  YZ) d% f  d& „  ƒ  YZ* d' f  d( „  ƒ  YZ+ d) „  Z, d* e  j f d+ „  ƒ  YZ- d, e  j f d- „  ƒ  YZ. d. e  j f d/ „  ƒ  YZ/ d0 e  j f d1 „  ƒ  YZ0 d2 Z1 i e1 d3 6Z2 e d4 „ Z3 e4 d5 k rÑe3 d6 e5 ƒ n  d S(7   iÿÿÿÿN(   t   test_support(   t   *(   t   Decimal(   t   Fraction(   t   reducei   c         C   s   d |  S(   s   Test function of one argumenti   (    (   t   x(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   onearg   s    c          G   s
   t  ‚ d S(   s"   Test function that raises an errorN(   t
   ValueError(   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_itertools.pyt   errfunc   s    c          c   s   x d D] }  |  Vq Wd S(   s   Non-restartable source sequencei    i   i   N(   i    i   i   (    (   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/test_itertools.pyt   gen3   s    c         C   s   |  d d k S(   s   Test predicatei   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/test_itertools.pyt   isEven!   s    c         C   s   |  d d k S(   s   Test predicatei   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/test_itertools.pyt   isOdd%   s    t   StopNowc           B   s    e  Z d  Z d „  Z d „  Z RS(   s"   Class emulating an empty iterable.c         C   s   |  S(   N(    (   t   self(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   __iter__+   s    c         C   s
   t  ‚ d  S(   N(   t   StopIteration(   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   next-   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/test_itertools.pyR   )   s   	c         C   s   t  t | |  ƒ ƒ S(   sH   Convenience function for partially consuming a long of infinite iterable(   t   listt   islice(   t   nt   seq(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   take0   s    c         C   s   t  t j |  d ƒ S(   Ni   (   R   t   operatort   mul(   t   iterable(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   prod4   s    c         C   s   t  t d |  d ƒ ƒ S(   t	   Factoriali   (   R   t   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_itertools.pyt   fact7   s    t   TestBasicOpsc           B   s÷  e  Z d  „  Z d „  Z d „  Z e j d „  ƒ Z e j d ƒ d „  ƒ Z	 d „  Z
 e j d „  ƒ Z e j d ƒ d „  ƒ Z d	 „  Z e j d
 „  ƒ Z e j d ƒ d „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j d ƒ d „  ƒ Z d „  Z e j d ƒ d „  ƒ Z d „  Z d „  Z e j d „  ƒ Z e j d ƒ d „  ƒ Z d „  Z  d „  Z! d „  Z" d „  Z# d  „  Z$ d! „  Z% d" „  Z& d# „  Z' d$ „  Z( d% „  Z) e* j+ e, d& ƒ d' „  ƒ Z- d( „  Z. RS()   c         C   sË   d „  } x» t  | f D]­ } |  j t | d d ƒ ƒ t d ƒ ƒ |  j t | d ƒ ƒ t d ƒ ƒ |  j t | d ƒ ƒ g  ƒ |  j t d | d d ƒ ƒ t d ƒ ƒ |  j t t | d d	 ƒ ƒ q Wd  S(
   Nc          w   s+   x$ |  D] } x | D] } | Vq Wq Wd S(   s   Pure python version in the docsN(    (   t	   iterablest   itt   element(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   chain2>   s    t   abct   deft   abcdeft    i   t   abcdi   i   (   t   chaint   assertEqualR   R   t   assertRaisest	   TypeError(   R   R&   t   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/test_itertools.pyt
   test_chain<   s    	%"(c         C   sÉ   |  j  t t j d d g ƒ ƒ t d ƒ ƒ |  j  t t j d g ƒ ƒ t d ƒ ƒ |  j  t t j d g ƒ ƒ g  ƒ |  j  t d t j d d g ƒ ƒ t d ƒ ƒ |  j t t t j d d g ƒ ƒ d  S(	   NR'   R(   R)   R*   i   R+   i   i   (   R-   R   R,   t   from_iterableR   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_itertools.pyt   test_chain_from_iterableK   s
    +(".c   
   	      sÄ  |  j  t t d ƒ |  j  t t d d d ƒ |  j  t t d  ƒ |  j  t t d d ƒ |  j t t d d ƒ ƒ g  ƒ |  j t t t d ƒ d ƒ ƒ d d d d g ƒ d	 „  } d
 „  } d „  } xýt d ƒ D]ï} g  t | ƒ D] } d | d ^ qà ‰  x¿t | d ƒ D]­} t t ˆ  | ƒ ƒ } |  j t | ƒ | | k rGd n! t	 | ƒ t	 | ƒ t	 | | ƒ ƒ |  j t | ƒ t t
 | ƒ ƒ ƒ |  j | t | ƒ ƒ x´ | D]¬ } |  j t | ƒ | ƒ |  j t t
 | ƒ ƒ | ƒ |  j t | ƒ t | ƒ ƒ |  j t ‡  f d †  | Dƒ ƒ ƒ |  j t | ƒ g  ˆ  D] }	 |	 | k r8|	 ^ q8ƒ q«W|  j | t | ˆ  | ƒ ƒ ƒ |  j | t | ˆ  | ƒ ƒ ƒ |  j | t | ˆ  | ƒ ƒ ƒ qWqÍ Wd  S(   NR'   i   i   iþÿÿÿi    i   i   i    c         3   sö   t  |  ƒ ‰  t ˆ  ƒ } | | k r( d St | ƒ } t  ‡  f d †  | Dƒ ƒ Vx  x: t t | ƒ ƒ D]" } | | | | | k re Pqe qe Wd S| | c d 7<x1 t | d | ƒ D] } | | d d | | <q³ Wt  ‡  f d †  | Dƒ ƒ VqR Wd S(   s%   Pure python version shown in the docsNc         3   s   |  ] } ˆ  | Vq d  S(   N(    (   t   .0R
   (   t   pool(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>b   s    i   c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>l   s    (   t   tuplet   lenR    t   reversed(   R   t   rR   t   indicesR
   t   j(    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   combinations1[   s    c         3   sr   t  |  ƒ ‰  t ˆ  ƒ } xS t t | ƒ | ƒ D]< } t | ƒ t | ƒ k r. t  ‡  f d †  | Dƒ ƒ Vq. q. Wd S(   s%   Pure python version shown in the docsc         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>t   s    N(   R6   R7   t   permutationsR    t   sortedR   (   R   R9   R   R:   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   combinations2n   s
    c         3   sr   t  |  ƒ ‰  t ˆ  ƒ } xS t t | ƒ | ƒ D]< } t t | ƒ ƒ | k r. t  ‡  f d †  | Dƒ ƒ Vq. q. Wd S(   s   Pure python version from cwr()c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>|   s    N(   R6   R7   t   combinations_with_replacementR    t   set(   R   R9   R   R:   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   combinations3v   s
    i   i   i   c         3   s   |  ] } | ˆ  k Vq d  S(   N(    (   R4   t   e(   t   values(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>‰   s    (   i    i   i   (   i    i   i   (   i    i   i   (   i   i   i   (   R.   R/   t   combinationst   NoneR   R-   R   R    R7   R!   RA   R>   t
   assertTruet   all(
   R   R<   R?   RB   R   R   R9   t   resultR0   RC   (    (   RD   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_combinationsR   s6    			'F"#*c         C   s-   |  j  t t f ƒ � t d d ƒ Wd  QXd  S(   Nt   AAi   i   i    (   R.   t   OverflowErrort   MemoryErrorRE   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_combinations_overflow�   s    s"   tuple reuse is specific to CPythonc      	   C   sf   |  j  t t t t t d d ƒ ƒ ƒ ƒ d ƒ |  j t t t t t t d d ƒ ƒ ƒ ƒ ƒ d ƒ d  S(   Nt   abcdei   i   (   R-   R7   RA   t   mapt   idRE   t   assertNotEqualR   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_combinations_tuple_reuse•   s    .c      	      sé  t  } |  j t | d ƒ |  j t | d d d ƒ |  j t | d  ƒ |  j t | d d ƒ |  j t | d d ƒ ƒ d d d d d d g ƒ d	 „  } d
 „  } d „  } x;t d ƒ D]-} g  t | ƒ D] } d | d ^ qÇ ‰  xýt | d ƒ D]ë} t | ˆ  | ƒ ƒ } |  j t | ƒ | | | ƒ ƒ |  j t | ƒ t t	 | ƒ ƒ ƒ |  j | t
 | ƒ ƒ t t ˆ  | ƒ ƒ }	 | d k s‘| d k r¤|  j | |	 ƒ n |  j t	 | ƒ t	 |	 ƒ k ƒ xÙ | D]Ñ }
 |  j t |
 ƒ | ƒ g  t |
 ƒ D] \ } } | ^ qó} |  j t | ƒ t t	 | ƒ ƒ ƒ |  j t |
 ƒ t
 |
 ƒ ƒ |  j t ‡  f d †  |
 Dƒ ƒ ƒ |  j | g  ˆ  D] } | |
 k r|| ^ q|ƒ qÊW|  j | t | ˆ  | ƒ ƒ ƒ |  j | t | ˆ  | ƒ ƒ ƒ qò Wq´ Wd  S(   NR'   i   i   iþÿÿÿt   ABCt   At   Bt   Cc         3   sÍ   t  |  ƒ ‰  t ˆ  ƒ } | r) | r) d Sd g | } t  ‡  f d †  | Dƒ ƒ Vxu x6 t t | ƒ ƒ D] } | | | d k rg Pqg qg Wd S| | d g | | | | )t  ‡  f d †  | Dƒ ƒ VqT Wd S(   s%   Pure python version shown in the docsNi    c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>«   s    i   c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>³   s    (   R6   R7   R8   R    (   R   R9   R   R:   R
   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   cwr1£   s    c         3   su   t  |  ƒ ‰  t ˆ  ƒ } xV t t | ƒ d | ƒD]< } t | ƒ t | ƒ k r1 t  ‡  f d †  | Dƒ ƒ Vq1 q1 Wd S(   s%   Pure python version shown in the docst   repeatc         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>»   s    N(   R6   R7   t   productR    R>   R   (   R   R9   R   R:   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   cwr2µ   s
    c         S   s>   |  s | r d Sd St  |  | d ƒ t  | ƒ t  |  d ƒ S(   Ni    i   (   R!   (   R   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   numcombs½   s    i   i   i   i    c         3   s   |  ] } | ˆ  k Vq d  S(   N(    (   R4   RC   (   RD   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>Ö   s    (   RU   RU   (   RU   RV   (   RU   RW   (   RV   RV   (   RV   RW   (   RW   RW   (   R@   R.   R/   RF   R   R-   R   R    R7   RA   R>   RE   RG   t   groupbyRH   (   R   t   cwrRX   R[   R\   R   R   R9   RI   t   regular_combsR0   t   kt   vt   norunsRC   (    (   RD   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt"   test_combinations_with_replacementš   s>    			'"%"#	*c         C   s-   |  j  t t f ƒ � t d d ƒ Wd  QXd  S(   NRK   i   i   i   @(   R.   RL   RM   R@   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt+   test_combinations_with_replacement_overflowÜ   s    c      	   C   sl   t  } |  j t t t t | d d ƒ ƒ ƒ ƒ d ƒ |  j t t t t t | d d ƒ ƒ ƒ ƒ ƒ d ƒ d  S(   NRO   i   i   (   R@   R-   R7   RA   RP   RQ   RR   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_itertools.pyt.   test_combinations_with_replacement_tuple_reuseá   s    .c      	      sª  |  j  t t ƒ |  j  t t d d d ƒ |  j  t t d  ƒ |  j  t t d d ƒ |  j t t d d ƒ ƒ g  ƒ |  j  t t d d ƒ |  j t t t d ƒ d ƒ ƒ d d d d d d g ƒ d  d	 „ } d  d
 „ } xÍt d ƒ D]¿} g  t | ƒ D] } d | d ^ qö ‰  x�t | d ƒ D]}} t t ˆ  | ƒ ƒ } |  j t | ƒ | | k r]d n t	 | ƒ t	 | | ƒ ƒ |  j t | ƒ t t
 | ƒ ƒ ƒ |  j | t | ƒ ƒ xc | D][ } |  j t | ƒ | ƒ |  j t t
 | ƒ ƒ | ƒ |  j t ‡  f d †  | Dƒ ƒ ƒ q·W|  j | t | ˆ  | ƒ ƒ ƒ |  j | t | ˆ  | ƒ ƒ ƒ | | k r!|  j | t t ˆ  d  ƒ ƒ ƒ |  j | t t ˆ  ƒ ƒ ƒ q!q!Wqã Wd  S(   NR'   i   i   iþÿÿÿi    t   si   i    c         3   sN  t  |  ƒ ‰  t ˆ  ƒ } | d k r* | n | } | | k r@ d St | ƒ } t | | | d ƒ } t  ‡  f d †  | |  Dƒ ƒ VxÆ | rIx¹ t t | ƒ ƒ D]¡ } | | c d 8<| | d k rõ | | d | | | d !| | )| | | | <q� | | } | | | | | | <| | <t  ‡  f d †  | |  Dƒ ƒ VPq� Wd Sq„ Wd S(   s%   Pure python version shown in the docsNiÿÿÿÿc         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>ú   s    i   i    c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>  s    (   R6   R7   RF   R    R8   (   R   R9   R   R:   t   cyclesR
   R;   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   permutations1ñ   s&    	!
c         3   s�   t  |  ƒ ‰  t ˆ  ƒ } | d k r* | n | } xV t t | ƒ d | ƒD]< } t t | ƒ ƒ | k rI t  ‡  f d †  | Dƒ ƒ VqI qI Wd S(   s%   Pure python version shown in the docsRY   c         3   s   |  ] } ˆ  | Vq d  S(   N(    (   R4   R
   (   R5   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>  s    N(   R6   R7   RF   RZ   R    RA   (   R   R9   R   R:   (    (   R5   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   permutations2	  s    i   i   i   c         3   s   |  ] } | ˆ  k Vq d  S(   N(    (   R4   RC   (   RD   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>  s    (   i    i   (   i    i   (   i   i    (   i   i   (   i   i    (   i   i   (   R.   R/   R=   RF   R   R-   R   R    R7   R!   RA   R>   RG   RH   (   R   Rh   Ri   R   R   R9   RI   t   p(    (   RD   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_permutationsç   s4    	'<"'c         C   s-   |  j  t t f ƒ � t d d ƒ Wd  QXd  S(   NRU   i   i   i   @(   R.   RL   RM   R=   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_permutations_overflow#  s    c      	   C   sf   |  j  t t t t t d d ƒ ƒ ƒ ƒ d ƒ |  j t t t t t t d d ƒ ƒ ƒ ƒ ƒ d ƒ d  S(   NRO   i   i   (   R-   R7   RA   RP   RQ   R=   RR   R   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_permutations_tuple_reuse(  s    .c   	   	   C   s>  x7t  d ƒ D])} d |  } xt  d ƒ D]} t t | d | ƒƒ } t t | | ƒ ƒ } t t | | ƒ ƒ } t t | | ƒ ƒ } |  j t | ƒ | | ƒ |  j t | ƒ | râ t | | d ƒ t | ƒ t | d ƒ n | ƒ |  j t | ƒ | | k rd n t | ƒ t | | ƒ ƒ |  j t | ƒ | | k rGd n! t | ƒ t | ƒ t | | ƒ ƒ |  j | t	 t
 | ƒ ƒ ƒ |  j | t	 t
 | ƒ ƒ ƒ |  j | t	 t
 | ƒ ƒ ƒ |  j | t	 t
 | ƒ ƒ ƒ |  j | g  | D]$ } t	 | ƒ t | ƒ k rì| ^ qìƒ |  j | g  | D]$ } t t
 | ƒ ƒ | k r'| ^ q'ƒ |  j | g  | D]$ } t	 | ƒ t | ƒ k rb| ^ qbƒ |  j | g  | D]$ } t t
 | ƒ ƒ | k r�| ^ q�ƒ |  j | t t
 | ƒ j | ƒ ƒ |  j | t t
 | ƒ j | ƒ ƒ |  j | t	 t
 | ƒ t
 | ƒ @ƒ ƒ q* Wq Wd  S(   Ni   t   ABCDEFGi   RY   i   i    (   R    R   RZ   R@   R=   RE   R-   R7   R!   R>   RA   t   filtert   __contains__(	   R   R   Rf   R9   R   R^   t   permt   combt   t(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_combinatorics-  s,    
I<F;;;;""c         C   s  |  j  t t d d d d d d d d d g ƒ ƒ t d ƒ ƒ |  j  t t d d d d d d d g ƒ ƒ t d ƒ ƒ |  j  t t d d d d d d d g ƒ ƒ t d ƒ ƒ |  j  t t d d d d d d d g ƒ ƒ t d ƒ ƒ |  j  t t d d d d g ƒ ƒ t d ƒ ƒ |  j  t t d	 d d d d d d g ƒ ƒ t d
 ƒ ƒ d } t j t t d ƒ | ƒ ƒ } t j t d ƒ ƒ } |  j  t t | | ƒ ƒ d d d g | ƒ |  j t t d  t d ƒ ƒ |  j t t t d ƒ d  ƒ |  j t t t d ƒ ƒ |  j t t t d ƒ d  ƒ d  S(   Nt   datat   ABCDEFt	   selectorsi   i    t   ACEFR*   t   ACRT   t   BCi'  i   i   i   (   i    i   (
   R-   R   t   compressR,   R2   RY   R    R.   R/   RF   (   R   R   Ru   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/test_itertools.pyt   test_compressN  s    =777.7,c      	   C   s°  |  j  t d t ƒ  ƒ d% d& d' g ƒ |  j  t d t d ƒ ƒ d( d) d* g ƒ |  j  t d t d t d ƒ ƒ ƒ d+ d, g ƒ |  j  t d t d t d ƒ ƒ ƒ d- d. g ƒ |  j  t d t d t d ƒ ƒ ƒ d/ d0 g ƒ |  j t t d d d	 ƒ |  j t t d ƒ |  j  t d t t d
 ƒ ƒ t t d
 t d
 ƒ ƒ |  j  t d t t d
 ƒ ƒ t t d
 t d
 ƒ ƒ |  j  t d t d ƒ ƒ d d d g ƒ |  j  t d t d1 ƒ ƒ d2 d3 d4 g ƒ |  j  t d t t d ƒ ƒ ƒ t d ƒ t d ƒ t d ƒ g ƒ |  j  t d t t	 d d ƒ ƒ ƒ t	 d d ƒ t	 d
 d ƒ t	 d d ƒ g ƒ d5 } |  j  t d t | ƒ ƒ | | d | d g ƒ t d ƒ } |  j  t
 | ƒ d ƒ | j ƒ  |  j  t
 | ƒ d ƒ t d ƒ } |  j  t
 | ƒ d ƒ | j ƒ  |  j  t | ƒ d ƒ |  j  t
 t d ƒ ƒ d ƒ |  j  t
 t d ƒ ƒ d  ƒ |  j  t t t d ƒ ƒ ƒ t ƒ x� t j d
 t j d
 d! d d d t j d
 t j d
 f D]O } t
 t | ƒ ƒ j d" d# ƒ } d$ j | ƒ j d" d# ƒ } |  j  | | ƒ q›Wx» d d t j d
 t j d
 f D]™ } t | ƒ } |  j  t t j | ƒ ƒ | ƒ |  j  t t j | ƒ ƒ | ƒ xF t t j d ƒ D]1 } |  j  t t j t j | | ƒ ƒ ƒ | ƒ qsWqWd  S(6   NR'   t   ai    t   bi   R0   i   i   i   i   iÿÿÿÿiýÿÿÿiþÿÿÿi
   g      
@g      @g      @y              @s   1.1s   2.1s   3.1i   iè  s   count(3)s   count(4)i÷ÿÿÿs	   count(-9)iøÿÿÿg     €$@s   count(10.25)g      $@s   count(10.0)iöÿÿÿt   LR*   s	   count(%r)(   R}   i    (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R}   iÿÿÿÿ(   R~   i    (   R}   iýÿÿÿ(   R~   iþÿÿÿy      
@      Ày      
@      Ày      @      Ày      @      ÀlC                                                                                                                                        (   R-   t   zipt   countR   R.   R/   t   maxsizeR    R   R   t   reprR   t   typet   floatt   syst   maxintt   replacet   __mod__t   copyt   deepcopyt   picklet   HIGHEST_PROTOCOLt   loadst   dumps(   R   t   BIGINTR0   R
   t   r1t   r2t   valuet   proto(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt
   test_count^  sL    %(...47(("!+0

"C'c         C   sQ  |  j  t d t d d ƒ ƒ d: d; d< g ƒ |  j  t d t d	 d d
 d ƒ ƒ d= d> d? g ƒ |  j  t d t d
 d ƒ ƒ d@ dA dB g ƒ |  j t t d d ƒ |  j  t d t d d ƒ ƒ dC dD dE g ƒ |  j  t d t d d ƒ ƒ dF dG dH g ƒ |  j  t d t d d ƒ ƒ dI dJ dK g ƒ |  j  t d t d d ƒ ƒ dL dM dN g ƒ |  j  t d t d d ƒ ƒ dO dP dQ g ƒ |  j  t d t t d d ƒ ƒ t d t t d t d d ƒ ƒ ƒ |  j  t d t t d d ƒ ƒ t d t t d t d d ƒ ƒ ƒ |  j  t d t d t d ƒ ƒ t d d d t d t d ƒ ƒ |  j  t d t d d ƒ ƒ d d d g ƒ |  j  t d t d dR ƒ ƒ d dS dT g ƒ |  j  t d t t d ƒ t d ƒ ƒ ƒ t d ƒ t d ƒ t d  ƒ g ƒ |  j  t d t t	 d d ƒ t	 d d! ƒ ƒ ƒ t	 d d ƒ t	 d" d# ƒ t	 d d# ƒ g ƒ dU } |  j  t d t d
 | ƒ ƒ d | d | g ƒ |  j  t
 t d t d d% ƒ ƒ ƒ t
 d d& d' g ƒ ƒ t d d ƒ } |  j  t
 | ƒ d( ƒ | j ƒ  |  j  t
 | ƒ d) ƒ t d* d ƒ } |  j  t
 | ƒ d+ ƒ | j ƒ  |  j  t
 | ƒ d+ ƒ t d* d, ƒ } |  j  t
 | ƒ d- ƒ | j ƒ  |  j  t
 | ƒ d. ƒ |  j  t
 | ƒ d. ƒ |  j  t
 t d/ d ƒ ƒ d0 ƒ |  j  t
 t d/ d ƒ ƒ d1 ƒ |  j  t
 t d/ d2 ƒ ƒ d3 ƒ |  j  t
 t d d2 ƒ ƒ d4 ƒ t d d2 ƒ } |  j  t t | ƒ ƒ t ƒ |  j  t t | ƒ ƒ t ƒ x t j d t j d d5 d d d t j d t j d f D]Â } x¹ t j d t j d d5 d d d d t j d t j d f	 D]x } t
 t | | ƒ ƒ j d6 d7 ƒ } | d k rd8 | j d6 d7 ƒ } n d9 | | f j d6 d7 ƒ } |  j  | | ƒ qÍWq‡Wd  S(V   NR'   i   i   R}   R~   i   R0   i   t   startt   stepiÿÿÿÿi    iþÿÿÿi   i   l    l    i   i   id   i
   g      ô?g      
@g      @y              @g      @g      !@y               @s   1.1s   .1s   1.2s   1.3i   i   i   iè  g      @g      )@g      .@s   count(3, 5)s   count(8, 5)i÷ÿÿÿs   count(-9, 0)iýÿÿÿs   count(-9, -3)s   count(-12, -3)g      %@s   count(10.5, 1.25)s   count(10.5)g      ð?s   count(10.5, 1.0)s   count(10, 1.0)iöÿÿÿR   R*   s	   count(%r)s   count(%r, %r)(   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   (   R}   i    (   R~   iÿÿÿÿ(   R0   iþÿÿÿ(   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   (   R}   i   (   R~   i   (   R0   i   y      
@      Ày      @      Ày      !@       ÀlC                                                                                                                                        (   R-   R€   R�   R.   R/   R   R‚   R    R   R   Rƒ   R   R„   t   intR…   R†   R‡   Rˆ   (   R   R�   R0   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_itertools.pyt   test_count_with_stride‰  sf    +!+++++CF#++'"-+/7


CF!c         C   s®   |  j  t d t d ƒ ƒ t d ƒ ƒ |  j  t t d ƒ ƒ g  ƒ |  j t t ƒ |  j t t d ƒ |  j  t t t t ƒ  ƒ d ƒ ƒ d d d d d d d d d d g
 ƒ d  S(	   Ni
   R'   t
   abcabcabcaR*   i   i    i   i   (   R-   R   t   cycleR   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_itertools.pyt
   test_cycleÀ  s
    %c      
      sÂ  |  j  g  t t g  ƒ ƒ ƒ |  j  g  t t g  d t ƒƒ ƒ |  j t t t d g  ƒ ƒ |  j t t d  ƒ |  j t t d d „  d ƒ d( d) d* d+ d, d- d. d/ g } g  } xR t | d „  ƒ D]> \ } } x/ | D]' } |  j  | | d ƒ | j | ƒ qÓ WqÀ W|  j  | | ƒ g  } x‰ t | d „  ƒ D]u \ } } xf t | d „  ƒ D]R \ } } xC | D]; } |  j  | | d ƒ |  j  | | d ƒ | j | ƒ q]WqJWq+W|  j  | | ƒ g  t | d „  ƒ D] \ } } | ^ qÇ} t g  | D] }	 |	 d ^ qéƒ }
 |  j  t | ƒ |
 ƒ |  j  t	 | ƒ t	 |
 ƒ ƒ d } g  t t
 | ƒ ƒ D] \ } } | ^ qM}	 |  j  |	 d d d d d g ƒ g  t t
 | ƒ ƒ D]* \ } } t t | d
 d ƒ ƒ r—| ^ q—}	 |  j  |	 d d d g ƒ g  t t
 | ƒ ƒ D]$ \ } } t	 t | ƒ ƒ | f ^ qó}	 |  j  |	 d0 d1 d2 d3 d4 g ƒ t
 g  t t
 | ƒ ƒ D]$ \ } } t	 t | ƒ ƒ | f ^ qRd t ƒd  }	 |  j  |	 d5 d6 d7 g ƒ d  t f d! „  ƒ  Y‰  d ‡  f d" † } d  t d# „ } |  j ˆ  | | d ƒ ƒ |  j ˆ  | | d
 ƒ ƒ d$ d8 ‡  f d% †  ƒ  Y} | ƒ  | ƒ  d  g } |  j ˆ  | | d& t ƒ|  j ˆ  | | ƒ ‡  ‡ f d' †  ‰ d ˆ _ |  j ˆ  | d  g ˆ ƒ d
 ˆ _ |  j ˆ  | d  d  g ˆ ƒ d  S(9   Nt   keyR'   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_itertools.pyt   <lambda>Í  R*   i
   i    i   i   i   i   i   i   i   i   i   i   i   i   i   i   c         S   s   |  d S(   Ni    (    (   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRž   Ó  R*   c         S   s   |  d S(   Ni    (    (   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRž   Û  R*   c         S   s   |  d S(   Ni   (    (   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRž   Ü  R*   c         S   s   |  d S(   Ni    (    (   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRž   ä  R*   t   abracadabraR}   R~   R0   t   dR9   i   t   reverset   ExpectedErrorc           B   s   e  Z RS(    (   R   R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR¢   ù  s   c         3   s&   x t  |  ƒ D] } d Vq Wˆ  ‚ d  S(   Nt   yo(   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_itertools.pyt   delayed_raiseû  s    	c         S   s,   g  t  |  | ƒ D] \ } } | | ƒ ^ q S(   N(   R]   (   R   t   keypt   funcR`   t   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/test_itertools.pyt   gulpÿ  s    t   DummyCmpc              s   e  Z ‡  f d  †  Z RS(   c            s
   ˆ  ‚ d  S(   N(    (   R   t   dst(   R¢   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   __cmp__	  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_itertools.pyR©     s   R¦   c            s,   ˆ j  d k r" ˆ j  d 8_  |  Sˆ  ‚ d  S(   Ni    i   (   t   skip(   t   obj(   R¢   t   keyfunc(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR®     s    (   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}   (   i   R~   (   i   R0   (   i   R    (   i   R9   (   i   R}   (   i   R9   (   i   R~   (    (   R-   R   R]   RQ   R.   R/   RF   t   appendRA   R7   R>   R   t   Truet	   ExceptionR¬   (   R   Rf   t   dupR`   R§   t   elemt   ikt   igt   keysR9   t   expectedkeysR¤   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_itertools.pyt   test_groupbyÇ  s`    "+#+C=M		c      	   C   sQ  |  j  t t t t d ƒ ƒ ƒ d d d g ƒ |  j  t t d  d d d d d g ƒ ƒ d d g ƒ |  j  t t t d d d d d g ƒ ƒ d d g ƒ |  j  t d t t t ƒ  ƒ ƒ d d d d g ƒ |  j	 t
 t ƒ |  j	 t
 t d „  ƒ |  j	 t
 t d „  t d ƒ d ƒ |  j	 t
 t t d	 ƒ |  j	 t
 t t d ƒ t d ƒ ƒ j ƒ d  S(
   Ni   i    i   i   i   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_itertools.pyRž   &  R*   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_itertools.pyRž   '  R*   i   i   (   R-   R   t   ifilterR   R    RF   t   boolR   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_itertools.pyt   test_ifilter   s    .441"c      	   C   sW  |  j  t t t t d ƒ ƒ ƒ d d d g ƒ |  j  t t d  d d d d d g ƒ ƒ d d d g ƒ |  j  t t t d d d d d g ƒ ƒ d d d g ƒ |  j  t d t t t ƒ  ƒ ƒ d d d d g ƒ |  j	 t
 t ƒ |  j	 t
 t d	 „  ƒ |  j	 t
 t d
 „  t d ƒ d ƒ |  j	 t
 t t d ƒ |  j	 t
 t t d ƒ t d ƒ ƒ j ƒ d  S(   Ni   i   i   i   i    i   i   i   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_itertools.pyRž   1  R*   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_itertools.pyRž   2  R*   (   R-   R   t   ifilterfalseR   R    RF   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_itertools.pyt   test_ifilterfalse+  s    .771"c         C   sÍ  g  t  d t ƒ  ƒ D] \ } } | | f ^ q } |  j | d d d g ƒ |  j t t  d t d ƒ ƒ ƒ t d t d ƒ ƒ ƒ |  j t t  d	 t d
 ƒ ƒ ƒ t d	 t d
 ƒ ƒ ƒ |  j t d
 t  d	 t ƒ  ƒ ƒ t d	 t d
 ƒ ƒ ƒ |  j t t  d	 ƒ ƒ t d	 ƒ ƒ |  j t t  ƒ  ƒ t ƒ  ƒ |  j t t  d
 ƒ |  j t t  t d
 ƒ d
 ƒ |  j g  t  d d ƒ D] } t	 t | ƒ ƒ ^ qit d d ƒ ƒ |  j g  t  d d ƒ D] } | ^ qªt d d ƒ ƒ d  S(   NR'   R}   i    R~   i   R0   i   i   R)   i   R(   (   R}   i    (   R~   i   (   R0   i   (
   t   izipR�   R-   R   R    R€   R   R.   R/   R6   (   R   R   t   yt   anst   pair(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt	   test_izip6  s    1444"1%c         C   s{   t  t t d d ƒ ƒ } |  j t | ƒ t | ƒ ƒ t  t t t d d ƒ ƒ ƒ } |  j t t j	 | ƒ ƒ t | ƒ ƒ d  S(   NR'   R(   (
   RP   RQ   R¾   R-   t   mint   maxR   R7   t   dictt   fromkeys(   R   t   ids(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_izip_tuple_reuseE  s    c         C   s|  x®d t  d ƒ g t  d ƒ d g t  d ƒ t  d d ƒ t  d d ƒ g t  d ƒ t  d ƒ t  d d ƒ t  d	 ƒ t  d
 ƒ g t  d ƒ t  d ƒ t  d d ƒ t  d	 ƒ t  d
 ƒ t  d ƒ g g D]õ } g  t  t t t | ƒ ƒ ƒ D]A } t g  | D]( } | t | ƒ k  r| | n d  ^ qê ƒ ^ qÚ } |  j t t | Œ  ƒ | ƒ |  j t t | i  Ž  ƒ | ƒ g  | D] } t d „  | Dƒ ƒ ^ qc} |  j t t | t	 d d ƒ Ž  ƒ | ƒ q¸ W|  j t
 d t d t ƒ  ƒ ƒ t d t  d ƒ ƒ ƒ |  j t t ƒ  ƒ t ƒ  ƒ |  j t t g  ƒ ƒ t g  ƒ ƒ |  j t t d ƒ ƒ t d ƒ ƒ |  j t t d d i  � ƒ t t d ƒ d  g d ƒ ƒ |  j t t d ƒ |  j t t t  d ƒ d ƒ xS d d g D]E } y t | t ƒ  t ƒ  ƒ Wn t k
 rìq¹X|  j d | ƒ q¹W|  j g  t d d ƒ D] } t t | ƒ ƒ ^ qt d d ƒ ƒ |  j g  t d d ƒ D] } | ^ qYt d d ƒ ƒ d  S(   NR'   i   iè  iÐ  i4  i¸  iê  i    i°  iÜ  c         s   s'   |  ] } | d k r d  p | Vq d S(   t   XN(   RF   (   R4   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/test_itertools.pys	   <genexpr>Z  s    t	   fillvalueRÉ   i   R)   t   defgs   izip_longest('abc', fv=1)s4   izip_longest('abc', fillvalue=1, bogus_keyword=None)s   Did not raise Type in:  R(   (   R    RÄ   RP   R7   R6   RF   R-   R   t   izip_longestRÅ   R   R�   R€   R.   R/   t   evalt   globalst   localst   fail(   R   R   R
   t   argt   targetRs   t   stmtRÁ   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_iziplongestL  s@    $3F`),4""1%c         C   s{   t  t t d d ƒ ƒ } |  j t | ƒ t | ƒ ƒ t  t t t d d ƒ ƒ ƒ } |  j t t j	 | ƒ ƒ t | ƒ ƒ d  S(   NR'   R(   (
   RP   RQ   RÌ   R-   RÃ   RÄ   R   R7   RÅ   RÆ   (   R   RÇ   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_izip_longest_tuple_reusex  s    c         C   sú   d t  f d „  ƒ  Y} | d d t ƒ } | d d t ƒ } d „  } |  j | | | ƒ d
 d d d g ƒ | d d t ƒ } | d d t ƒ } t | | d	 d ƒ} |  j t | ƒ d ƒ |  j t | ƒ d ƒ |  j t | ƒ d ƒ |  j t t | ƒ d  S(   Nt   Repeaterc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s%   | |  _  t | ƒ |  _ | |  _ d  S(   N(   t   oR˜   Rs   RC   (   R   R×   Rs   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/test_itertools.pyt   __init__ƒ  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_itertools.pyR   ‡  s    c         S   s2   |  j  d k r% |  j  d 8_  |  j S|  j ‚ d  S(   Ni    i   (   Rs   R×   RC   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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_itertools.pyRÖ   �  s   		i   i   i   i   c         S   sd   g  } xW t  |  | d d ƒD]@ \ } } t j d ƒ � | | f GHWd  QX| j | | f ƒ q W| S(   NRÊ   i    t   stdout(   RÌ   R    t   captured_outputR¯   (   R‘   R’   RI   R
   R;   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   run”  s    "i    RÊ   (   i   i   (   i   i   (   i   i   (   i    i   (   i   i   (   i   i   (   i   i   (   t   objectR   R-   t   RuntimeErrorRÌ   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_itertools.pyt   test_bug_7244  s    	%c   
      C   sô  x6g  d g f d g d d g f t  d ƒ t  d ƒ g d d d d d d g f t  d ƒ t  d ƒ t  d ƒ g g  f t  d ƒ t  d ƒ t  d ƒ g g  f t  d ƒ t  d ƒ t  d ƒ g g  f g D]w \ } } |  j t t | Œ  ƒ | ƒ xL t  d ƒ D]> } |  j t t | | Œ  ƒ t t | t d	 | ƒ Ž  ƒ ƒ qó Wq¾ W|  j t t t t  d
 ƒ g d Œ  ƒ ƒ d ƒ |  j t t t  d ƒ d  ƒ d „  } d „  } d d d t	 d ƒ t	 d ƒ t d d d d d d ƒ t
 d ƒ t  d ƒ t t  d ƒ ƒ g	 } xý t  d ƒ D]ï } g  t  t j d ƒ ƒ D] } t j | ƒ ^ q} t t t | ƒ ƒ }	 |  j t t t | Œ  ƒ ƒ |	 ƒ |  j t t | Œ  ƒ t | | Œ  ƒ ƒ |  j t t | Œ  ƒ t | | Œ  ƒ ƒ t t | ƒ } |  j t t t | Œ  ƒ ƒ |	 ƒ qýWd  S(    Nt   abR}   R~   i   i   i    i   i   RY   i   i   c             s,  t  t |  ƒ | j d d ƒ } t | ƒ } | d k r@ d Vd  St d „  | Dƒ ƒ rZ d  Sd g | } t d „  t | | ƒ Dƒ ƒ Vx  x™ t t | ƒ ƒ D]� } | | t | | ƒ d k rÅ q› n  | | c d 7<x% t | d | ƒ D] } d | | <qé Wt d „  t | | ƒ Dƒ ƒ VPq› Wd  Sqˆ Wd  S(   NRY   i   i    c         s   s!   |  ] } t  | ƒ d  k Vq d S(   i    N(   R7   (   R4   R5   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>½  s    c         s   s   |  ] \ } } | | Vq d  S(   N(    (   R4   R5   R
   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>À  s    c         s   s   |  ] \ } } | | Vq d  S(   N(    (   R4   R5   R
   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>È  s    (    (   RP   R6   t   getR7   t   anyR€   R8   R    (   R   t   kwdst   poolsR   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_itertools.pyt   product1·  s&    c             s†   t  t |  ƒ | j d d ƒ } g  g } x; | D]3 } g  | D]  } | D] } | | g ^ qF q< } q/ Wx | D] } t | ƒ Vqm Wd S(   s    Pure python version used in docsRY   i   N(   RP   R6   Rà   (   R   Râ   Rã   RI   R5   R   R¿   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   product2Í  s    	1R*   R'   R0   t   abcdefgi   i   id   i   (    (   R}   (   R~   (   i    i    (   i    i   (   i    i   (   i   i    (   i   i   (   i   i   i‘Ë (   R    R-   R   RZ   RÅ   R7   R.   R/   RF   t   xrangeRA   R6   t   randomt	   randranget   choiceR   RP   t   iter(
   R   R   RI   R9   Rä   Rå   t   argtypesR
   R;   t   expected_len(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_product§  s2    -$$4'/			3'1"((c      
   C   s7   |  j  t t f ƒ � t d d d g d Œ Wd  QXd  S(   NRY   i   i   Rß   i   i   i    (   R.   RL   RM   RZ   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_product_overflowá  s    c      	   C   sf   |  j  t t t t t d d ƒ ƒ ƒ ƒ d ƒ |  j t t t t t t d d ƒ ƒ ƒ ƒ ƒ d ƒ d  S(   NR'   R(   i   (   R-   R7   RA   RP   RQ   RZ   RR   R   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_product_tuple_reuseæ  s    .c         C   s  |  j  t t d d d d ƒ ƒ d d d g ƒ |  j  t t d d d d ƒ ƒ g  ƒ |  j  t t d d d d ƒ ƒ g  ƒ |  j  t t d d d d ƒ ƒ g  ƒ |  j  t t d ƒ t d ƒ ƒ d d d g ƒ |  j  t t d d ƒ ƒ d d d g ƒ |  j  t d t d ƒ ƒ d d d g ƒ |  j  t t d d ƒ ƒ g  ƒ |  j  t t d d
 ƒ ƒ g  ƒ |  j t t ƒ |  j t t d  d d ƒ |  j t t d  d ƒ t d ƒ } |  j  t	 | ƒ d ƒ t d d ƒ } |  j  t	 | ƒ d ƒ t | ƒ |  j  t	 | ƒ d ƒ d  S(   NRÜ   R}   t   timesi   i    iÿÿÿÿiþÿÿÿi   i   iýÿÿÿi   y                s   repeat((1+0j))i   s   repeat((1+0j), 5)s   repeat((1+0j), 0)(   i    R}   (   i   R}   (   i   R}   y      ð?        y      ð?        (
   R-   R   RY   R€   Rç   R   R.   R/   RF   Rƒ   (   R   R9   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_repeatë  s&    .%%%((
c         C   s†   |  j  t t d d ƒ ƒ d ƒ |  j  t t d d ƒ ƒ d ƒ |  j  t t d d d ƒƒ d ƒ |  j  t t d d d ƒƒ d ƒ d  S(   NR}   iÿÿÿÿs   repeat('a', 0)iþÿÿÿRñ   (   R-   Rƒ   RY   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_repeat_with_negative_times   s    "c         C   s‚  |  j  t t t j t d ƒ t d d ƒ ƒ ƒ d d d g ƒ |  j  t t d  d t d ƒ ƒ ƒ d d d g ƒ |  j  t t d  d t ƒ  ƒ ƒ d d d g ƒ |  j  t d t d  d t ƒ  ƒ ƒ d d g ƒ |  j  t t t j g  ƒ ƒ g  ƒ |  j	 t
 t ƒ |  j	 t
 t t j ƒ |  j	 t
 t d t d ƒ ƒ j ƒ |  j	 t t t d g d g ƒ j ƒ |  j	 t
 t t d g d g ƒ j ƒ d  S(   Ni   i   i   i    i   R'   i   R}   R~   R0   i
   i   i    i   i   (   R}   i    (   R~   i   (   R0   i   (   R}   i    (   R~   i   (   R0   i   (   R}   i    (   R~   i   (   R-   R   t   imapR   t   powR    RF   R�   R   R.   R/   t   negR   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_itertools.pyt	   test_imap  s    -!!""%c      	   C   s‹  |  j  t t t j t t d ƒ t d d ƒ ƒ ƒ ƒ d
 d d g ƒ |  j  t d t t j t t	 ƒ  t	 d ƒ ƒ ƒ ƒ d d d g ƒ |  j  t t t j g  ƒ ƒ g  ƒ |  j  t t t j t
 d d g ƒ g ƒ ƒ d g ƒ |  j t t t t j d  g ƒ ƒ |  j t t ƒ |  j t t t j d g d ƒ |  j t t d	 d g ƒ j ƒ |  j t t t d g ƒ j ƒ |  j t t t d g ƒ j ƒ d  S(   Ni   i   i   i    i   i   i   t   extrai
   i    i   i   i    i   i   i   (   i   i   (   i   i   (   i   i   (   i   i   (   R-   R   t   starmapR   Rõ   R€   R    R   R¾   R�   Rë   R.   R/   RF   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_itertools.pyt   test_starmap  s    30"4"c         C   s…  xK d d d d d d g D]1 } |  j  t t t d ƒ | Œ ƒ t | Œ  ƒ q WxZ d d f d d f d d f g D]7 \ } } |  j  t t t d ƒ | Œ ƒ t | Œ  ƒ qp W|  j  t t t d ƒ d  ƒ ƒ t d ƒ ƒ |  j  t t t d ƒ d  d  ƒ ƒ t d ƒ ƒ |  j  t t t d ƒ d  d  d  ƒ ƒ t d ƒ ƒ |  j  t t t d ƒ d d  ƒ ƒ t d d ƒ ƒ |  j  t t t d ƒ d d  d ƒ ƒ t d d d ƒ ƒ t t d ƒ ƒ } |  j  t t | d ƒ ƒ t d ƒ ƒ |  j  t | ƒ t d d ƒ ƒ t t d ƒ ƒ } |  j  t t | d d ƒ ƒ g  ƒ |  j  t | ƒ t d d ƒ ƒ |  j t t t d ƒ ƒ |  j t t t d ƒ d d d d ƒ |  j t	 t t d ƒ d	 d d ƒ |  j t	 t t d ƒ d d	 d
 ƒ |  j t	 t t d ƒ d d d
 ƒ |  j t	 t t d ƒ d d d ƒ |  j t	 t t d ƒ d ƒ |  j t	 t t d ƒ d d ƒ |  j t	 t t d ƒ d d ƒ |  j t	 t t d ƒ d d d ƒ |  j t	 t t d ƒ d d d ƒ |  j  t
 t t t ƒ  d d t ƒ ƒ ƒ d ƒ t ƒ  } |  j  t t | d d d ƒ ƒ d g ƒ |  j  t | ƒ d ƒ d „  d Dƒ } t j | ƒ } t | d ƒ } |  j | ƒ  ƒ t | ƒ t j ƒ  |  j | ƒ  ƒ d  S(   Ni
   i   i   id   in   i   i   i   iûÿÿÿiÿÿÿÿi    R}   i2   c         s   s   |  ] } | Vq d  S(   N(    (   R4   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>[  s    (   i
   i   i   (   i
   i   i   (   i
   i   (   i
   i
   (   i
   i   (   i   (   i
   in   i   (   i
   id   i   (   i
   in   (   i
   id   (   in   (   id   (   i   i   (   R-   R   R   Rç   R    RF   Rë   R.   R/   R   R7   R�   R‚   R   t   weakreft   reft   assertIsNotNoneR    t
   gc_collectt   assertIsNone(   R   R   t   tgtargsR$   R0   t   wr(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_islice$  s\    /		/+.117%"%"""""".	(

c         C   sH  d d d d d d d d g } d	 „  } |  j  t t | | ƒ ƒ d d d g ƒ |  j  t t | g  ƒ ƒ g  ƒ |  j t t ƒ |  j t t t j ƒ |  j t t t j d g d
 ƒ |  j t t d d g ƒ j ƒ |  j t t t	 d g ƒ j ƒ t t
 d d d d d d g ƒ } |  j  t | ƒ d d d g ƒ |  j t | j ƒ d  S(   Ni   i   i   i   i   i   i   i   c         S   s
   |  d 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_itertools.pyRž   e  R*   Rø   i
   i    (   i   i   (   i   i   (   i   i   (   R-   R   t	   takewhileR.   R/   R   Rõ   R   R   R	   Rº   R   (   R   Ru   t   undertenRs   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_takewhilec  s    	(!c         C   sû   d d d d d d d d g } d	 „  } |  j  t t | | ƒ ƒ d d d d d g ƒ |  j  t t | g  ƒ ƒ g  ƒ |  j t t ƒ |  j t t t j ƒ |  j t t t j d g d
 ƒ |  j t t d d g ƒ j ƒ |  j t t t	 d g ƒ j ƒ d  S(   Ni   i   i   i   i   i   i   i   c         S   s
   |  d 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_itertools.pyRž   s  R*   Rø   i
   (   i   i   (   i   i   (   i   i   (
   R-   R   t	   dropwhileR.   R/   R   Rõ   R   R   R	   (   R   Ru   R  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_dropwhileq  s    	.c         C   sª  d } d „  } t  g  ƒ \ } } |  j t | ƒ g  ƒ |  j t | ƒ g  ƒ t  | | ƒ ƒ \ } } |  j t | | ƒ t t | ƒ t | ƒ ƒ ƒ t  | | ƒ ƒ \ } } |  j t | ƒ t | ƒ ƒ |  j t | ƒ t | ƒ ƒ t  | | ƒ ƒ \ } } x* t d ƒ D] } |  j | j ƒ  | ƒ qW~ |  j t | ƒ t | ƒ ƒ t  | | ƒ ƒ \ } } x* t d ƒ D] } |  j | j ƒ  | ƒ qlW~ |  j t | ƒ t d | ƒ ƒ x½ t d ƒ D]¯ } d g | d g | } t j | ƒ g  g  f } t  | | ƒ ƒ }	 x/ | D]' } |	 | j ƒ  }
 | | j	 |
 ƒ qW|  j | d t | ƒ ƒ |  j | d t | ƒ ƒ q»W|  j
 t t  ƒ |  j
 t t  d ƒ |  j
 t t  d d g d	 ƒ |  j
 t t  d d g d d	 ƒ t  d
 ƒ \ } } t | ƒ d ƒ } |  j t | ƒ t d ƒ ƒ t  t d ƒ d ƒ \ } } } x* t d ƒ D] } |  j | j ƒ  | ƒ q7W|  j t | ƒ t d ƒ ƒ |  j | j ƒ  | j ƒ  g t d ƒ ƒ |  j t | ƒ t d d ƒ ƒ |  j t | ƒ t d d ƒ ƒ |  j
 t t  d
 d ƒ |  j
 t t  g  d ƒ xu t d ƒ D]g } t  d
 | ƒ } |  j t | ƒ t ƒ |  j t | ƒ | ƒ |  j t t | ƒ t d
 ƒ g | ƒ qWt  d
 ƒ \ } } t  | ƒ \ } } |  j | | k ƒ t  d
 ƒ \ } } t | ƒ } |  j
 t | ƒ |  j
 t | d ƒ | | ƒ } |  j t | ƒ t | ƒ k oAt | ƒ k oAt d
 ƒ k n ƒ t  t d ƒ ƒ \ } } t j | ƒ } |  j t | d ƒ t | ƒ ƒ ~ |  j
 t t | d ƒ d  S(   NiÈ   c         s   s    x t  |  ƒ D] } | Vq Wd  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_itertools.pyt   irange~  s    id   i   i    i   i   i   R   R'   R(   iÐ  t   invalidiÿÿÿÿi
   t	   __class__(   t   teeR-   R   R€   R    Rç   R   Rè   t   shuffleR¯   R.   R/   R„   R   R6   R7   RP   RG   Rû   t   proxyt   getattrt   ReferenceError(   R   R   R  R}   R~   R
   R;   t   ordert   listst   itsR“   R0   RI   R    t   t1t   t2t   tnewt   t3Rj   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_tee|  s‚    	.(*Fc         C   sC   t  t d  d ƒ ƒ \ } } y t | ƒ ~ Wn ~ ~ ‚  n Xd  S(   Ni -1(   R  RY   RF   Rá   (   R   t   forwardt   backward(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_tee_del_backwardÖ  s    
c            sU   d d ‡  f d †  ƒ  Y} t  | ƒ  ƒ \ } ‰  |  j t d ƒ � t | ƒ Wd  QXd  S(   Nt   Ic              s&   e  Z 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_itertools.pyR   â  s    c            s&   |  j  } t |  _  | r" t ˆ  ƒ Sd  S(   N(   t   firstt   FalseR   (   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_itertools.pyR   ä  s    		(   R   R   R°   R  R   R   (    (   R~   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  à  s   	R  (    (   R  t   assertRaisesRegexpRÝ   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_itertools.pyt   test_tee_reenterß  s    
s!   Threading required for this test.c            s»   t  j ƒ  ‰ t  j ƒ  ‰  d d ‡  ‡ f d †  ƒ  Y} t | ƒ  ƒ \ } } t  j d t d | g ƒ } | j ƒ  z1 ˆ j ƒ  |  j t d ƒ � t | ƒ Wd  QXWd  ˆ  j	 ƒ  | j
 ƒ  Xd  S(   NR  c              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_itertools.pyR   ó  s    c            s   ˆ j  ƒ  ˆ  j ƒ  d  S(   N(   RA   t   wait(   R   (   t   finishR–   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR   õ  s    
(   R   R   R   R   (    (   R!  R–   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  ò  s   	RÒ   R   R  (    (   t	   threadingt   EventR  t   ThreadR   R–   R   R  RÝ   RA   t   join(   R   R  R}   R~   t   thread(    (   R!  R–   s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_tee_concurrentî  s    


c         C   sš  |  j  t t ƒ  j ƒ xO t t t t f D]; } |  j  t | g  ƒ j ƒ |  j  t | t ƒ  ƒ j ƒ q) W|  j  t t g  d  ƒ j ƒ |  j  t t t ƒ  d  ƒ j ƒ t
 g  ƒ \ } } |  j  t | j ƒ |  j  t | j ƒ t
 t ƒ  ƒ \ } } |  j  t | j ƒ |  j  t | j ƒ |  j  t t d  d ƒ j ƒ xa t t t t t t f D]G } |  j  t | d „  g  ƒ j ƒ |  j  t | d „  t ƒ  ƒ j ƒ qKWd  S(   Ni    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_itertools.pyRž     R*   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_itertools.pyRž     R*   (   R.   R   R¾   R   R,   R›   R]   R   R   RF   R  RY   R¹   R¼   Rô   R  R  Rù   (   R   t   fRj   t   q(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_StopIteration  s      (/   R   R   R1   R3   RJ   R    t   bigaddrspacetestRN   t   impl_detailRS   Rc   Rd   Re   Rk   Rl   Rm   Rt   R|   R•   R™   Rœ   R¸   R»   R½   RÂ   RÈ   RÔ   RÕ   RÞ   Rî   Rï   Rð   Rò   Ró   R÷   Rú   R  R  R  R  R  R  t   unittestt
   skipUnlessR"  R'  R*  (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR"   ;   sN   			>	B	<	!		+	7		Y				,	(	:					?			Z			t   TestExamplesc           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&   |  j  d j t d d ƒ ƒ d ƒ d  S(   NR*   RT   t   DEFRv   (   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_itertools.pyR1     s    c         C   s,   |  j  d j t j d d g ƒ ƒ d ƒ d  S(   NR*   RT   R0  Rv   (   R-   R%  R,   R2   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR3      s    c      	   C   sf   |  j  t t d d ƒ ƒ d d d d d d g ƒ |  j  t t t d ƒ d ƒ ƒ d d d d g ƒ d  S(   Nt   ABCDi   RU   RV   RW   t   Di   i   i    i   (   RU   RV   (   RU   RW   (   RU   R2  (   RV   RW   (   RV   R2  (   RW   R2  (   i    i   i   (   i    i   i   (   i    i   i   (   i   i   i   (   R-   R   RE   R    (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRJ   #  s    c      	   C   s5   |  j  t t d d ƒ ƒ d d d d	 d
 d g ƒ d  S(   NRT   i   RU   RV   RW   (   RU   RU   (   RU   RV   (   RU   RW   (   RV   RV   (   RV   RW   (   RW   RW   (   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_itertools.pyRc   )  s    c      
   C   s;   |  j  t t d d d d d d d g ƒ ƒ t d ƒ ƒ d  S(   NRv   i   i    Rx   (   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_itertools.pyR|   -  s    c         C   s8   |  j  t t t d ƒ d ƒ ƒ d d d d d g ƒ d  S(   Ni
   i   i   i   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_itertools.pyR•   0  s    c         C   s/   |  j  t t t d ƒ d ƒ ƒ t d ƒ ƒ d  S(   NR1  i   t   ABCDABCDABCD(   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_itertools.pyRœ   3  s    c      	   C   s>   |  j  t t d „  d d d d d g ƒ ƒ d d d g ƒ d  S(   Nc         S   s
   |  d 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_itertools.pyRž   7  R*   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_itertools.pyR  6  s    c         C   s’   |  j  g  t d ƒ D] \ } } | ^ q t d ƒ ƒ |  j  g  t d ƒ D] \ } } t | ƒ ^ qH t d ƒ t d ƒ t d ƒ t d ƒ g ƒ d  S(   Nt   AAAABBBCCDAABBBt   ABCDABt
   AAAABBBCCDt   AAAAt   BBBt   CCR2  (   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_itertools.pyR¸   9  s    (.c         C   s;   |  j  t t d „  t d ƒ ƒ ƒ d d d d d g ƒ d  S(   Nc         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_itertools.pyRž   @  R*   i
   i   i   i   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_itertools.pyR»   ?  s    c         C   s;   |  j  t t d „  t d ƒ ƒ ƒ d d d d d g ƒ d  S(   Nc         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_itertools.pyRž   C  R*   i
   i    i   i   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_itertools.pyR½   B  s    c         C   s/   |  j  t t t d d	 ƒ ƒ d d d g ƒ d  S(
   Ni   i   i
   i   i    i	   iè  (   i   i   i
   (   i   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_itertools.pyR÷   E  s    c         C   s¤   |  j  t t d d ƒ ƒ t d ƒ ƒ |  j  t t d d d ƒ ƒ t d ƒ ƒ |  j  t t d d d  ƒ ƒ t d ƒ ƒ |  j  t t d d d  d ƒ ƒ t d ƒ ƒ d  S(	   NRn   i   t   ABi   t   CDt   CDEFGi    t   ACEG(   R-   R   R   RF   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  H  s    %((c         C   s)   |  j  t t d d ƒ ƒ d d g ƒ d  S(	   NR1  t   xyRU   R   RV   R¿   (   RU   R   (   RV   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_itertools.pyRÂ   N  s    c         C   s5   |  j  t t d d d d ƒƒ d d d d g ƒ d  S(   NR1  R>  RÊ   t   -RU   R   RV   R¿   RW   R2  (   RU   R   (   RV   R¿   (   RW   R?  (   R2  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_itertools.pyt   test_izip_longestQ  s    c      
   C   sf   |  j  t t d d ƒ ƒ t t d j ƒ  ƒ ƒ |  j  t t t d ƒ ƒ ƒ d d d	 d
 d d g ƒ d  S(   NR1  i   s#   AB AC AD BA BC BD CA CB CD DA DB DCi   i    i   (   i    i   i   (   i    i   i   (   i   i    i   (   i   i   i    (   i   i    i   (   i   i   i    (   R-   R   R=   RP   R6   t   splitR    (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRk   U  s    c         C   sr   |  j  t t d d ƒ ƒ t t d j ƒ  ƒ ƒ |  j  t t t d ƒ d d ƒƒ d	 d
 d d d d d d g ƒ d  S(   NR1  R>  s   Ax Ay Bx By Cx Cy Dx Dyi   RY   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   RZ   RP   R6   RA  R    (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRî   [  s
    !c         C   s,   |  j  t t d d ƒ ƒ d d d g ƒ d  S(   Ni
   i   (   R-   R   RY   (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRò   b  s    c         C   s5   |  j  t t t d d	 d
 g ƒ ƒ d d d g ƒ d  S(   Ni   i   i   i
   i    i	   iè  (   i   i   (   i   i   (   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_itertools.pyt   test_stapmape  s    !c      	   C   s;   |  j  t t d „  d d d d d g ƒ ƒ d d g ƒ d  S(   Nc         S   s
   |  d 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_itertools.pyRž   j  R*   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_itertools.pyR  i  s    (   R   R   R1   R3   RJ   Rc   R|   R•   Rœ   R  R¸   R»   R½   R÷   R  RÂ   R@  Rk   Rî   Rò   RB  R  (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR/    s(   																			t   TestPurePythonRoughEquivalentsc           B   s    e  Z e d  „  ƒ Z d „  Z RS(   c   
      g   s'  t  | Œ  } | j p d | j p' t j | j p3 d } } } t t | | | ƒ ƒ } y t | ƒ } Wn8 t	 k
 r  x# t
 t | ƒ |  ƒ D] \ } }	 qŒ Wd  SXyA x: t |  ƒ D], \ } }	 | | k r± |	 Vt | ƒ } q± q± WWn> t	 k
 r"x. t
 t | d | ƒ |  ƒ D] \ } }	 qWn Xd  S(   Ni    i   (   t   sliceR–   t   stopR†   R‡   R—   Rë   Rç   R   R   R¾   t	   enumerate(
   R   R   Rf   R–   RE  R—   R$   t   nextiR
   R%   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR   o  s"    2")c         C   s©  |  j  t |  j d d ƒ ƒ t d ƒ ƒ |  j  t |  j d d d ƒ ƒ t d ƒ ƒ |  j  t |  j d d d  ƒ ƒ t d ƒ ƒ |  j  t |  j d d d  d ƒ ƒ t d ƒ ƒ t t d	 ƒ ƒ } |  j  t |  j | d
 ƒ ƒ t d
 ƒ ƒ |  j  t | ƒ t d
 d	 ƒ ƒ t t d	 ƒ ƒ } |  j  t |  j | d
 d
 ƒ ƒ g  ƒ |  j  t | ƒ t d
 d	 ƒ ƒ t ƒ  } |  j  t |  j | d d
 d ƒ ƒ d g ƒ |  j  t | ƒ d
 ƒ d  S(   NRn   i   R:  i   R;  R<  i    R=  i
   i   i   i2   (	   R-   R   R   RF   Rë   Rç   R    R�   R   (   R   R$   R0   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_islice_recipe…  s    (++.(%	+(   R   R   t   staticmethodR   RH  (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRC  m  s   t   TestGCc           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 RS(   c         C   s!   | j  | ƒ | j ƒ  ~ ~ d  S(   N(   R¯   R   (   R   t   iteratort	   container(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt	   makecycle™  s    
c         C   s    g  } |  j  t | ƒ | ƒ d  S(   N(   RM  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_itertools.pyR1   ž  s    c         C   s&   g  } |  j  t j | g ƒ | ƒ d  S(   N(   RM  R,   R2   (   R   R}   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR3   ¢  s    c         C   s/   g  } |  j  t d d | d g d ƒ | ƒ d  S(   Ni   i   i   (   RM  RE   (   R   R}   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRJ   ¦  s    c         C   s/   g  } |  j  t d d | d g d ƒ | ƒ d  S(   Ni   i   i   (   RM  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_itertools.pyRc   ª  s    c      	   C   s5   g  } |  j  t d d d d d d d g ƒ | ƒ d  S(   NRv   i   i    (   RM  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_itertools.pyR|   ®  s    c         C   sM   g  } t  d t f t d | ƒ ƒ } |  j t | d ƒ | d ƒ ƒ | ƒ d  S(   Nt   IntR   i    i   (   R„   R˜   RÅ   RM  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_itertools.pyR•   ²  s    c         C   s'   g  } |  j  t | g d ƒ | ƒ d  S(   Ni   (   RM  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_itertools.pyRœ   ·  s    c         C   s,   g  } |  j  t t d | | g ƒ | ƒ d  S(   Ni    (   RM  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_itertools.pyR  »  s    c         C   s-   g  } |  j  t | g d d „  ƒ | ƒ d  S(   Ni   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_itertools.pyRž   Á  R*   (   RM  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_itertools.pyR¸   ¿  s    c         C   sX   d } d „  } xB t  t | ƒ d | ƒD]( \ } } | j j d g  ƒ j | ƒ q( Wd  S(   Ni
   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_itertools.pyRž   Æ  R*   R�   R   (   R]   Rç   t   __dict__t
   setdefaultR¯   (   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_itertools.pyt   test_issue2246Ã  s    	%c         C   s-   g  } |  j  t d „  | g d ƒ | ƒ d  S(   Nc         S   s   t  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_itertools.pyRž   Ì  R*   i   (   RM  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_itertools.pyR»   Ê  s    c         C   s&   g  } |  j  t d „  | ƒ | ƒ d  S(   Nc         S   s   t  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_itertools.pyRž   Ð  R*   (   RM  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_itertools.pyR½   Î  s    c         C   s1   g  } |  j  t | g d | g d ƒ | ƒ d  S(   Ni   i   (   RM  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_itertools.pyRÂ   Ò  s    c         C   sj   g  } |  j  t | g d | g d ƒ | ƒ | d  g } |  j  t | g d | g d d | ƒ| ƒ d  S(   Ni   i   RÊ   (   RM  RÌ   RF   (   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_itertools.pyR@  Ö  s    'c         C   s-   g  } |  j  t d „  | g d ƒ | ƒ d  S(   Nc         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_itertools.pyRž   Þ  R*   i   (   RM  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_itertools.pyR÷   Ü  s    c         C   s*   g  } |  j  t | g d d  ƒ | ƒ d  S(   Ni   (   RM  R   RF   (   R   R}   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  à  s    c         C   s/   g  } |  j  t d d | d g d ƒ | ƒ d  S(   Ni   i   i   (   RM  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_itertools.pyRk   ä  s    c         C   s2   g  } |  j  t d d | d g d d ƒ| ƒ d  S(   Ni   i   i   RY   (   RM  RZ   (   R   R}   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRî   è  s    c         C   s    g  } |  j  t | ƒ | ƒ d  S(   N(   RM  RY   (   R   R}   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRò   ì  s    c         C   s3   g  } |  j  t d „  | | f g d ƒ | ƒ d  S(   Nc          W   s   |  S(   N(    (   Rs   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRž   ò  R*   i   (   RM  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_itertools.pyRú   ð  s    c         C   s/   g  } |  j  t t d d | | g ƒ | ƒ d  S(   Ni   i    (   RM  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_itertools.pyR  ô  s    (   R   R   RM  R1   R3   RJ   Rc   R|   R•   Rœ   R  R¸   RQ  R»   R½   RÂ   R@  R÷   R  Rk   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_itertools.pyRJ  —  s,   																					c         c   s   x |  D] } | Vq Wd S(   s   Regular generatorN(    (   t   seqnR
   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   Rø  s    t   Gc           B   s    e  Z d  Z d „  Z d „  Z RS(   s   Sequence using __getitem__c         C   s   | |  _  d  S(   N(   RR  (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRØ   ÿ  s    c         C   s   |  j  | S(   N(   RR  (   R   R
   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   __getitem__  s    (   R   R   R   RØ   RU  (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRT  ý  s   	R  c           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s    Sequence using iterator protocolc         C   s   | |  _  d |  _ d  S(   Ni    (   RR  R
   (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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/test_itertools.pyR   	  s    c         C   sD   |  j  t |  j ƒ k r! t ‚ n  |  j |  j  } |  j  d 7_  | S(   Ni   (   R
   R7   RR  R   (   R   Ra   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR     s
     	(   R   R   R   RØ   R   R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR    s   		t   Igc           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    (   RR  R
   (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRØ     s    	c         c   s   x |  j  D] } | Vq
 Wd  S(   N(   RR  (   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/test_itertools.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_itertools.pyRV    s   	RÉ   c           B   s    e  Z d  Z d „  Z d „  Z RS(   s    Missing __getitem__ and __iter__c         C   s   | |  _  d |  _ d  S(   Ni    (   RR  R
   (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRØ     s    	c         C   sD   |  j  t |  j ƒ k r! t ‚ n  |  j |  j  } |  j  d 7_  | S(   Ni   (   R
   R7   RR  R   (   R   Ra   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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_itertools.pyRÉ     s   	t   Nc           B   s    e  Z d  Z d „  Z d „  Z RS(   s   Iterator missing next()c         C   s   | |  _  d |  _ d  S(   Ni    (   RR  R
   (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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/test_itertools.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_itertools.pyRX  %  s   	t   Ec           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s   Test propagation of exceptionsc         C   s   | |  _  d |  _ d  S(   Ni    (   RR  R
   (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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/test_itertools.pyR   2  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/test_itertools.pyR   4  s    (   R   R   R   RØ   R   R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRY  -  s   		t   Sc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s   Test immediate stopc         C   s   d  S(   N(    (   R   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRØ   9  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/test_itertools.pyR   ;  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/test_itertools.pyR   =  s    (   R   R   R   RØ   R   R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRZ  7  s   		c         C   s(   t  t d „  t t t |  ƒ ƒ ƒ ƒ ƒ S(   s    Test multiple tiers of iteratorsc         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_itertools.pyRž   B  R*   (   R,   Rô   RS  RV  RT  (   RR  (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR   @  s    t   TestVariousIteratorArgsc           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 RS(   c         C   s+  x$d d t  d ƒ d	 t d d d ƒ f D]û } x• t t t t t t f D]{ } |  j t	 t
 | | ƒ ƒ ƒ t	 | | ƒ ƒ ƒ |  j t	 t
 | | ƒ | | ƒ ƒ ƒ t	 | | ƒ ƒ t	 | | ƒ ƒ ƒ qG W|  j t t	 t
 t | ƒ ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ q( Wd  S(
   Nt   123R*   iè  t   dog333333ó?iÐ  i˜  i   (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R-   R   R,   R.   R/   RÉ   RX  t   ZeroDivisionErrorRY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR1   G  s    ..Kc         C   s  xd d t  d ƒ d
 t d d d ƒ f D]Þ } t | ƒ } xW t t t t t t f D]= } |  j	 t
 t | | ƒ t d	 ƒ ƒ ƒ t
 | | ƒ ƒ ƒ qS W|  j t t t | ƒ t d	 ƒ ƒ |  j t t
 t t | ƒ t d	 ƒ ƒ ƒ |  j t t
 t t | ƒ t d	 ƒ ƒ ƒ q( Wd  S(   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   i   (   R]  g333333ó?(   R    Rç   R7   RT  R  RV  RZ  R   RS  R-   R   R{   RY   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR|   P  s    .;"(c         C   s�   xz d d t  d ƒ d	 t d d d ƒ f D]Q } |  j t t t | ƒ ƒ |  j t t t | ƒ ƒ |  j t t t | ƒ ƒ q( Wd  S(
   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   (   R]  g333333ó?(	   R    Rç   R.   R/   RZ   RÉ   RX  R^  RY  (   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/test_itertools.pyRî   Y  s    .c         C   s  x d d t  d ƒ d
 t d d d ƒ f D]× } xw t t t t t t f D]] } t | ƒ d	 } t	 | | ƒ ƒ d	 } t	 t
 t | | ƒ ƒ | ƒ ƒ } |  j | | ƒ qG W|  j t t t | ƒ ƒ |  j t t	 t t | ƒ ƒ ƒ |  j t t	 t t | ƒ ƒ ƒ q( Wd  S(   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   i   (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R7   R   R   R›   R-   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   t   tgtlent   expectedt   actual(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRœ   _  s    .!c         C   sý   xö t  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]Á } xa t t t t t t f D]G } |  j g  t	 | | ƒ ƒ D] \ } } | ^ qr t
 | | ƒ ƒ ƒ qS W|  j t t	 t | ƒ ƒ |  j t t
 t	 t | ƒ ƒ ƒ |  j t t
 t	 t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    iè  i   i   iÐ  i˜  i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R-   R]   R   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   R`   t   sb(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR¸   j  s    :Ec         C   sù   xò t  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]½ } xT t t t t t t f D]: } |  j t	 t
 t | | ƒ ƒ ƒ t t | | ƒ ƒ ƒ qS W|  j t t
 t t | ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    iè  i   i   iÐ  i˜  i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R-   R   R¹   R   Ro   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR»   r  s    :8"c         C   sù   xò t  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]½ } xT t t t t t t f D]: } |  j t	 t
 t | | ƒ ƒ ƒ t t | | ƒ ƒ ƒ qS W|  j t t
 t t | ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    iè  i   i   iÐ  i˜  i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R-   R   R¼   R   Ro   R   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR½   z  s    :8"c         C   s  xd d t  d ƒ d	 t d d d ƒ f D]î } xŽ t t t t t t f D]t } |  j t	 t
 | | ƒ ƒ ƒ t | | ƒ ƒ ƒ |  j t	 t
 | | ƒ | | ƒ ƒ ƒ t | | ƒ | | ƒ ƒ ƒ qG W|  j t t
 t | ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ q( Wd  S(
   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R-   R   R¾   R€   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRÂ   ‚  s    ..Dc         C   s  xd d t  d ƒ d	 t d d d ƒ f D]î } xŽ t t t t t t f D]t } |  j t	 t
 | | ƒ ƒ ƒ t | | ƒ ƒ ƒ |  j t	 t
 | | ƒ | | ƒ ƒ ƒ t | | ƒ | | ƒ ƒ ƒ qG W|  j t t
 t | ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ |  j t t	 t
 t | ƒ ƒ ƒ q( Wd  S(
   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R-   R   RÌ   R€   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRÔ   ‹  s    ..Dc      	   C   sE  x>t  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]	} x  t t t t t t f D]† } |  j t	 t
 t | | ƒ ƒ ƒ t t | | ƒ ƒ ƒ |  j t	 t
 t j | | ƒ | | ƒ ƒ ƒ t t j | | ƒ | | ƒ ƒ ƒ qS W|  j t t
 t t | ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ |  j t t	 t
 t t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    id   i   i   i   i2   i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R-   R   Rô   R   RP   R   Rõ   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR÷   ”  s    :4P"c      	   C   sý   xö d d t  d ƒ d t d d d ƒ f D]Í } xd t t t t t t f D]J } |  j t	 t
 | | ƒ d	 d  d
 ƒ ƒ t	 | | ƒ ƒ d	 d  d
 … ƒ qG W|  j t t
 t | ƒ d ƒ |  j t t	 t
 t | ƒ d ƒ ƒ |  j t t	 t
 t | ƒ d ƒ ƒ q( Wd  S(   Nt   12345R*   iè  R]  g333333ó?iÐ  i˜  i   i   i   i
   (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R-   R   R   RF   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  �  s    .H"c      	   C   s   xt  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]ä } xr t t t t t t f D]X } t | | ƒ } |  j	 t
 t t j | | ƒ ƒ ƒ t t j | | ƒ | | ƒ ƒ ƒ qS W|  j t t t j t | ƒ ƒ |  j t t
 t t j t | ƒ ƒ ƒ |  j t t
 t t j t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    id   i   i   i   i2   i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R€   R-   R   Rù   R   Rõ   RP   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   t   ss(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRú   ¥  s    :G%c         C   s$  xt  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]è } x t t t t t t f D]e } g  } x1 | | ƒ D]# } t | ƒ s‚ Pn  | j	 | ƒ ql W|  j
 t t t | | ƒ ƒ ƒ | ƒ qS W|  j t t t t | ƒ ƒ |  j t t t t t | ƒ ƒ ƒ |  j t t t t t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    iè  i   i   iÐ  i˜  i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R   R¯   R-   R   R  R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   t   tgtR³   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  ®  s    : )"c         C   s-  x&t  d ƒ t  d ƒ t  d ƒ d	 t d d d ƒ f D]ñ } xˆ t t t t t t f D]n } g  } x: | | ƒ D], } | r‹ t | ƒ r‹ ql n  | j	 | ƒ ql W|  j
 t t t | | ƒ ƒ ƒ | ƒ qS W|  j t t t t | ƒ ƒ |  j t t t t t | ƒ ƒ ƒ |  j t t t t t | ƒ ƒ ƒ q4 Wd  S(
   Ni
   i    iè  i   i   iÐ  i˜  i   (   i   i   (   R    Rç   RT  R  RV  RZ  R   RS  R   R¯   R-   R   R  R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   Re  R³   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR  º  s    : )"c         C   s  xd d t  d ƒ d
 t d d d ƒ f D]ä } x| t t t t t t f D]b } t | | ƒ ƒ \ } } |  j	 t
 | ƒ t
 | | ƒ ƒ ƒ |  j	 t
 | ƒ t
 | | ƒ ƒ ƒ qG W|  j t t t | ƒ ƒ |  j t t
 t t | ƒ ƒ d	 ƒ |  j t t
 t t | ƒ ƒ d	 ƒ q( Wd  S(   NR\  R*   iè  R]  g333333ó?iÐ  i˜  i   i    (   R]  g333333ó?(   R    Rç   RT  R  RV  RZ  R   RS  R  R-   R   R.   R/   RÉ   RX  R^  RY  (   R   Rf   R§   t   it1t   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_itertools.pyR  Æ  s    ."&#(   R   R   R1   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_itertools.pyR[  E  s   																				t   LengthTransparencyc           B   s   e  Z d  „  Z RS(   c         C   sL   d d l  m } |  j | t d  d ƒ ƒ d ƒ |  j t | t d  ƒ ƒ d  S(   Niÿÿÿÿ(   R7   i2   (   t   test.test_iterlenR7   R-   RY   RF   R.   R/   (   R   R7   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.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_itertools.pyRh  Ð  s   t   RegressionTestsc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c            sN   d „  } ‡  f d †  } g  ‰  | d	 | d
 ƒ t  t ƒ } |  j ˆ  | ƒ d  S(   Nc            sm   d g ‡  ‡ f d † } t  | ƒ } t  |  ƒ | d d +t | | ƒ } t | g t |  ƒ Œ  ‰ ˆ j ƒ  d  S(   Ni   c            s!   | r | 2ˆ  ˆ j  ƒ  ƒ n  |  S(   N(   R   (   R“   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/test_itertools.pyR§   à  s    (   R   Rô   R¾   R7   R   (   t   tuple1R(  t   tuple2R§   t   itemst   gen(    (   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_itertools.pyt   mutatingtupleÜ  s    c            s   |  a  t t  ƒ ˆ  (d  S(   N(   t   TR   (   Rs   (   R  (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR(  ë  s    i   i   i   i   i   i   (   i   i   i   (   i   i   i   (   R   Rq  R-   (   R   Rp  R(  t   second(    (   R  s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_sf_793826Ù  s    	c            sÜ   ‡  f d †  } ‡  f d †  } g  ‰  |  j  t t t | ƒ  | t ƒ ƒ ƒ |  j ˆ  d d g ƒ g  ‰  |  j  t t t | ƒ  | t ƒ ƒ ƒ |  j ˆ  d d g ƒ g  ‰  |  j  t t t | ƒ  ƒ ƒ |  j ˆ  d d g ƒ d  S(   Nc           3   s6   ˆ  j  d ƒ d Vˆ  j  d ƒ t ‚ ˆ  j  d ƒ d  S(   Ni    i   i   (   R¯   t   AssertionError(    (   t   hist(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   gen1ú  s
    c         3   s2   ˆ  j  d ƒ d Vˆ  j  d ƒ |  r. t ‚ n  d  S(   Ni   i   i   (   R¯   R   (   R   (   Ru  (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   gen2  s
    i    i   (   R.   Rt  R   R,   R  R-   R°   R›   (   R   Rv  Rw  (    (   Ru  s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_sf_950057ö  s    %%c         C   sC   t  j d „  t d ƒ Dƒ ƒ } |  j t ƒ � t | ƒ Wd  QXd  S(   Nc         s   s   |  ] } d Vq d  S(   N(    (    (   R4   t   unused(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pys	   <genexpr>  s    i€–˜ (   R,   R2   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_itertools.pyt"   test_long_chain_of_empty_iterables  s    c            sC   ‡  f d †  } x- t  t d ƒ | ƒ D] \ } ‰  t ˆ  ƒ q% Wd  S(   Nc            s#   |  d k r t  ˆ  ƒ n  |  d k S(   Ni   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_itertools.pyR(    s    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/test_itertools.pyt   test_issue30347_1  s    "c            sf   d t  f ‡  ‡ f d †  ƒ  Y‰  t t t d ƒ ˆ  ƒ ƒ d ‰ x! t d ƒ D] } t ˆ d  ƒ qK Wd  S(   Nt   Kc              s2   e  Z d  Z d „  Z ‡  ‡ f d †  Z d „  Z RS(   i    c         S   s   d  S(   N(    (   R   Ra   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRØ   '  s    c            s2   ˆ  j  d 7_  ˆ  j  d k r. t ˆ d  ƒ n  t S(   Ni   (   R
   R   RF   R°   (   R   t   other(   R|  R§   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   __eq__)  s    c         S   s   d S(   Ni   (    (   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   __hash__.  s    (   R   R   R
   RØ   R~  R  (    (   R|  R§   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR|  %  s   	i
   i   i   (   RÜ   R   R]   R    RF   (   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_itertools.pyt   test_issue30347_2$  s    (   R   R   Rs  Rx  Rz  R{  R€  (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyRj  ×  s
   				t   SubclassWithKwargsTestc           B   s   e  Z d  „  Z RS(   c            s“   xŒ t  t t t t t t t t t	 t
 t f D]` ‰  d ˆ  f ‡  f d †  ƒ  Y} y | d d ƒ Wq+ t k
 rŠ } |  j d | j d ƒ q+ Xq+ Wd  S(   Nt   Subclassc              s   e  Z d ‡  f d  † Z RS(   c            s   ˆ  j  |  | Œ d  S(   N(   RØ   (   R   t   newargR   (   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_itertools.pyRØ   ;  s    N(   R   R   RF   RØ   (    (   R„  (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyR‚  :  s   Rƒ  i   s   does not take keyword argumentsi    (   RY   R¾   R¹   R¼   R,   Rô   Rù   R   R  R  R›   R{   R/   t   assertNotInR   (   R   R‚  t   err(    (   R„  s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt   test_keywords_in_subclass6  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_itertools.pyR�  5  s   sŸ   Doctest for examples in the library reference: libitertools.tex


>>> amounts = [120.15, 764.05, 823.14]
>>> for checknum, amount in izip(count(1200), amounts):
...     print 'Check %d is for $%.2f' % (checknum, amount)
...
Check 1200 is for $120.15
Check 1201 is for $764.05
Check 1202 is for $823.14

>>> import operator
>>> for cube in imap(operator.pow, xrange(1,4), repeat(3)):
...    print cube
...
1
8
27

>>> reportlines = ['EuroPython', 'Roster', '', 'alex', '', 'laura', '', 'martin', '', 'walter', '', 'samuele']
>>> for name in islice(reportlines, 3, None, 2):
...    print name.title()
...
Alex
Laura
Martin
Walter
Samuele

>>> from operator import itemgetter
>>> d = dict(a=1, b=2, c=1, d=2, e=1, f=2, g=3)
>>> di = sorted(sorted(d.iteritems()), key=itemgetter(1))
>>> for k, g in groupby(di, itemgetter(1)):
...     print k, map(itemgetter(0), g)
...
1 ['a', 'c', 'e']
2 ['b', 'd', 'f']
3 ['g']

# Find runs of consecutive numbers using groupby.  The key to the solution
# is differencing with a range so that consecutive numbers all appear in
# same group.
>>> data = [ 1,  4,5,6, 10, 15,16,17,18, 22, 25,26,27,28]
>>> for k, g in groupby(enumerate(data), lambda t:t[0]-t[1]):
...     print map(operator.itemgetter(1), g)
...
[1]
[4, 5, 6]
[10]
[15, 16, 17, 18]
[22]
[25, 26, 27, 28]

>>> def take(n, iterable):
...     "Return first n items of the iterable as a list"
...     return list(islice(iterable, n))

>>> def enumerate(iterable, start=0):
...     return izip(count(start), iterable)

>>> def tabulate(function, start=0):
...     "Return function(0), function(1), ..."
...     return imap(function, count(start))

>>> import collections
>>> def consume(iterator, n=None):
...     "Advance the iterator n-steps ahead. If n is None, consume entirely."
...     # Use functions that consume iterators at C speed.
...     if n is None:
...         # feed the entire iterator into a zero-length deque
...         collections.deque(iterator, maxlen=0)
...     else:
...         # advance to the empty slice starting at position n
...         next(islice(iterator, n, n), None)

>>> def nth(iterable, n, default=None):
...     "Returns the nth item or a default value"
...     return next(islice(iterable, n, None), default)

>>> def all_equal(iterable):
...     "Returns True if all the elements are equal to each other"
...     g = groupby(iterable)
...     return next(g, True) and not next(g, False)

>>> def quantify(iterable, pred=bool):
...     "Count how many times the predicate is true"
...     return sum(imap(pred, iterable))

>>> def padnone(iterable):
...     "Returns the sequence elements and then returns None indefinitely"
...     return chain(iterable, repeat(None))

>>> def ncycles(iterable, n):
...     "Returns the sequence elements n times"
...     return chain(*repeat(iterable, n))

>>> def dotproduct(vec1, vec2):
...     return sum(imap(operator.mul, vec1, vec2))

>>> def flatten(listOfLists):
...     return list(chain.from_iterable(listOfLists))

>>> def repeatfunc(func, times=None, *args):
...     "Repeat calls to func with specified arguments."
...     "   Example:  repeatfunc(random.random)"
...     if times is None:
...         return starmap(func, repeat(args))
...     else:
...         return starmap(func, repeat(args, times))

>>> def pairwise(iterable):
...     "s -> (s0,s1), (s1,s2), (s2, s3), ..."
...     a, b = tee(iterable)
...     for elem in b:
...         break
...     return izip(a, b)

>>> def grouper(n, iterable, fillvalue=None):
...     "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
...     args = [iter(iterable)] * n
...     return izip_longest(fillvalue=fillvalue, *args)

>>> def roundrobin(*iterables):
...     "roundrobin('ABC', 'D', 'EF') --> A D E B F C"
...     # Recipe credited to George Sakkis
...     pending = len(iterables)
...     nexts = cycle(iter(it).next for it in iterables)
...     while pending:
...         try:
...             for next in nexts:
...                 yield next()
...         except StopIteration:
...             pending -= 1
...             nexts = cycle(islice(nexts, pending))

>>> def powerset(iterable):
...     "powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
...     s = list(iterable)
...     return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))

>>> def unique_everseen(iterable, key=None):
...     "List unique elements, preserving order. Remember all elements ever seen."
...     # unique_everseen('AAAABBBCCDAABBB') --> A B C D
...     # unique_everseen('ABBCcAD', str.lower) --> A B C D
...     seen = set()
...     seen_add = seen.add
...     if key is None:
...         for element in iterable:
...             if element not in seen:
...                 seen_add(element)
...                 yield element
...     else:
...         for element in iterable:
...             k = key(element)
...             if k not in seen:
...                 seen_add(k)
...                 yield element

>>> def unique_justseen(iterable, key=None):
...     "List unique elements, preserving order. Remember only the element just seen."
...     # unique_justseen('AAAABBBCCDAABBB') --> A B C D A B
...     # unique_justseen('ABBCcAD', str.lower) --> A B C A D
...     return imap(next, imap(itemgetter(1), groupby(iterable, key)))

This is not part of the examples but it tests to make sure the definitions
perform as purported.

>>> take(10, count())
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

>>> list(enumerate('abc'))
[(0, 'a'), (1, 'b'), (2, 'c')]

>>> list(islice(tabulate(lambda x: 2*x), 4))
[0, 2, 4, 6]

>>> it = iter(xrange(10))
>>> consume(it, 3)
>>> next(it)
3
>>> consume(it)
>>> next(it, 'Done')
'Done'

>>> nth('abcde', 3)
'd'

>>> nth('abcde', 9) is None
True

>>> [all_equal(s) for s in ('', 'A', 'AAAA', 'AAAB', 'AAABA')]
[True, True, True, False, False]

>>> quantify(xrange(99), lambda x: x%2==0)
50

>>> a = [[1, 2, 3], [4, 5, 6]]
>>> flatten(a)
[1, 2, 3, 4, 5, 6]

>>> list(repeatfunc(pow, 5, 2, 3))
[8, 8, 8, 8, 8]

>>> import random
>>> take(5, imap(int, repeatfunc(random.random)))
[0, 0, 0, 0, 0]

>>> list(pairwise('abcd'))
[('a', 'b'), ('b', 'c'), ('c', 'd')]

>>> list(pairwise([]))
[]

>>> list(pairwise('a'))
[]

>>> list(islice(padnone('abc'), 0, 6))
['a', 'b', 'c', None, None, None]

>>> list(ncycles('abc', 3))
['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']

>>> dotproduct([1,2,3], [4,5,6])
32

>>> list(grouper(3, 'abcdefg', 'x'))
[('a', 'b', 'c'), ('d', 'e', 'f'), ('g', 'x', 'x')]

>>> list(roundrobin('abc', 'd', 'ef'))
['a', 'd', 'e', 'b', 'f', 'c']

>>> list(powerset([1,2,3]))
[(), (1,), (2,), (3,), (1, 2), (1, 3), (2, 3), (1, 2, 3)]

>>> all(len(list(powerset(range(n)))) == 2**n for n in range(18))
True

>>> list(powerset('abcde')) == sorted(sorted(set(powerset('abcde'))), key=len)
True

>>> list(unique_everseen('AAAABBBCCDAABBB'))
['A', 'B', 'C', 'D']

>>> list(unique_everseen('ABBCcAD', str.lower))
['A', 'B', 'C', 'D']

>>> list(unique_justseen('AAAABBBCCDAABBB'))
['A', 'B', 'C', 'D', 'A', 'B']

>>> list(unique_justseen('ABBCcAD', str.lower))
['A', 'B', 'C', 'A', 'D']

t
   libreftestc         C   sÀ   t  t t t t t t t f } t j	 | Œ  |  r¥ t
 t d ƒ r¥ d d  l } d  g d } xA t t | ƒ ƒ D]- } t j	 | Œ  | j ƒ  t j ƒ  | | <ql W| GHn  t j t j t |  ƒ d  S(   Nt   gettotalrefcountiÿÿÿÿi   (   R"   R[  RJ  Rj  Rh  R�  R/  RC  R    t   run_unittestt   hasattrR†   t   gcRF   Rç   R7   t   collectR‰  t   run_doctestt   modulesR   (   t   verboset   test_classesRŒ  t   countsR
   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_itertools.pyt	   test_mainD  s    		
t   __main__R�  (6   R-  t   testR    t	   itertoolsRû   t   decimalR   t	   fractionsR   R†   R   Rè   RŠ   RŒ   t	   functoolsR   R"  t   ImportErrorRF   t   MAX_Py_ssize_tR‚   t   minsizeR   R	   R   R   R   R   R   R   R!   t   TestCaseR"   R/  RC  RJ  RS  RT  R  RV  RÉ   RX  RY  RZ  R   R[  Rh  Rj  R�  Rˆ  t   __test__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_itertools.pyt   <module>   sh   

									ÿ ÿ ÿ ãR*a		
		‹^ÿ 