+
    Bi                        ^ RI t ^ RIt^ RIHt ^ RIHtHt ^ RIHtHtH	t	 ^ RIH
t
 ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt. ROt ! R R4      t ! R R	4      t ! R
 R4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R]P<                  4      t]R8X  d   ]P@                  ! 4        R# R# )     N)cpython_only)TESTFNunlink)check_free_after_iterating	ALWAYS_EQNEVER_EQ)
BrokenIterc                   2   a  ] tR t^t o R tR tR tRtV tR# )BasicIterClassc                     Wn         ^ V n        R# r   N)niselfr   s   &&%/usr/lib/python3.14/test/test_iter.py__init__BasicIterClass.__init__    s        c                f    V P                   pWP                  8  d   \        hV^,           V n         V#    )r   r   StopIteration)r   ress   & r   __next__BasicIterClass.__next__#   s*    ff&&=q
r   c                    V # N r   s   &r   __iter__BasicIterClass.__iter__)       r   )r   r   N	__name__
__module____qualname____firstlineno__r   r   r!   __static_attributes____classdictcell____classdict__s   @r   r   r      s      r   r   c                   ,   a  ] tR t^,t o R tR tRtV tR# )IteratingSequenceClassc                    Wn         R # r   r   r   s   &&r   r   IteratingSequenceClass.__init__-       r   c                ,    \        V P                  4      # r   )r   r   r    s   &r   r!   IteratingSequenceClass.__iter__/   s    dff%%r   r0   Nr%   r&   r'   r(   r   r!   r)   r*   r+   s   @r   r.   r.   ,   s     & &r   r.   c                   2   a  ] tR t^2t o R tR tR tRtV tR# )IteratorProxyClassc                    Wn         R # r   r   r   r   s   &&r   r   IteratorProxyClass.__init__3   r2   r   c                ,    \        V P                  4      # r   )nextr   r    s   &r   r   IteratorProxyClass.__next__5   s    DFF|r   c                    V # r   r   r    s   &r   r!   IteratorProxyClass.__iter__7   r#   r   r9   Nr$   r+   s   @r   r7   r7   2   s      r   r7   c                   ,   a  ] tR t^:t o R tR tRtV tR# )SequenceClassc                    Wn         R # r   r0   r   s   &&r   r   SequenceClass.__init__;   r2   r   c                T    ^ Tu;8:  d   V P                   8  d    V#  \        h\        hr   )r   
IndexErrorr:   s   &&r   __getitem__SequenceClass.__getitem__=   s(    ?DFF?H  *r   r0   Nr%   r&   r'   r(   r   rH   r)   r*   r+   s   @r   rB   rB   :   s      r   rB   c                   ,   a  ] tR t^Ct o R tR tRtV tR# )SequenceProxyClassc                    Wn         R # r   s)r   rO   s   &&r   r   SequenceProxyClass.__init__D   r2   r   c                (    V P                   V,          # r   rN   r:   s   &&r   rH   SequenceProxyClass.__getitem__F   s    vvayr   rN   NrJ   r+   s   @r   rL   rL   C   s      r   rL   c                   &   a  ] tR t^It o R tRtV tR# )UnlimitedSequenceClassc                    V# r   r   r:   s   &&r   rH   "UnlimitedSequenceClass.__getitem__J       r   r   Nr%   r&   r'   r(   rH   r)   r*   r+   s   @r   rT   rT   I   s      r   rT   c                       ] tR t^MtRtR# )DefaultIterClassr   N)r%   r&   r'   r(   r)   r   r   r   rZ   rZ   M   s    r   rZ   c                   *   a  ] tR t^Pt o R tRtRtV tR# )NoIterClassc                    V# r   r   r:   s   &&r   rH   NoIterClass.__getitem__Q   rW   r   Nr   )r%   r&   r'   r(   rH   r!   r)   r*   r+   s   @r   r\   r\   P   s     Hr   r\   c                   &   a  ] tR t^Ut o R tRtV tR# )BadIterableClassc                    \         hr   )ZeroDivisionErrorr    s   &r   r!   BadIterableClass.__iter__V   s    r   r   Nr%   r&   r'   r(   r!   r)   r*   r+   s   @r   r`   r`   U   s        r   r`   c                   ,   a  ] tR t^Yt o R tR tRtV tR# )CallableIterClassc                    ^ V n         R# r   r9   r    s   &r   r   CallableIterClass.__init__Z   s	    r   c                T    V P                   pV^,           V n         V^d8  d   \        hV# r   )r   rG   r:   s   & r   __call__CallableIterClass.__call__\   s(    FFQs7r   r9   N)r%   r&   r'   r(   r   rj   r)   r*   r+   s   @r   rf   rf   Y   s      r   rf   c                   ,   a  ] tR t^ct o R tR tRtV tR# )EmptyIterClassc                    ^ # rF   r   r    s   &r   __len__EmptyIterClass.__len__d   s    r   c                    \         hr   r   r:   s   &&r   rH   EmptyIterClass.__getitem__f   s    r   r   N)r%   r&   r'   r(   ro   rH   r)   r*   r+   s   @r   rm   rm   c   s      r   rm   c                     a  ] tR t^kt o R?R ltR?R ltR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R  t#R! t$R" t%R# t&R$ t'R% t(R& t)R' t*R( t+R) t,R* t-R+ t.]/R, 4       t0R- t1R. t2R/ t3R0 t4R1 t5R2 t6R3 t7R4 t8R5 t9R6 t:R7 t;]/R8 4       t<R9 t=R: t>R; t?R< t@R=tAV tBR># )@TestCasec                    V'       d   V P                  W4       . p  \        V4      pTP                  T4       K     \         d     Mi ; iT P	                  YB4       R# r   N)check_pickler=   r   appendassertEqual)r   itseqpickler   vals   &&&&  r   check_iteratorTestCase.check_iteratorn   sZ    b&2h JJsO !  	"s   < A
	A
c                    V'       d   V P                  \        V4      V4       . pV F  pVP                  V4       K  	  V P                  WB4       R # r   )rx   iterry   rz   )r   exprr|   r}   r   r~   s   &&&&  r   check_for_loopTestCase.check_for_loop{   sA    d4j#.CJJsO "r   c                N   \        \        P                  ^,           4       F  p\        P                  ! W4      p\        P                  ! V4      pV P                  \        V\        P                  P                  4      4       V P                  \        V4      V4       \        P                  ! V4      p \        V4       \        P                  ! YS4      p\        P                  ! T4      pT P                  \        T4      TR,          4       K  	  R#   \         d     EK  i ; i)r   :r   NNN)ranger}   HIGHEST_PROTOCOLdumpsloads
assertTrue
isinstancecollectionsabcIteratorrz   listr=   r   )r   itorgr|   protodr{   s   &&&   r   rx   TestCase.check_pickle   s    622Q67EU*AaB OOJr;??+C+CDET"Xs+aBR R'AaBT"Xs2w/! 8 ! s   5DD$#D$c                r    V P                  \        \        ^
4      4      \        \        ^
4      4      4       R# 
   N)r   r   r   r   r    s   &r   test_iter_basicTestCase.test_iter_basic   "    DrOT%)_=r   c                ~    \        \        ^
4      4      p\        V4      p\        V4      pV P                  W#J 4       R# r   )r   r   r   r   )r   r|   r{   it2s   &   r   test_iter_idempotencyTestCase.test_iter_idempotency   s/    59o#Y2h	"r   c                r    V P                  \        \        ^
4      4      \        \        ^
4      4      4       R# r   r   r   r   r   r    s   &r   test_iter_for_loopTestCase.test_iter_for_loop   r   r   c                    \        ^4      p. p\        V4       F:  p\        V4       F(  p\        V4       F  pVP                  W4V34       K  	  K*  	  K<  	  V P                  V\        4       R#    N)r   r   ry   rz   TRIPLETS)r   r|   r   r   jks   &     r   test_iter_independenceTestCase.test_iter_independence   s\    AhcA#YcAJJay) #   	h'r   c           
         \        ^4      p\        V4       UUUu. uF+  p\        V4       F  p\        V4       F  pW#V3NK	  	  K  	  K-  	  ppppV P                  V\        4       R# u upppi r   )r   r   rz   r   r   r|   r   r   r   r   s   &     r   test_nested_comprehensions_iter(TestCase.test_nested_comprehensions_iter   sk    AhS	I!149ad3i ay>G +4 ! 	 Ih'Is   1A(c           
         \        ^4      pV UUUu. uF  q! F  q1 F  qBW43NK  	  K  	  K  	  ppppV P                  V\        4       R# u upppi r   )r   rz   r   r   s   &     r   test_nested_comprehensions_for'TestCase.test_nested_comprehensions_for   sG    Ah"%@#Qs!Cq1yCysy#@h' As   A
c                `    V P                  \        ^
4      \        \        ^
4      4      4       R# r   )r   r.   r   r   r    s   &r   test_iter_class_forTestCase.test_iter_class_for   s     226U2YHr   c                r    V P                  \        \        ^
4      4      \        \	        ^
4      4      4       R# r   )r   r   r.   r   r   r    s   &r   test_iter_class_iterTestCase.test_iter_class_iter   s%    D!7!;<d59oNr   c                `    V P                  \        ^
4      \        \        ^
4      4      4       R# r   )r   rB   r   r   r    s   &r   test_seq_class_forTestCase.test_seq_class_for   s    M"-tE"I?r   c                r    V P                  \        \        ^
4      4      \        \	        ^
4      4      4       R# r   )r   r   rB   r   r   r    s   &r   test_seq_class_iterTestCase.test_seq_class_iter   s$    Dr!23T%)_Er   c           
     J   \        ^4      p\        \        P                  ^,           4       EFr  p\	        V4      p\        P
                  ! W13V4      p\        P                  ! V4      w  rV^Vn        V P                  \        V4      \        V4      4       V P                  \        V4      \        \        ^4      4      4       \        V4       \        P
                  ! W13V4      p\        P                  ! V4      w  rV^Vn        V P                  \        V4      \        V4      4       V P                  \        V4      \        \        ^^4      4      4       \        ^^4       F  p\        V4       K  	  \        P
                  ! W13V4      p\        P                  ! V4      w  rV^Vn        V P                  \        V4      \        V4      4       V P                  \        V4      \        \        ^^4      4      4       V P                  \        \        V4       \        P
                  ! W13V4      p\        P                  ! V4      w  rV^Vn        V P                  \!        V\"        P$                  P&                  4      4       V P                  \        V4      . 4       EKu  	  R#    N)rB   r   r}   r   r   r   r   r   assertIstyperz   r   r=   assertRaisesr   r   r   r   r   r   )r   origr   itorigr   r{   r|   r   s   &       r   #test_mutating_seq_class_iter_pickle,TestCase.test_mutating_seq_class_iter_pickle   s   Q622Q67E$ZFf^U3All1oGBCEMM$r(DL1T"XtE!H~6 Lf^U3All1oGBCEMM$r(DL1T"XtE!QK'89 1a[V !f^U3All1oGBCEMM$r(DL1T"XtE!QK'89 mT6:f^U3All1oGBCEOOJr;??+C+CDET"Xr*A 8r   c                (   \        ^4      p\        V4      p\        V4      pV F  p\        V4       K  	  ^Vn        V P	                  \        V4      . 4       V P	                  \        V4      ^^.4       V P	                  \        V4      . RO4       R# )r   N)r   r      r      r      )rB   r   r=   r   rz   r   )r   aexhitempitxs   &    r   &test_mutating_seq_class_exhausted_iter/TestCase.test_mutating_seq_class_exhausted_iter   sw    !QQAK eb)eq!f-a"78r   c                  aa \         P                  oR \        R\        /oRVV3R llp\	        4       3\        ^4      3\        ^4      3RR ^ 3\        \        ,          3.p \        P                  ! VR 4      pV P                  V! R4      SR ,          R	34       V P                  V! . RO4      SR ,          . 334       V P                  V! RSR,          ! \        \        ^4      4      4      4      \        . 334       V F"  pV P                  V! V!  SR ,          R
34       K$  	  SP                  4        F8  w  rV\        P                   ! \"        4      ;_uu_ 4        SV RRR4       VSV&   K:  	  R#   + '       g   i     L; i  SP                  4        FL  w  rV\        P                   ! \"        4      ;_uu_ 4        ST RRR4       M  + '       g   i     M; iTST&   KN  	  i ; i)r   reversedNc                    < Vf   \        V4      M
\        W4      p ! R R4      pSV  SV ,          SV! W4      &   VP                  4       # )Nc                   2   a  ] tR tRt o R tR tR tRtV tR# )KTestCase.test_reduce_mutating_builtins_iter.<locals>.run.<locals>.CustomStri  c                    Wn         W n        R # r   )nameiterator)r   r   r   s   &&&r   r   TTestCase.test_reduce_mutating_builtins_iter.<locals>.run.<locals>.CustomStr.__init__	  s     $I$,Mr   c                ,    \        V P                  4      # r   )hashr   r    s   &r   __hash__TTestCase.test_reduce_mutating_builtins_iter.<locals>.run.<locals>.CustomStr.__hash__  s    		?*r   c                H    \        V P                  4       WP                  8H  # r   )r   r   r   )r   others   &&r   __eq__RTestCase.test_reduce_mutating_builtins_iter.<locals>.run.<locals>.CustomStr.__eq__  s    
 ' II--r   )r   r   N)	r%   r&   r'   r(   r   r   r   r)   r*   r+   s   @r   	CustomStrr     s     -+. .r   r   )r   
__reduce__)builtin_nameitemsentinelr{   r   builtins_dictr   s   &&&  r   run8TestCase.test_reduce_mutating_builtins_iter.<locals>.run  sL    '/dT$5IB. ." l+9=l9KM)L56==?"r   c                      ^ # rF   r   r   r   r   <lambda>=TestCase.test_reduce_mutating_builtins_iter.<locals>.<lambda>#  s    Qr   xyzr   r   r   r   )r   ) )r   )builtins__dict__r   r   rm   bytes	bytearraytupleint	functoolspartialrz   r   r   items
contextlibsuppressKeyError)	r   r   typesrun_itercasekeyfuncr   r   s	   &      @@r   "test_reduce_mutating_builtins_iter+TestCase.test_reduce_mutating_builtins_iter   s    !))j(3	# 	#4 1XKq\ON3ZM
	* ((f5H Xe_tF|U.CDXi04<"2GH JZ 0eAh @AB5!
   44<2GH  "ZZ\	  ((22 &c*	 3
 &*c" * 32 "ZZ\	  ((22 &c*	 3222
 &*c" *s1   #CF E44F8G)?G	G)GG)c                d     ! R  R\         4      pV P                  \        \        V! 4       4       R# )c                   &   a  ] tR tRt o R tRtV tR# )5TestCase.test_new_style_iter_class.<locals>.IterClassiF  c                    V # r   r   r    s   &r   r!   >TestCase.test_new_style_iter_class.<locals>.IterClass.__iter__G      r   r   Nrd   r+   s   @r   	IterClassr  F  s      r   r
  N)objectr   	TypeErrorr   )r   r
  s   & r   test_new_style_iter_class"TestCase.test_new_style_iter_classE  s$    	 	 	)T9;7r   c                v    V P                  \        \        4       ^
4      \        \	        ^
4      4      RR7       R# )r   Tr}   N)r   r   rf   r   r   r    s   &r   test_iter_callableTestCase.test_iter_callableL  s+    D!2!4b94b	?SWXr   c                t    ^ .3R lpV P                  \        V^
4      \        \        ^
4      4      RR7       R# )r   c                 0    V ^ ,          pV^,           V ^ &   V# rF   r   stater   s   & r   spam)TestCase.test_iter_function.<locals>.spamQ  s    aAsE!HHr   Fr  Nr   r   r   r   r   r  s   & r   test_iter_functionTestCase.test_iter_functionP  s1    s 	 	DrNDrOEJr   c                t    ^ .3R lpV P                  \        V^4      \        \        ^
4      4      RR7       R# )r   c                 J    V ^ ,          pV^
8X  d   \         hV^,           V ^ &   V# rF   rr   r  s   & r   r  .TestCase.test_iter_function_stop.<locals>.spamY  s*    aABw##sE!HHr   Fr  Nr  r  s   & r   test_iter_function_stop TestCase.test_iter_function_stopX  s1    s 	 	DrNDrOEJr   c                   aaaa ^o^oR oVVVV3R loRSn         \        SS4      Sn        V P                  \        4      ;_uu_ 4        \        SP                  4       RRR4       R#   + '       g   i     R# ; i)r   c                    \        V 4       R# )z2Exhaust an iterator without raising StopIteration.N)r   )r   s   &r   exhaustLTestCase.test_iter_function_concealing_reentrant_exhaustion.<locals>.exhausth  s	    Nr   c                  b   < SP                   '       d   S# R Sn         S! SP                  4       S # T)is_recursive_callr   )HAS_MORENO_MOREr$  r  s   r   r  ITestCase.test_iter_function_concealing_reentrant_exhaustion.<locals>.spaml  s/     %%%%)D"DMM"Or   FN)r(  r   r   r   r   r=   )r   r)  r*  r$  r  s   &@@@@r   2test_iter_function_concealing_reentrant_exhaustion;TestCase.test_iter_function_concealing_reentrant_exhaustiona  sb     		 	 "'T7+}-- .---s   
A**A;	c           	         ^ .3R lp. p \        V^4       F  pVP                  V4       K  	  V P                  R4       R#   \         d)    T P	                  T\        \        ^
4      4      4        R# i ; i)r   c                 J    V ^ ,          pV^,           V ^ &   V^
8X  d   \         hV# rF   )RuntimeErrorr  s   & r   r  .TestCase.test_exception_function.<locals>.spam|  s*    aAsE!HBw""Hr   should have raised RuntimeErrorN)r   ry   failr0  rz   r   r   )r   r  r   r   s   &   r   test_exception_function TestCase.test_exception_function{  sk    s 	 	9$^

1 $
 II78  	3S$uRy/2	3s   $A /A54A5c           	          ! R  R\         4      p. p V! ^4       F  pVP                  V4       K  	  V P                  R4       R#   \         d)    T P	                  T\        \        ^
4      4      4        R# i ; i)c                   &   a  ] tR tRt o R tRtV tR# )9TestCase.test_exception_sequence.<locals>.MySequenceClassi  c                F    V^
8X  d   \         h\        P                  W4      # r   )r0  rB   rH   r:   s   &&r   rH   ETestCase.test_exception_sequence.<locals>.MySequenceClass.__getitem__  s     7&&$0099r   r   NrX   r+   s   @r   MySequenceClassr8         : :r   r<  r2  N)rB   ry   r3  r0  rz   r   r   )r   r<  r   r   s   &   r   test_exception_sequence TestCase.test_exception_sequence  sl    	:m 	:
 	9$R(

1 )
 II78  	3S$uRy/2	3s    A /A98A9c                |     ! R  R\         4      pV P                  V! ^4      \        \        ^
4      4      RR7       R# )c                   &   a  ] tR tRt o R tRtV tR# )4TestCase.test_stop_sequence.<locals>.MySequenceClassi  c                F    V^
8X  d   \         h\        P                  W4      # r:  )r   rB   rH   r:   s   &&r   rH   @TestCase.test_stop_sequence.<locals>.MySequenceClass.__getitem__  s     7''$0099r   r   NrX   r+   s   @r   r<  rB    r=  r   r<  Fr  N)rB   r   r   r   )r   r<  s   & r   test_stop_sequenceTestCase.test_stop_sequence  s2    	:m 	:
 	OB/eBiOr   c                r    V P                  \        \        R 4      4      \        \        R 4      4      4       R# )i'  Nr   r    s   &r   test_iter_big_rangeTestCase.test_iter_big_range  s$    Du.U5\0BCr   c                <    V P                  \        . 4      . 4       R # r   r   r   r    s   &r   test_iter_emptyTestCase.test_iter_empty  s    DHb)r   c                `    V P                  \        R4      \        \        ^
4      4      4       R# )r   N)
r   r   r   r   r   r   r         	   )r   r   r   r   r    s   &r   test_iter_tupleTestCase.test_iter_tuple  s     D!67eBiIr   c                r    V P                  \        \        ^
4      4      \        \        ^
4      4      4       R# r   r   r    s   &r   test_iter_rangeTestCase.test_iter_range  r   r   c                @    V P                  \        R 4      . RO4       R# abcdeN)r   bcr   erK  r    s   &r   test_iter_stringTestCase.test_iter_string  s    DM+DEr   c                    / p\        ^
4       F  pRW&   K	  	  V P                  V\        VP                  4       4      4       R# r   )r   r   r   keys)r   dictr   s   &  r   test_iter_dictTestCase.test_iter_dict  s7    rADG D$tyy{"34r   c                   \        \        R RR7      p \        ^4       F  pVP                  RV,          4       K  	  VP	                  4        \        \        RRR7      p V P                  V. RORR7       V P                  V. RR7       VP	                  4         \        \        4       R#   TP	                  4        i ; i  \         d     R# i ; i  TP	                  4         \        \        4       i   \         d     i i ; i; i)	wutf-8encoding%d
rFr  Nz0
1
2
3
4
)openr   r   writecloser   r   OSError)r   fr   s   &  r   test_iter_fileTestCase.test_iter_file  s    w/	1X
#  GGIw/	#FuU2e4GGIv GGI   GGIv sM   *B- !*C C -B?CCD&C65D6DDDDc                *   V P                  \        \        ^4      4      \        \        ^4      4      4       V P                  \        \        ^ 4      4      . 4       V P                  \        R
4      . 4       R^R^R^/pV P                  \        V4      \        VP	                  4       4      4       V P                  \        \        \        4       V P                  \        \        ^*4       \        \        RRR7      p \        ^4       F  pVP                  RV,          4       K  	  VP                  4        \        \        RRR7      p V P                  \        V4      . RO4       VP                  ^ ^ 4       V P                  \        V4      . RO4       VP                  4         \        \        4       R	#   TP                  4        i ; i  \         d     R	# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   onetwothreere  rf  rg  ri  rj  Nr   rk  )rz   r   rB   r   r`  r   r  rp  r   rq  rr  seekr   rs  r   r   rt  r   s   &   r   test_builtin_listTestCase.test_builtin_list  s   mA./eAh@mA./4b2&Aua!,a$qvvx.1)T40)T2.w/	1X
#  GGIw/
	T!W&IJFF1aLT!W@B GGIv GGI   GGIv sO   =*F8 
AG 'G 8G
GGH1H HHHHHc                j   V P                  \        \        ^4      4      R4       V P                  \        \        ^ 4      4      R4       V P                  \        . 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       R^R^R^/pV P                  \        V4      \        VP                  4       4      4       V P	                  \
        \        \        4       V P	                  \
        \        ^*4       \        \        RRR7      p \        ^4       F  pVP                  RV,          4       K  	  VP                  4        \        \        R	RR7      p V P                  \        V4      R4       VP                  ^ ^ 4       V P                  \        V4      R4       VP                  4         \        \        4       R
#   TP                  4        i ; i  \         d     R
# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   r   rx  ry  rz  re  rf  rg  ri  rj  Nr   r   r   r   r   r   r   rZ  r[  rk  )rz   r   rB   r`  r   r  r   rp  r   r   rq  rr  r{  r   rs  r|  s   &   r   test_builtin_tupleTestCase.test_builtin_tuple  s   }Q/0/B}Q/0"5rB'rB'u7Aua!,q5?3)UD1)UB/w/	1X
#  GGIw/
	U1X'JKFF1aLU1X@B GGIv GGI   GGIv sO   !*G .AG? G- G*-G<;G<?H2H! H2!H/,H2.H//H2c           
        V P                  \        \        R \        ^4      4      4      \        \	        ^^4      4      4       V P                  \        \        R \        ^ 4      4      4      . 4       V P                  \        \        R R4      4      . 4       V P                  \        \        R R4      4      . RO4       R^R^R^/pV P                  \        \        R V4      4      \        VP                  4       4      4       V P                  \        \        R \        4       V P                  \        \        R ^*4        ! R R4      pV! R4      pV! R4      p ! R	 R
4      pV! W4.^,          !  pV P                  \        \        R V4      4      V.^,          4       V P                  \        \        R \        V4      4      4      V.^,          4       R # )Nr   rx  ry  rz  c                   ,   a  ] tR tRt o R tR tRtV tR# )-TestCase.test_builtin_filter.<locals>.Booleani   c                    Wn         R # r   truth)r   r  s   &&r   r   6TestCase.test_builtin_filter.<locals>.Boolean.__init__!  s    "
r   c                    V P                   # r   r  r    s   &r   __bool__6TestCase.test_builtin_filter.<locals>.Boolean.__bool__#  s    zz!r   r  N)r%   r&   r'   r(   r   r  r)   r*   r+   s   @r   Booleanr     s     #" "r   r  TFc                   ,   a  ] tR tRt o R tR tRtV tR# ))TestCase.test_builtin_filter.<locals>.Seqi(  c                    Wn         R # r   vals)r   argss   &*r   r   2TestCase.test_builtin_filter.<locals>.Seq.__init__)  s     	r   c                :     ! R  R4      pV! V P                   4      # )c                   2   a  ] tR tRt o R tR tR tRtV tR# )CTestCase.test_builtin_filter.<locals>.Seq.__iter__.<locals>.SeqIteri,  c                     Wn         ^ V n        R# r   )r  r   )r   r  s   &&r   r   LTestCase.test_builtin_filter.<locals>.Seq.__iter__.<locals>.SeqIter.__init__-  s    $(	!"r   c                    V # r   r   r    s   &r   r!   LTestCase.test_builtin_filter.<locals>.Seq.__iter__.<locals>.SeqIter.__iter__0  s    #r   c                    V P                   pV^,           V n         V\        V P                  4      8  d   V P                  V,          # \        hr   )r   lenr  r   r:   s   & r   r   LTestCase.test_builtin_filter.<locals>.Seq.__iter__.<locals>.SeqIter.__next__2  s:     FF!"Qs499~-#'99Q</"//r   )r   r  N	r%   r&   r'   r(   r   r!   r   r)   r*   r+   s   @r   SeqIterr  ,  s     #$0 0r   r  r  )r   r  s   & r   r!   2TestCase.test_builtin_filter.<locals>.Seq.__iter__+  s    0 0 tyy))r   r  Nr5   r+   s   @r   Seqr  (  s     !* *r   r  c                     V '       * # r   r   r   s   &r   r   .TestCase.test_builtin_filter.<locals>.<lambda><      1ur   c                     V '       * # r   r   r  s   &r   r   r  =  r  r   r   r  )	rz   r   filterrB   r   r`  r   r  r   )r   r   r  bTruebFalser  r|   s   &      r   test_builtin_filterTestCase.test_builtin_filter  sl   fT=+;<=eAqk*	,fT=+;<=rBfT2./4fT512ODAua!,fT1o.QVVX?)VT48)VT26	" 	"
 	* 	*& UOb(*f_c:;fXb[If_d3i@AF8B;Or   c                   V P                  \        \        ^4      4      ^4       V P                  \        \        ^4      4      ^ 4       V P                  \        ^R4      ^4       V P                  \        ^R4      R4       R^R^R^/pV P                  \        V4      R4       V P                  \        V4      R4       V P                  \        VP	                  4       4      ^4       V P                  \        \        VP	                  4       4      4      ^4       \        \        RRR7      p VP                  R4       VP                  R4       VP                  R	4       VP                  4        \        \        R
RR7      p V P                  \        V4      R	4       VP                  ^ ^ 4       V P                  \        V4      R4       VP                  4         \        \        4       R#   TP                  4        i ; i  \         d     R# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   rx  ry  rz  re  rf  rg  zmedium line
zxtra large line
zitty-bitty line
rj  N)rz   maxrB   minvaluesr   rp  r   rq  rr  r{  r   rs  )r   r   rt  s   &  r   test_builtin_max_minTestCase.test_builtin_max_min@  s   ]1-.2]1-.2QQ'QR(Aua!,Q'Q'QXXZ!,T!((*-.2w/	GGO$GG'(GG'(GGIw/		SV%89FF1aLSV%89GGIv GGI   GGIv sO   -3G- AH H -G?HHI&H65I6IIIIc           
     j   V P                  \        \        R  \        ^4      4      4      \        \	        ^^4      4      4       R^R^R^/pV P                  \        \        V3R lV4      4      \        VP                  4       4      4       \        VP                  4       4      p\	        ^4       Uu. uFT  pV\        V4      8  ;'       d    W#,          ;'       g    RTV\        V4      8  ;'       d    W#,          ;'       g    R3NKV  	  pp\        \        RRR7      p \	        ^
4       F"  pVP                  R	V,          R
,           4       K$  	  VP                  4        \        \        RRR7      p V P                  \        \        \        V4      4      \        \	        ^^^4      4      4       VP                  4         \        \        4       R# u upi   TP                  4        i ; i  \         d     R# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)c                     V ^,           # r   r   r  s   &r   r   +TestCase.test_builtin_map.<locals>.<lambda>a  s    AaCr   rx  ry  rz  c                     WV ,          3# r   r   )r   r   s   &&r   r   r  e  s
    !qTr   Nre  rf  rg  xy
rj  )rz   r   maprB   r   r   r`  r  rp  r   rq  rr  r   rs  )r   r   dkeysr   expectedrt  s   &     r   test_builtin_mapTestCase.test_builtin_map`  s   c-q1ABCeAqk*	, Aua!,ca":A>?aggi	*QVVX #1X' & QZ,,EH44QZ,,EH446 & 	 '
 w/	2Yq4(  GGIw/	T#c1+.U1b!_0EFGGIv#' GGI   GGIv sl   1GGG3GG 1G 4=G? G- G*-G<;G<?H2H! H2!H/,H2.H//H2c                N   V P                  \        \        4       4      . 4       V P                  \        \        . !  4      . 4       V P                  \        \        RR.!  4      RR.4       V P                  \        \        R4       V P                  \        \        \        ^
4      ^*4       V P                  \        \        \        ^
4      \        4       V P                  \        \        \        ^4      4      4      . RO4       V P                  \        \        \        ^4      4      4      . RO4       R^R^R^/pV P                  \        VP                  4       4      \        \        WP                  4       4      4      4        ! R R4      p\        \        RR	R
7      p VP                  R4       VP                  4        \        \        RR	R
7      p V P                  \        \        V! ^ 4      W2! R4      4      4      . RO4       VP                  4         \        \        4       T P                  \        \        \        ^4      4      4      \        ^4       Uu. uF  qD3NK  	  up4        ! R R4      p ! R RT4      p ! R RT4      pR pT P                  \!        T! 4       4      ^4       T P                  \!        T! 4       4      ^4       T P                  T! T! 4       4      T! \        ^4      4      4       T P                  T! T! 4       4      T! \        ^4      4      4       T P                  T! T! 4       4      T! \        ^4      4      4       \        ^4       Uu. uF  qDT3NK  	  p	pT! 4       T! 4       T! 4       3 F6  p
T! 4       T! 4       T! 4       3 F  pT P                  T! Y4      T	4       K  	  K8  	  R#   TP                  4        i ; i  \         d     ELi ; i  TP                  4         \        \        4       i   \         d     i i ; i; iu upi u upi )r   abNrx  ry  rz  c                   2   a  ] tR tRt o R tR tR tRtV tR# )+TestCase.test_builtin_zip.<locals>.IntsFromi  c                    Wn         R # r   r9   )r   starts   &&r   r   4TestCase.test_builtin_zip.<locals>.IntsFrom.__init__  s    r   c                    V # r   r   r    s   &r   r!   4TestCase.test_builtin_zip.<locals>.IntsFrom.__iter__  r	  r   c                :    V P                   pV^,           V n         V# r   r9   r:   s   & r   r   4TestCase.test_builtin_zip.<locals>.IntsFrom.__next__  s    FF1r   r9   Nr  r+   s   @r   IntsFromr    s      r   r  re  rf  rg  z	a
bbb
cc
rj  c                   &   a  ] tR tRt o R tRtV tR# ).TestCase.test_builtin_zip.<locals>.NoGuessLen5i  c                     V^8  d   \         hV# )r   )rG   r:   s   &&r   rH   :TestCase.test_builtin_zip.<locals>.NoGuessLen5.__getitem__  s    6$$r   r   NrX   r+   s   @r   NoGuessLen5r    s      r   r  c                   &   a  ] tR tRt o R tRtV tR# )-TestCase.test_builtin_zip.<locals>.Guess3Len5i  c                    ^# r   r   r    s   &r   ro   5TestCase.test_builtin_zip.<locals>.Guess3Len5.__len__  s    r   r   Nr%   r&   r'   r(   ro   r)   r*   r+   s   @r   
Guess3Len5r    s      r   r  c                   &   a  ] tR tRt o R tRtV tR# ).TestCase.test_builtin_zip.<locals>.Guess30Len5i  c                    ^# )   r   r    s   &r   ro   6TestCase.test_builtin_zip.<locals>.Guess30Len5.__len__  s    r   r   Nr  r+   s   @r   Guess30Len5r    s      r   r  c                  &    \        \        V !  4      # r   )r   zip)r  s   *r   lzip'TestCase.test_builtin_zip.<locals>.lzip  s    T
##r   r   r   )r   r   )r   rZ  )rF   r   )r   ))r   a
r  )r   zbbb
i)r   zcc
i)rz   r   r  r   r  r   r.   rB   r   r  rp  r   rq  rr  r   rs  r  )r   r   r  rt  r   r  r  r  r  r  r   ys   &           r   test_builtin_zipTestCase.test_builtin_zip~  s9   ceb)c2h,cFD>23h5IJ)S$/)S%)R8)S%)S9c"8";<=+	-c-"234+	- Aua!,aggi$s1hhj/A*BC
	 
	 w/	GG()GGIw/
	T#hqk1htn"EF01
 GGIv 	c%(m,U1X.FXtX.FG	 		 		+ 		$ 	Z\*A.[]+R0km,d58n=jl+T%(^<km,d58n=$)!H-HqFH-
km;A ]JL+-?  aX6 @ <S GGI   GGIv  /G4 .sZ   !O  3O' O P
"P" OO$#O$'P9P	P	PPPPc                    ! R  R4      p\        \        RRR7      p VP                  R	4       VP                  4        \        \        RRR7      p RP	                  V! V4      4      pV P                  VR4       VP                  4         \        \        4       R#   TP                  4        i ; i  \         d     R# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)
c                   2   a  ] tR tRt o R tR tR tRtV tR# )4TestCase.test_unicode_join_endcase.<locals>.OhPhooeyi  c                4    \        V4      V n        ^ V n        R# r   )r   r{   r   )r   r|   s   &&r   r   =TestCase.test_unicode_join_endcase.<locals>.OhPhooey.__init__  s    s)r   c                    V # r   r   r    s   &r   r!   =TestCase.test_unicode_join_endcase.<locals>.OhPhooey.__iter__  r	  r   c                r    V P                   pV^,           V n         V^8X  d   R# \        V P                  4      # )r   zfooled you!)r   r=   r{   r:   s   & r   r   =TestCase.test_unicode_join_endcase.<locals>.OhPhooey.__next__  s.    FF16(DGG}$r   )r   r{   Nr  r+   s   @r   OhPhooeyr    s     % %r   r  re  rf  rg  rj  z - za
 - b
 - fooled you! - c
Na
b
c
)rp  r   rq  rr  joinrz   r   rs  )r   r  rt  gots   &   r   test_unicode_join_endcase"TestCase.test_unicode_join_endcase  s    	% 	% w/	GG)*GGIw/	**Xa[)CS"ABGGIv GGI   GGIv sM   B )C B2 B/2C CC7C&%C7&C41C73C44C7c           
     0   \        ^4      \        ^4      3 FK  p\        ^4       F  pV P                  W!4       K  	  RR^RR. ^^/RV3	 F  pV P	                  W!4       K  	  KM  	  V P                  \
        \        \        ^.4      4      4       V P                  \
        \        ^.4      4       V P	                  \
        \        \        \        .4      4      4       V P	                  \
        \        \        .4      4       V P                  \        \        \        \
        .4      4      4       V P                  \        \        \
        .4      4       V P                  \        R 4       V P                  \        R 4       V P                  \        R 4       R^R^R^R	R
/pV F3  pV P                  WC4       V P	                  WCP                  4       4       K5  	  VP                  4        F3  pV P                  WSP                  4       4       V P	                  WS4       K5  	  VP                  4        FG  w  rEV P                  WE3VP                  4       4       V P	                  WT3VP                  4       4       KI  	  \        \         RRR7      p VP#                  R4       VP%                  4        \        \         RRR7      p R FQ  pVP'                  ^ ^ 4       V P	                  Wv4       VP'                  ^ ^ 4       V P                  VR,           V4       KS  	  VP%                  4         \)        \         4       R#   TP%                  4        i ; i  \*         d     R# i ; i  TP%                  4         \)        \         4       i   \*         d     i i ; i; i)r   r   g(\5E@c                      ^^9   # r  r   r   r   r   r   -TestCase.test_in_and_not_in.<locals>.<lambda>  s    Q"Wr   c                      ^\         9  # r  )r  r   r   r   r   r    s    Qc\r   c                      ^\        4       9   # r  )r`   r   r   r   r   r    s    Q:J:L5Lr   rx  ry  rz                ?               @re  rf  rg  r  rj  r  Nr  )r   r   y      @      ()r.   rB   r   assertInassertNotInr   r7   r   rL   r   r   r  rb   r  r   rp  r   rq  rr  r{  r   rs  )r   sc5r   r   r   vrt  chunks   &       r   test_in_and_not_inTestCase.test_in_and_not_in  s   )!,mA.>>C1Xa% B5&"q!feSH  ( I ? 	i!3D!I!>?i!3QC!89$6tXJ7G$HI$6z$BCh 243D EFh 2I; ?@)_5)%9:+-LMAua!R4AMM!Q
+  AMM!XXZ(Q"  GGIDAMM1&!''),aVQWWY/  w/	GG%&GGIw/	q!  *q!ut|a0	  GGIv GGI   GGIv sO   L; AM" *M ;MMM"N4NNNNNNc                |   ^ RI Hp V P                  V! . RO^4      ^4       V P                  V! R^4      ^4       V P                  V! RR4      ^4       V P                  V! RR4      ^ 4       V P                  \        V^*^4       V P                  \        WV4       R^R^R^RR	/pV F  pV P                  V! W#4      ^4       K  	  V P                  V! VP                  4       ^4      ^4       V P                  V! VP                  4       R	4      ^4       V P                  V! VP                  4       R4      ^ 4       \        \        R
RR7      p VP                  R4       VP                  4        \        \        RRR7      p R F6  w  rVVP                  ^ ^ 4       V P                  V! WER,           4      V4       K8  	  VP                  4         \        \        4       R#   TP                  4        i ; i  \         d     R# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   )countOf12232526rx  ry  rz  r  r  re  rf  rg  za
b
c
b
rj  r  Nr   r   r   r   r   r   ))r   r   )rZ  r   )r[  r   )r   r   )operatorr  rz   r   r  r  rp  r   rq  rr  r{  r   rs  )r   r  r   r   rt  lettercounts   &      r   test_countOfTestCase.test_countOf(  s   $2A62A63/33/3)Wb!4)Ww?Aua!R4AWQ]A. Q/3R0!4R0!4w/	GG+,GGIw/		!Gq!  TM!:EB "H GGIv GGI   GGIv sN   G! <H G6 !G36HHH;H*)H;*H85H;7H88H;c                h   ^ RI Hp V P                  V! . RO^4      ^ 4       V P                  V! R^4      ^4       V P                  V! R^4      ^4       V P                  V! R^4      ^4       V P                  \        VR^ 4       V P                  \        VR^4       V P                  V! RR4      ^4       V P                  V! RR4      ^4       V P                  \        VRR4       V P                  \
        V^*^4       V P                  \
        WV4       V P                  \        V\        4       ^4       \        \        RRR7      p VP                  R	4       VP                  4        \        \        R
RR7      p \        V4      pV P                  V! VR4      ^4       V P                  V! VR4      ^4       V P                  V! VR4      ^ 4       V P                  \        WR4       VP                  4         \        \        4       \        ^4      p\!        ^4       F  pT P                  T! YE4      T4       K  	  T P                  \        YR4       R#   TP                  4        i ; i  \         d     Lpi ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   )indexOfr  r  5r	  re  rf  rg  z
a
b
c
d
e
rj  zb
zd
ze
r  Nr
  r  )r  r  rz   r   
ValueErrorr  rb   r`   rp  r   rq  rr  r   r   rs  r.   r   )r   r  rt  fitericlassr   s   &     r   test_indexOfTestCase.test_indexOfK  sE   $2A62A62A62A6*g}a@*g}a@3/33/3*gx=)Wb!4)Ww?+W6F6H!Lw/	GG12GGIw/	GEWUE2A6WUE2A6WUE2A6j'%@GGIv (*qAWV/3 *gr:% GGI   GGIv sO   	I =A-I> ;I- I*-I;:I;>J1J J1 J.+J1-J..J1c                H  a \        \        R RR7      p V P                  \        VP                  R4       V P                  \        VP                  ^*4       VP	                  RR.4       VP	                  R4       VP	                  RR/4       VP	                  / 4        ! R R4      o ! V3R	 lR
4      pVP	                  V! ^R4      4       VP                  4        \        \        RR7      p\        ^R4       Uu. uF  p\        V4      R,           NK  	  ppV P                  \        V4      V4       VP                  4         \        \        4       R# u upi   \         d     R# i ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)re  rf  rg  Nrl  rm  z5
c                   2   a  ] tR tRt o R tR tR tRtV tR# )*TestCase.test_writelines.<locals>.Iteratori  c                @    Wn         W n        V P                   V n        R # r   )r  finishr   r   r  r  s   &&&r   r   3TestCase.test_writelines.<locals>.Iterator.__init__  s    !&J"(K!ZZDFr   c                    V P                   V P                  8  d   \        h\        V P                   4      R ,           pV ;P                   ^,          un         V# )r  )r   r  r   str)r   results   & r   r   3TestCase.test_writelines.<locals>.Iterator.__next__  s<    vv,++ [4/FFFaKF!Mr   c                    V # r   r   r    s   &r   r!   3TestCase.test_writelines.<locals>.Iterator.__iter__  s    Kr   )r  r   r  Nr$   r+   s   @r   r   r    s     (
"   r   r   c                   4   <a  ] tR tRt o R tV3R ltRtV tR# )*TestCase.test_writelines.<locals>.Whateveri  c                    Wn         W n        R # r   r  r  r  s   &&&r   r   3TestCase.test_writelines.<locals>.Whatever.__init__  s    !&J"(Kr   c                >   < S! V P                   V P                  4      # r   r(  )r   r   s   &r   r!   3TestCase.test_writelines.<locals>.Whatever.__iter__  s    #DJJ<<r   )r  r  Nr5   )r,   r   s   @r   Whateverr&    s     )= =r   r,  i  r  )rn  ro  )rp  r   r   r  
writelinesrr  r   r   rz   r   r   rs  )r   rt  r,  r   r  r   s   &    @r   test_writelinesTestCase.test_writelinesu  sI   w/.	it<ir:LL%(LL(LL%'LL    = = LL!V,-GGIVg.A/4Q~>~!A~H>T!Wh/ GGIv ?   GGIv sT   C(E. =EE. E E. E+*E+.F! FF!FF!FF!c                   ^^r!V P                  W3R4       \        ^4      w  rpV P                  WV3R	4        \        ^4      w  rV P                  R4        \        ^4      w  rpV P                  R4        \        w  rpV P                  R4       ^^*^^*^^*/P                  4       w  rpV P                  WV3R
4       \        \        RRR7      pRp V F  pVP                  V4       K  	  VP                  4        \        \        RRR7      p Vw  rpV P                  WV3V4       VP                  4         \        \        4       \        ^4      ^*^/uw  rw  pT P                  YT3R4       R#   \         d     EL+i ; i  \         d     ELi ; i  \
         d     ELi ; i  TP                  4        i ; i  \         d     Li ; i  TP                  4         \        \        4       i   \         d     i i ; i; i)r   zshould have raised ValueErrorzshould have raised TypeErrorre  rf  rg  rj  Nr  r   r   r   )*   r2  r2  )r  zbb
zccc
)r   r   r2  )rz   r.   r3  r  r  r  r  rp  r   rq  rr  r   rs  )r   r   rZ  r[  rt  lineslines   &      r   test_unpack_iterTestCase.test_unpack_iter  s   !1!((+a!I.	7)!,DA II56	7,Q/GA! II56	6GA! II45b!RB'..0a!L1w/(	  GGIw/	GA!aAY.GGIv .a02r(!J/S  		  		  		 GGI   GGIv s   E5 F 9	F F+ G <G  5FFFFF('F(+F= GGH#G32H3H>H HHc                |    ! R  R\         4      pV! 4       pV P                  VP                  ^4       ?V P                  VP                  ^ 4       V! 4       V! 4       V! 4       .pV P                  VP                  ^4        \        V4      w  rE?V P                  VP                  ^ 4       R#   \         d     L,i ; i)c                   0   a  ] tR tRt o ^ tR tR tRtV tR# ).TestCase.test_ref_counting_behavior.<locals>.Ci  c                ^    V ;P                   ^,          un         \        P                  V 4      # r   )r  r  __new__)clss   &r   r;  6TestCase.test_ref_counting_behavior.<locals>.C.__new__  s    		Q	~~c**r   c                v    V P                   pVP                  ^ 8  g   Q hV;P                  ^,          un        R# r   )	__class__r  )r   r<  s   & r   __del__6TestCase.test_ref_counting_behavior.<locals>.C.__del__  s(    nnyy1}$}		Q	r   r   N)	r%   r&   r'   r(   r  r;  r@  r)   r*   r+   s   @r   Cr9    s     E+ r   rB  N)r  rz   r  r   r  )r   rB  r   lr   rZ  s   &     r   test_ref_counting_behavior#TestCase.test_ref_counting_behavior  s    	 	 C!$!$S!#qsO!$	7DA !$  		s   B- -B;:B;c                
   \        \        ^4      4      p\        V4      pV P                  \        V4      \        \        ^4      4      4       VP	                  \        ^^
4      4       V P                  \        V4      . 4       R# r   )r   r   r   rz   extendr   r   rZ  s   &  r   test_sinkstate_listTestCase.test_sinkstate_list  sZ    qNGa$uQx.1	q"a"%r   c                    Rp\        V4      pV P                  \        V4      \        \        ^4      4      4       V P                  \        V4      . 4       R# )r   Nr  r   rz   r   r   rH  s   &  r   test_sinkstate_tupleTestCase.test_sinkstate_tuple  s@    Ga$uQx.1a"%r   c                    R p\        V4      pV P                  \        V4      . RO4       V P                  \        V4      . 4       R# rX  )r   rz   r   rH  s   &  r   test_sinkstate_stringTestCase.test_sinkstate_string
  s9    Ga";<a"%r   c                    \        ^4      p\        V4      pV P                  \        V4      \        \	        ^4      4      4       ^
Vn        V P                  \        V4      . 4       R# r   )rB   r   rz   r   r   r   rH  s   &  r   test_sinkstate_sequence TestCase.test_sinkstate_sequence  sL    !Ga$uQx.1a"%r   c                    ^ .3R lp\        V^4      pV P                  \        V4      \        \        ^4      4      4       V P                  \        V4      . 4       R# )r   c                 T    V ^ ,          pV^,           V ^ &   V^
8X  d   \        R4      hV# )r   zshouldn't have gotten this far)AssertionErrorr  s   & r   r  .TestCase.test_sinkstate_callable.<locals>.spam  s0    aAsE!HBw$%EFFHr   NrL  )r   r  rZ  s   &  r   test_sinkstate_callable TestCase.test_sinkstate_callable  sI    s 	 qMa$uQx.1a"%r   c           
     2   ^^^^^ ^ ^^^^/p\        V4      VP                  4       VP                  4       VP                  4       3 FM  p\        V4      pV P	                  \        \        V4      4      ^4       V P	                  \        V4      . 4       KO  	  R# rw   )r   r`  r   r  rz   r  r   rH  s   &  r   test_sinkstate_dictTestCase.test_sinkstate_dict$  s|     q!AqAa1%a!&&(AGGIqxxz9AQASa\1-T!Wb) :r   c                    R  pV! 4       pV P                  \        V4      \        \        ^4      4      4       V P                  \        V4      . 4       R# )c               3   :   "   \        ^4       F  p V x  K	  	  R# 5ir   r   r9   s    r   gen*TestCase.test_sinkstate_yield.<locals>.gen.  s     1X    N)rz   r   r   )r   ra  rZ  s   &  r   test_sinkstate_yieldTestCase.test_sinkstate_yield-  s@    	 Ea$uQx.1a"%r   c                    \        ^4      p\        V4      pV P                  \        V4      \        \        ^4      4      4       V P                  \        V4      . 4       R# r   )r   r   rz   r   rH  s   &  r   test_sinkstate_rangeTestCase.test_sinkstate_range5  sD    !HGa$uQx.1a"%r   c                    \        ^4      p\        V4      p\        V4      pV P                  \	        V4      \	        \        \        ^4      \        ^4      4      4      4       V P                  \	        V4      . 4       R# r   )r   	enumerater   rz   r   r  )r   r   r\  rZ  s   &   r   test_sinkstate_enumerate!TestCase.test_sinkstate_enumerate;  sY    !HaLGa$s58U1X'>"?@a"%r   c                n   a  ! V3R  lR\         4      o S! 4        F  pK  	  R#   \         d     R# i ; i)c                   4   <a  ] tR tRt o R tV3R ltRtV tR# )'TestCase.test_3720.<locals>.BadIteratoriD  c                    V # r   r   r    s   &r   r!   0TestCase.test_3720.<locals>.BadIterator.__iter__E  r	  r   c                   < S= ^# r   )r   )r   BadIterators   &r   r   0TestCase.test_3720.<locals>.BadIterator.__next__G  s    (r   r   N)r%   r&   r'   r(   r!   r   r)   r*   )r,   rs  s   @r   rs  ro  D  s      r   rs  N)r  r  )r   r   rs  s   & @r   	test_3720TestCase.test_3720B  s5    	& 		 ] # 		s   % 44c                    R  p^ .R,          p\        ^4       F  pVP                  ^ 4       K  	  VP                  V! 4       4       V P                  \	        V4      R4       R# )c               3   :   "   \        R 4       F  p V x  K	  	  R# 5i)  Nr`  r9   s    r   ra  ITestCase.test_extending_list_with_iterator_does_not_segfault.<locals>.genW  s     3Z  rc  ry  i  N)r   poprG  rz   r  )r   ra  lstr   s   &   r   3test_extending_list_with_iterator_does_not_segfault<TestCase.test_extending_list_with_iterator_does_not_segfaultQ  sO    	 cCisAGGAJ 

35S3'r   c                J   \        \        4       4      pVP                  \        P                  ^,
          4       V P                  \        V4      \        P                  ^,
          4       V P                  \        V4      \        P                  ^,
          4       V P                  \        4      ;_uu_ 4        \        V4       RRR4       V P                  \        4      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     LC; i  + '       g   i     R# ; i)r   N)	r   rT   __setstate__sysmaxsizerz   r=   r   OverflowErrorr   r{   s   & r   test_iter_overflowTestCase.test_iter_overflow`  s     (*+
a(b3;;?3b3;;?3}--H . }--H .- .- .--s   7C>(D>D	D"	c                    \        \        4       4      pVP                  R4       V P                  \	        V4      ^ 4       V P                  \	        V4      ^4       R# )r2  Ni)r   rT   r  rz   r=   r  s   & r   test_iter_neg_setstateTestCase.test_iter_neg_setstaten  sD    (*+
b1%b1%r   c                2    \        V \        \        R4       R# )r   NrF   )r   r   rB   r    s   &r   test_free_after_iterating"TestCase.test_free_after_iteratingt  s    "4}dCr   c                    \         \        3 F#  pV P                  \        \        V! 4       4       K%  	  V P                  \
        \        \        4       4       R # r   )rZ   r\   r   r  r   rb   r`   )r   typs   & r   test_error_iterTestCase.test_error_iterw  s<    $k2Cisu5 3+T3C3EFr   c           	     ^   R  pR pR pVR3VR3VR33 F  w  rEV P                  V4      ;_uu_ 4        V! 4       p\        P                  ! VP                  4      ^ ,          p^pVP                  p	V P                  VP                  V	P                  ^,           4       V P                  VP                  V	P                  ^,           4       V P                  VP                  VP                  V,
          VP                  V,
           V4       RRR4       EK  	  R#   + '       g   i     EK  ; i)c                  b     \        R R7       F  p K  	  R#   \         d   pTu Rp?# Rp?ii ; i)T)init_raisesNr	   	Exceptionr   r\  s     r   r  6TestCase.test_exception_locations.<locals>.init_raises  .    #5A 6     .)..c                  b     \        R R7       F  p K  	  R#   \         d   pTu Rp?# Rp?ii ; i)T)next_raisesNr  r  s     r   r  6TestCase.test_exception_locations.<locals>.next_raises  r  r  c                  b     \        R R7       F  p K  	  R#   \         d   pTu Rp?# Rp?ii ; i)T)iter_raisesNr  r  s     r   r  6TestCase.test_exception_locations.<locals>.iter_raises  r  r  zBrokenIter(init_raises=True)zBrokenIter(next_raises=True)zBrokenIter(iter_raises=True)N)subTest	traceback
extract_tb__traceback____code__rz   linenoco_firstlineno
end_linenor4  colno	end_colno)
r   r  r  r  r  r  excrt  indentcos
   &         r   test_exception_locations!TestCase.test_exception_locations|  s    			 !,-KL +-KL +-KL ND d##f(():):;A>]]  2+<+<q+@A  r/@/@1/DE  &(81;;;O!P!)+ $#	  $##s   CDD,r   Nr'  )Cr%   r&   r'   r(   r   r   rx   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r   r,  r4  r>  rE  rH  rL  rR  rU  r]  rb  ru  r}  r  r  r  r  r  r  r  r  r  r.  r5  r   rD  rI  rM  rP  rS  rY  r\  rd  rg  rk  ru  r}  r  r  r  r  r  r)   r*   r+   s   @r   ru   ru   k   sp    
##0(>#>(((IO@F"+H	9F*R8YKK 49"9 PD*J>F5&>B*PZ@<M7^'T.b F';T1j20j % %8&&&&
&*&&&(  &DG
%+ %+r   ru   __main__))r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   r1  )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   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   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )!r  unittesttest.supportr   test.support.os_helperr   r   r   r   r   r	   r}   collections.abcr   r   r   r   r  r   r   r.   r7   rB   rL   rT   rZ   r\   r`   rf   rm   ru   r%   mainr   r   r   <module>r     s      % 1 H H #      
- & &    	 	 
     v+x   v+t! zMMO r   