+
    Bi                       ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt  ^ RIt ! R R4      t ! R R	4      tR
 tR tR t] P.                  R 4       t ! R R]P2                  4      t ! R R]P2                  4      t ! R R]P2                  4      t]P:                  ! ]
P<                  ;'       g    ]
P>                  R4       ! R R]P2                  4      4       t  ! R R]P2                  4      t! ! R R]P2                  4      t"]
PF                  ]P:                  ! ]RJ R4       ! R R]P2                  4      4       4       t$]%R8X  d   ]PL                  ! 4        R# R#   ] d    Rt ELEi ; i)    N)support)import_helper)warnings_helperassert_python_okc                   ,   a  ] tR t^t o R tR tRtV tR# )AsyncYieldFromc                    Wn         R # Nobj)selfr   s   &&+/usr/lib/python3.14/test/test_coroutines.py__init__AsyncYieldFrom.__init__   s        c              #  :   "   V P                    R j  xL
  R #  L5ir   r   r   s   &r   	__await__AsyncYieldFrom.__await__   s     88s   r   N__name__
__module____qualname____firstlineno__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# )
AsyncYieldc                    Wn         R # r   value)r   r$   s   &&r   r   AsyncYield.__init__   s    
r   c              #  *   "   V P                   x  R # 5ir   r#   r   s   &r   r   AsyncYield.__await__    s     jj   r#   Nr   r   s   @r   r!   r!      s      r   r!   c                *   "   V  F  pV5x  K
  	  R # 5ir    )iterablexs   & r   	asynciterr-   $   s      r(   c                     . pR p  VP                  V P                  R 4      4       K$    \         d4   pTP                  '       d   TP                  ^ ,          MR p R p?Y3# R p?ii ; ir   )appendsendStopIterationargs)corobufferresultexs   &   r   	run_asyncr7   *   s\     FF
	MM$))D/* 	#%777RWWQZF>	s    ) A''A""A'c                 ^   V P                  4       p. pR p^ p  V^,          '       d   VP                  \        V4      4       M VP                  VP                  R 4      4       V^,          pKW    \         d4   pTP
                  '       d   TP
                  ^ ,          MR p R p?Y#3# R p?ii ; ir   )r   r/   nextr0   r1   r2   )r3   awr4   r5   ir6   s   &     r   run_async__await__r<   8   s    		BFF	A
	1uud2h'bggdm,FA 	#%777RWWQZF>	s   A. AA. .B,9'B''B,c               #      "   \         P                  ! 4       ;_uu_ 4        \         P                  ! R 4       Rx  \        P                  ! 4        RRR4       R#   + '       g   i     R# ; i5i)ignoreN)warningscatch_warningssimplefilterr   
gc_collectr*   r   r   silence_coro_gcrC   K   s?     		 	 	"	"h' 
#	"	"	"s   A.0A
A.A+	%	A.c                   8   a  ] tR t^St o R tR tR tR tRtV t	R# )AsyncBadSyntaxTestc           
        . R NRNRNRNRNRNRNRNRNR	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NR<NR=NpV FY  pV P                  VR>7      ;_uu_ 4        V P                  \        4      ;_uu_ 4        \        VR?R@4       RARARA4       RARARA4       K[  	  RA#   + '       g   i     L; i  + '       g   i     K  ; i)Bz9def foo():
                await something()
            zawait something()z;async def foo():
                yield from []
            z=async def foo():
                await await fut
            zEasync def foo(a=await something()):
                pass
            zEasync def foo(a:await something()):
                pass
            z`async def foo():
                def bar():
                 [i async for i in els]
            z`async def foo():
                def bar():
                 [await i for i in els]
            zasync def foo():
                def bar():
                 [i for i in els
                    async for b in els]
            zasync def foo():
                def bar():
                 [i for i in els
                    for c in b
                    async for b in els]
            zasync def foo():
                def bar():
                 [i for i in els
                    async for b in els
                    for c in b]
            zkasync def foo():
                def bar():
                 [[async for i in b] for b in els]
            zasync def foo():
                def bar():
                 [i for i in els
                    for b in await els]
            zasync def foo():
                def bar():
                 [i for i in els
                    for b in els
                        if await b]
            z`async def foo():
                def bar():
                 [i for i in await els]
            zeasync def foo():
                def bar():
                 [i for i in els if await i]
            z?def bar():
                 [i async for i in els]
            zBdef bar():
                 {i: i async for i in els}
            z?def bar():
                 {i async for i in els}
            z?def bar():
                 [await i for i in els]
            z`def bar():
                 [i for i in els
                    async for b in els]
            zdef bar():
                 [i for i in els
                    for c in b
                    async for b in els]
            zdef bar():
                 [i for i in els
                    async for b in els
                    for c in b]
            z`def bar():
                 [i for i in els
                    for b in await els]
            z}def bar():
                 [i for i in els
                    for b in els
                        if await b]
            z?def bar():
                 [i for i in await els]
            zDdef bar():
                 [i for i in els if await i]
            zMdef bar():
                 [[i async for i in a] for a in elts]
            z1[[i async for i in a] for a in elts]
            z3async def foo():
                await
            z]async def foo():
                   def bar(): pass
                   await = 1
            z^async def foo():

                   def bar(): pass
                   await = 1
            zzasync def foo():
                   def bar(): pass
                   if 1:
                       await = 1
            zxdef foo():
                   async def bar(): pass
                   if 1:
                       await a
            z[def foo():
                   async def bar(): pass
                   await a
            z~def foo():
                   def baz(): pass
                   async def bar(): pass
                   await a
            zdef foo():
                   def baz(): pass
                   # 456
                   async def bar(): pass
                   # 123
                   await a
            zasync def foo():
                   def baz(): pass
                   # 456
                   async def bar(): pass
                   # 123
                   await = 2
            zdef foo():

                   def baz(): pass

                   async def bar(): pass

                   await a
            zasync def foo():

                   def baz(): pass

                   async def bar(): pass

                   await = 2
            zBasync def foo():
                   def async(): pass
            zBasync def foo():
                   def await(): pass
            zXasync def foo():
                   def bar():
                       await
            zKasync def foo():
                   return lambda async: await
            zGasync def foo():
                   return lambda a: await
            z	await a()z>async def foo(a=await b):
                   pass
            z>async def foo(a:await b):
                   pass
            z`def baz():
                   async def foo(a=await b):
                       pass
            z:async def foo(async):
                   pass
            zasync def foo():
                   def bar():
                        def baz():
                            async = 1
            zasync def foo():
                   def bar():
                        def baz():
                            pass
                        async = 1
            zdef foo():
                   async def bar():

                        async def baz():
                            pass

                        def baz():
                            42

                        async = 1
            zasync def foo():
                   def bar():
                        def baz():
                            pass
await foo()
            zdef foo():
                   def bar():
                        async def baz():
                            pass
await foo()
            z:async def foo(await):
                   pass
            z]def foo():

                   async def bar(): pass

                   await a
            z`def foo():
                   async def bar():
                        pass
await a
            z`def foo():
                   async for i in arange(2):
                       pass
            z[def foo():
                   async with resource:
                       pass
            z9async with resource:
                   pass
            z>async for i in arange(2):
                   pass
            code<test>execNsubTestassertRaisesSyntaxErrorcompiler   samplesrH   s   &  r   test_badsyntax_1#AsyncBadSyntaxTest.test_badsyntax_1U   sw   ~~
 $~~~~&'~./~89~BC~NO~\]~jk~tu~@A~NO~XY~bc~jk~rs~z{~BC~LM~XY~de~no~z{~BC~JK~RS~XY~`a~jk~vw~BC~NO~XY~de~tu~DE~VW~hi~pq~xy~BC~JK~R S~VW~^_~fg~pq~xy~DE~R
S~jk~vw~B	C	~J	K	~X	Y	~`	a	~h	i	~p	q	~v	w	~@
 D4(($*;*;K*H*Hh/ +I(( *H*H(((s$   C3<C 
C3 C0+C33Dc           
        . ROpV FY  pV P                  VR7      ;_uu_ 4        V P                  \        4      ;_uu_ 4        \        VRR4       RRR4       RRR4       K[  	  R#   + '       g   i     L; i  + '       g   i     K  ; i)1def foo():
                await = 1
            rG   rI   rJ   N)	rU   z9class Bar:
                def async(): pass
            z1class Bar:
                async = 1
            z.class async:
                pass
            z.class await:
                pass
            zimport math as awaitz!def async():
                passz2def foo(*, await=1):
                passasync = 1zprint(await=1)rK   rP   s   &  r   test_badsyntax_2#AsyncBadSyntaxTest.test_badsyntax_2  s`     
D D4(($*;*;K*H*Hh/ +I(( *H*H(((#   A9A&A9&A61A99B
c                    V P                  \        4      ;_uu_ 4        \        R RR4       RRR4       R#   + '       g   i     R# ; i)z	async = 1rI   rJ   N)rM   rN   rO   r   s   &r   test_badsyntax_3#AsyncBadSyntaxTest.test_badsyntax_3  s.    {++K62 ,+++s	   6A	c           
        . ROpV FY  pV P                  VR7      ;_uu_ 4        V P                  \        4      ;_uu_ 4        \        VRR4       RRR4       RRR4       K[  	  R#   + '       g   i     L; i  + '       g   i     K  ; i)def foo(await):
                async def foo(): pass
                async def foo():
                    pass
                return await + 1
            rG   rI   rJ   N)r]   zdef foo(await):
                async def foo(): pass
                async def foo(): pass
                return await + 1
            zdef foo(await):

                async def foo(): pass

                async def foo(): pass

                return await + 1
            zdef foo(await):
                """spam"""
                async def foo():                     pass
                # 123
                async def foo(): pass
                # 456
                return await + 1
            a:  def foo(await):
                def foo(): pass
                def foo(): pass
                async def bar(): return await_
                await_ = await
                try:
                    bar().send(None)
                except StopIteration as ex:
                    return ex.args[0] + 1
            rK   rP   s   &  r   test_badsyntax_4#AsyncBadSyntaxTest.test_badsyntax_4  s`    +
Z D4(($*;*;K*H*Hh/ +I(( *H*H(((rX   r*   N)
r   r   r   r   rR   rV   rZ   r^   r   r   r   s   @r   rE   rE   S   s!     C0J
%0N300 00r   rE   c                   &   a  ] tR tRt o R tRtV tR# )TokenizerRegrTesti  c                   . p\        R 4       F$  pVP                  RP                  VR7      4       K&  	  RP                  V4      p/ p\	        WV4       V P                  VR,          ! 4       R4       VR,          p/ p\	        WV4       V P                  VR,          ! 4       R4       V P                  \        P                  ! VR,          4      4       R# )	i  zdef i{i}(): return {i}r;   
i499i  z
async def foo():
    returnfooN)	ranger/   formatjoinrJ   assertEqual
assertTrueinspectiscoroutinefunction)r   bufr;   nss   &   r   test_oneline_defs#TokenizerRegrTest.test_oneline_defs  s    sAJJ/666;< iin SbFs+ 	//SbFs+33BuI>?r   r*   N)r   r   r   r   rp   r   r   r   s   @r   ra   ra     s     @ @r   ra   c                   $  a  ] tR tRt o 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+ t-R, t.R- t/R. t0R/ t1R0 t2R1 t3R2 t4R3 t5R4 t6R5 t7R6 t8R7 t9R8 t:R9 t;R: t<R; t=R< t>R= t?R> t@R? tAR@ tBRA tCRB tDRC tERD tFRE tGRF tHRG tIRH tJRI tKRJ tLRK tMRL tNRM tORN tPRO tQRP tRRQ tSRR tTRS tURT tVRU tWRV tXRW tYRXtZV t[RY# )ZCoroutineTesti  c                0    R  pV P                  VR4       R# )c               3      "   R x  R # 5ir   r*   r*   r   r   gen%CoroutineTest.test_gen_1.<locals>.gen  s     5   	r   N)assertNotHasAttr)r   rv   s   & r   
test_gen_1CoroutineTest.test_gen_1  s    c;/r   c                |   R  pV! 4       pV P                  V\        P                  4       V P                  \	        VP
                  P                  \        P                  ,          4      4       V P                  \	        VP
                  P                  \        P                  ,          4      4       V P                  \	        VP                  P                  \        P                  ,          4      4       V P                  \	        VP                  P                  \        P                  ,          4      4       V P                  \        V4      . ^
34       V P                  \        V! 4       4      . ^
34       R pV P                  \	        VP
                  P                  \        P                  ,          4      4       R# )c                     "   ^
# 5i
   r*   r*   r   r   rf   &CoroutineTest.test_func_1.<locals>.foo          c                      R # r   r*   r*   r   r   bar&CoroutineTest.test_func_1.<locals>.bar"  s    4r   N)assertIsInstancetypesCoroutineTyperk   bool__code__co_flagsrl   CO_COROUTINEassertFalseCO_GENERATORcr_coderj   r7   r<   r   rf   fr   s   &   r   test_func_1CoroutineTest.test_func_1  s!   	 Ea!4!45S\\22W5I5IIJKcll33g6J6JJKLQYY//'2F2FFGHaii0073G3GGHI1Bx0+CE2RH=cll33g6J6JJKLr   c                    R  pV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                     "   \         h5ir   r1   r*   r   r   rf   &CoroutineTest.test_func_2.<locals>.foo&       rx   zcoroutine raised StopIterationN)assertRaisesRegexRuntimeErrorr7   r   rf   s   & r   test_func_2CoroutineTest.test_func_2%  sI    	  ##>@ @ ce@ @ @ @	   =A	c                p    R  pV! 4       pV P                  \        V4      R4       VP                  4        R# )c                     "   \         h5ir   r   r*   r   r   rf   &CoroutineTest.test_func_3.<locals>.foo/  r   rx   z^<coroutine object.* at 0x.*>$N)assertRegexreprclose)r   rf   r3   s   &  r   test_func_3CoroutineTest.test_func_3.  s.    	  ud%EF

r   c                  a  R  pV! 4       pV 3R lpV! 4       ;_uu_ 4        \        V4       RRR4       V! 4       ;_uu_ 4        \        V4       RRR4       V! 4       ;_uu_ 4        \        V4       RRR4       V! 4       ;_uu_ 4        \        V4       RRR4       V! 4       ;_uu_ 4        V F  pK  	  RRR4       V! 4       ;_uu_ 4        V Uu. uF  qDNK  	   pRRR4       VP	                  4        R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; iu upi   + '       g   i     L; i)c                     "   \         h5ir   r   r*   r   r   rf   &CoroutineTest.test_func_4.<locals>.foo7  r   rx   c                  0   < S P                  \        R 4      # z"'coroutine' object is not iterabler   	TypeErrorr   s   r   <lambda>+CoroutineTest.test_func_4.<locals>.<lambda>;      ..;=r   N)listtuplesumiterr   )r   rf   r3   checkr;   s   f    r   test_func_4CoroutineTest.test_func_46  s    	 u= WWJ  WW$K  WWI  WWJ  WW   WW1Q  	

' W W W W W
  WsY   C9D'D
D2-
EE
EE9D		D	D/	2E	E	EE-	c                  a a \         P                  R  4       oV3R lpV 3R lpV! 4       pV! 4       ;_uu_ 4        V F  pK  	  RRR4       VP                  4        S! 4        F  pS P                  V^4       K  	  S P                  S! 4        Uu. uF  qDNK  	  up^.4       S P                  \	        S! 4       4      R4       S P                  \        \        S! 4       4      4      ^4       R#   + '       g   i     L; iu upi )c               3      "   ^x  R# 5i   Nr*   r*   r   r   r   &CoroutineTest.test_func_5.<locals>.barT  s
     Grx   c                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   r   s   r   rf   &CoroutineTest.test_func_5.<locals>.fooX       %KK   c                  0   < S P                  \        R 4      # r   r   r   s   r   r   +CoroutineTest.test_func_5.<locals>.<lambda>[  r   r   Nr   )r   	coroutiner   rj   r   r9   r   )r   rf   r   r3   elr   s   f    @r   test_func_5CoroutineTest.test_func_5S  s    		 
		= uWW   	

 %BR# su-u"u-s3sut,d35k*A. W .s   
C/
D/C?	c                h  a \         P                  R  4       oV3R lpV! 4       pV P                  VP                  R4      ^4       V P                  VP                  R4      ^4       V P	                  \
        4      ;_uu_ 4        VP                  R4       RRR4       R#   + '       g   i     R# ; i)c               3      "   ^x  ^x  R# 5ir   r*   r*   r   r   r   &CoroutineTest.test_func_6.<locals>.barl  s     GG   c                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   r   s   r   rf   &CoroutineTest.test_func_6.<locals>.fooq  r   r   N)r   r   rj   r0   rM   r1   r   s   &  @r   test_func_6CoroutineTest.test_func_6k  s    		 
		 Eq)q)}--FF4L .---s   B  B1	c                   a R  pV! 4       oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       SP                  4        R#   + '       g   i     L"; i)c                     "   ^
# 5ir~   r*   r*   r   r   r   &CoroutineTest.test_func_7.<locals>.bar{  r   r   c               3   (   <"   S  R j  xL
  R #  L5ir   r*   r3   s   r   rf   &CoroutineTest.test_func_7.<locals>.foo  s     OOs   zCcannot 'yield from' a coroutine object in a non-coroutine generatorN)r   r   r   r   r   r   rf   r3   s   &  @r   test_func_7CoroutineTest.test_func_7z  sW    	u	 ##,- - K	- 	

- -s   AA+	c                   a \         P                  V3R  l4       pR pV! 4       oV P                  \        V! 4       4      . R34       SP	                  4        R# )c               3   $   <"   S  R j  xL
 #  L5ir   r*   r   s   r   r   &CoroutineTest.test_func_8.<locals>.bar  s     #O$Os   c                     "   R # 5ispamr*   r*   r   r   rf   &CoroutineTest.test_func_8.<locals>.foo       r   r   N)r   r   rj   r7   r   r   s   &  @r   test_func_8CoroutineTest.test_func_8  sK    		% 
	%	 u35)B<8

r   c           	        R  pV P                  \        R4      ;_uu_ 4        V! 4        \        P                  ! 4        RRR4       V P                  \        R4      ;_uu_ 4        V P	                  \
        4      ;_uu_ 4        V! 4        F  pK  	  RRR4       \        P                  ! 4        RRR4       R#   + '       g   i     L; i  + '       g   i     LB; i  + '       g   i     R# ; i)c                     "   R # 5ir   r*   r*   r   r   rf   &CoroutineTest.test_func_9.<locals>.foo       r   z0coroutine '.*test_func_9.*foo' was never awaitedN)assertWarnsRegexRuntimeWarningr   rB   rM   r   )r   rf   _s   &  r   test_func_9CoroutineTest.test_func_9  s    	 ""CE E E E ""CE E ""9--A  .
  E EE E .-	E E Es/   B9%CC	C9C		CCC0	c           	       aa ^ o\         P                  V3R l4       oV3R lpV! 4       pVP                  4       pV P                  V\	        V4      4       \        V4       V P                  VP                  ^
4      ^d4       V P                  S^ 4       VP                  4        V P                  S^4       V! 4       pVP                  4       p\        V4       V P                  \        4      ;_uu_ 4        VP                  \        4       4       RRR4       V P                  S^f4       V! 4       pVP                  4       p\        V4       V P                  \        4      ;_uu_ 4        V P                  \        4      ;_uu_ 4        VP                  \        \        4       R4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     L-; i  + '       g   i     R# ; i)r   c               3      <"    R x p V ^,          x   S^,          oR #   \          d    S^d,          oh i ; i  S^,          oi ; i5ir   ZeroDivisionError)aNs    r   rv   'CoroutineTest.test_func_10.<locals>.gen  sL     Av
 Q	 % S Qs!   A  A69 AAc                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   rv   s   r   rf   'CoroutineTest.test_func_10.<locals>.foo  r   r   N)r   r   r   assertIsr   r9   rj   r0   r   rM   r   throwassertWarnsDeprecationWarning)r   rf   r3   r:   r   rv   s   &   @@r   test_func_10CoroutineTest.test_func_10  sa   			 
			 u^^b$r(#Rc*A

Au^^R011HH&() 2C u^^R011!!"455*,=,?F 6 21 21 65 211s0   5F8(G G	&G8G	GGG/	c                   R  pV! 4       pV P                  R\        V4      4       V P                  R\        VP                  4       4      4       V P                  R\        VP                  4       4      4       VP	                  4        R# )c                     "   R # 5ir   r*   r*   r   r   func(CoroutineTest.test_func_11.<locals>.func       $r   r   __iter__coroutine_wrapperN)assertIndirr   r   r   )r   r   r3   s   &  r   test_func_11CoroutineTest.test_func_11  s^    v 	k3t9-j#dnn&6"78)40@+AB

r   c                   a V3R  lpV! 4       oV P                  \        R4      ;_uu_ 4        SP                  R4       RRR4       R#   + '       g   i     R# ; i)c                  R   <"   S P                  R 4       \        G R j  xL
  R #  L5ir   )r0   rf   )mes   r   g%CoroutineTest.test_func_12.<locals>.g  s     GGDMIIs   '%'zcoroutine already executingN)r   
ValueErrorr0   )r   r  r
  s   & @r   test_func_12CoroutineTest.test_func_12  sO    	 S##J$AC CGGDMC C C Cs   A		A	c                    R  pV! 4       pV P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       VP                  4        R#   + '       g   i     L"; i)c                     "   R # 5ir   r*   r*   r   r   r  %CoroutineTest.test_func_13.<locals>.g  r   r   z5can't send non-None value to a just-started coroutiner   N)r   r   r0   r   )r   r  r3   s   &  r   test_func_13CoroutineTest.test_func_13  sW    	 s##GI I IIfI
 	

I Is   AA%	c                  a \         P                  R  4       oV3R lpV! 4       pVP                  R4       V P                  \        R4      ;_uu_ 4        VP                  4        RRR4       R#   + '       g   i     R# ; i)c               3      "   R x  R # 5ir   r*   r*   r   r   rv   'CoroutineTest.test_func_14.<locals>.gen       rx   c                  x   <"    S ! 4       G R j  xL
  R #  L  \          d    S ! 4       G R j  xL 
   R # i ; i5ir   GeneratorExitr   s   r   r3   (CoroutineTest.test_func_14.<locals>.coro  s+     e  es0   :
  : 707:7:Nzcoroutine ignored GeneratorExit)r   r   r0   r   r   r   )r   r3   crv   s   &  @r   test_func_14CoroutineTest.test_func_14  sn    		 
		
 F	t##L$EG GGGIG G G Gs   A//B 	c                f   R  pR pV! 4       pV P                  \        R4      ;_uu_ 4        V! V4      P                  R4       RRR4       V P                  \        R4      ;_uu_ 4        V! V4      P                  R4       RRR4       R#   + '       g   i     LP; i  + '       g   i     R# ; i)c                     "   R # 5ir   r*   r*   r   r   spammer+CoroutineTest.test_func_15.<locals>.spammer  r   r   c                 "   "   V G R j  xL
 #  L5ir   r*   r   s   &r   reader*CoroutineTest.test_func_15.<locals>.reader	  s     ::s   r   N&cannot reuse already awaited coroutine)r   r1   r0   r   )r   r"  r%  spammer_coros   &   r   test_func_15CoroutineTest.test_func_15  s    		 y##M6::< %%d+ ; ##L$LN N< %%d+N N ;:N N Ns   B*BB	B0	c                  a \         P                  R  4       oV3R lpV3R lpV! 4       pV! V4      pVP                  R4       VP                  R4       V P                  \        R4      ;_uu_ 4        VP                  \	        R4      4       RRR4       V! V4      pVP                  R4       V P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       V P                  \        R4      ;_uu_ 4        VP                  \	        R4      4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lf; i  + '       g   i     R# ; i)c               3      "   R x  R # 5ir   r*   r*   r   r   nop'CoroutineTest.test_func_16.<locals>.nop  r  rx   c                  2   <"   S ! 4       G R j  xL
  R#  L5i)Nr   r*   r-  s   r   r0   (CoroutineTest.test_func_16.<locals>.send  s     %KK r   c                 F   <"   S! 4       G R j  xL
  V G R j  xL
 #  L L5ir   r*   )r3   r-  s   &r   read(CoroutineTest.test_func_16.<locals>.read  s     %KK: s   !	!!!Nhamr'  wat)r   r   r0   r   	Exceptionr   r   )r   r0   r3  r"  r%  r-  s   &    @r   test_func_16CoroutineTest.test_func_16  s    
	 
			 &gDD##Iu55LL5)* 6 gD##L$LN NKKN ##L$LN NLL5)*N N 65
N NN N Ns$   3D*D=E*D:	=E	E!	c                .   R  pV! 4       pV P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       V P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       V P                  \        R4      ;_uu_ 4        VP	                  \        R4      4       RRR4       VP                  4        VP                  4        R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     LX; i)c                     "   R # 5ir   r*   r*   r   r   r   -CoroutineTest.test_func_17.<locals>.coroutine7  r   r   r   Nr'  r6  )r   r1   r0   r   r   r7  r   )r   r   r3   s   &  r   test_func_17CoroutineTest.test_func_174  s    	 {##M6::IIdO ; ##L$LN NIIdON ##L$LN NJJy'(N 	



 ;:N NN Ns#   C!C1DC.	1D	D	c                   R  pV! 4       pVP                  4       p\        V4      pV P                  \        R4      ;_uu_ 4        VP	                  R4       RRR4       V P                  \
        R4      ;_uu_ 4        VP	                  R4       RRR4       V P                  \
        R4      ;_uu_ 4        \        V4       RRR4       V P                  \
        R4      ;_uu_ 4        VP                  \        R4      4       RRR4       V P                  \
        R4      ;_uu_ 4        VP                  \        R4      4       RRR4       VP                  4        VP                  4        R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i)c                     "   R # 5ir   r*   r*   r   r   r   -CoroutineTest.test_func_18.<locals>.coroutineN  r   r   r   Nr'  r6  )
r   r   r   r1   r0   r   r9   r   r7  r   )r   r   r3   
await_iterits   &    r   test_func_18CoroutineTest.test_func_18K  s[   	 {^^%
*##M6::GGDM ; ##L$LN NGGDMN ##L$LN N HN ##L$LN NHHYu%&N ##L$LN NHHYu%&N 	


9 ;::N NN NN NN Ns<   E,<F 4F&F&'F9,E=	 F	F#	&F6	9G		c                n  aa ^ o\         P                  V3R l4       oV3R lpV! 4       pVP                  R4       VP                  R4       V P                  S^ 4       VP	                  4        V P                  S^4       \        ^4       F%  pVP	                  4        V P                  S^4       K'  	  R# )r   c               3   X   <"   R x   R x  R #   \          d    S ^,          o  R # i ; i5ir   r  )CHKs   r   rf   'CoroutineTest.test_func_19.<locals>.foov  s*        qs   * *'*'*c                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   )rf   s   r   r   -CoroutineTest.test_func_19.<locals>.coroutine  r   r   N)r   r   r0   rj   r   rg   )r   r   r3   r   rH  rf   s   &   @@r   test_func_19CoroutineTest.test_func_19s  s    		 
		 {		$		$a 

a qA JJLS!$	 r   c                T    R  p\        V! 4       4      pV P                  V. R34       R# )c                     "   R# 5i)r   r~   r*   r*   r   r   rf   7CoroutineTest.test_coro_wrapper_send_tuple.<locals>.foo  s
     Lr   Nr~   )r<   rj   r   rf   r5   s   &  r   test_coro_wrapper_send_tuple*CoroutineTest.test_coro_wrapper_send_tuple  s)    	 $CE*"e-r   c                    R  p\        V! 4       4      pV P                  V^,          \        4       V P                  V^,          P                  ^
4       R# )c                      "   \        ^
4      # 5ir~   r   r*   r   r   rf   ?CoroutineTest.test_coro_wrapper_send_stop_iterator.<locals>.foo  s      $$   N)r<   r   r1   rj   r$   rQ  s   &  r   $test_coro_wrapper_send_stop_iterator2CoroutineTest.test_coro_wrapper_send_stop_iterator  sA    	% $CE*fQi7"-r   c                :  a aaa \         P                  VV 3R  l4       oV3R loVVV 3R lpV! 4       oS P                  \        P                  ! S4      \        P
                  4       S P                  SP                  4       SP                  R4       S P                  \        P                  ! S4      \        P                  4       S P                  SP                  P                  P                  P                  R4       S P                  \        4      ;_uu_ 4        SP                  R4       RRR4       S P                  \        P                  ! S4      \        P                  4       S P                  SP                  4       R#   + '       g   i     La; i)c               3   T  <"   SP                  \        P                  ! S 4      \        P                  4       SP	                  S P
                  4       R x  SP                  \        P                  ! S 4      \        P                  4       SP	                  S P
                  4       R # 5ir   )rj   rl   getcoroutinestateCORO_RUNNINGassertIsNonecr_await)coro_br   s   r   r   &CoroutineTest.test_cr_await.<locals>.a  so     W66v>@T@TUfoo.W66v>@T@TUfoo.s   B%B(c                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   )r   s   r   r  &CoroutineTest.test_cr_await.<locals>.c  s     #IIr   c                     <"   SP                  SP                  4       S ! 4       G R j  xL
  SP                  SP                  4       R #  L!5ir   )r^  r_  )r  r`  r   s   r   b&CoroutineTest.test_cr_await.<locals>.b  s8     foo.#IIfoo. s   &AA"ANr   )r   r   rj   rl   r\  CORO_CREATEDr^  r_  r0   CORO_SUSPENDEDgi_codeco_namerM   r1   CORO_CLOSED)r   re  r   r  r`  s   f @@@r   test_cr_awaitCoroutineTest.test_cr_await  s   		/ 
	/		/
 226:G<P<PQ&//*D226:G<R<RS1199AA3G}--KK .226:G<O<OP&//* .-s   F

F	c                   \         P                  p\        P                  '       g   V P	                  R VP
                  P                  4       V P	                  RVP                  P                  4       V P	                  RVP                  P                  4       V P	                  RVP                  R,          P                  4       V P	                  RVP                  R,          P                  4       V P                  VP                  R4       R pV! 4       pV P	                  R\        V4      4       VP                  4        R	# )
zinto coroutinezinside coroutinezin coroutinezof the coroutiner   r   r   c                     "   R # 5ir   r*   r*   r   r   r   (CoroutineTest.test_corotype_1.<locals>.f  s     tr   zcoroutine objectN)r   r   r   MISSING_C_DOCSTRINGSr  r0   __doc__r   r   __dict__rj   r   r   )r   ctr   r  s   &   r   test_corotype_1CoroutineTest.test_corotype_1  s      +++MM*BGGOO<MM,bhh.>.>?MM."((*:*:;MM,bkk*.E.M.MNMM,bkk..I.Q.QRk2C($q'2		r   c                    R  pV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                  &   "   ^G Rj  xL
  R#  L5ir   r*   r*   r   r   rf   'CoroutineTest.test_await_1.<locals>.foo  s     GG   z'int' object can.t be awaitedNr   r   r7   r   s   & r   test_await_1CoroutineTest.test_await_1  s5    	##I/NOOce POOOr   c                    R  pV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                  &   "   . G R j  xL
  R #  L5ir   r*   r*   r   r   rf   'CoroutineTest.test_await_2.<locals>.foo  s     HHrz  z'list' object can.t be awaitedNr{  r   s   & r   test_await_2CoroutineTest.test_await_2  s5    	##I/OPPce QPPPr   c                    R  pV P                  \        V! 4       4      . ROR34       V P                  \        V! 4       4      . ROR34       R# )c                  <   "   \        . RO4      G Rj  xL
  R#  L5i)r   Nr         )r	   r*   r   r   rf   'CoroutineTest.test_await_3.<locals>.foo  s      +++s   Nr  )rj   r7   r<   r   s   & r   test_await_3CoroutineTest.test_await_3  sB    	, 	35)It+<=+CE2Y4EFr   c                ^   a R  oV3R lpV P                  \        V! 4       4      . ^*34       R# )c                     "   ^*# 5i*   r*   r*   r   r   r   'CoroutineTest.test_await_4.<locals>.bar  r   r   c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r   s   r   rf   'CoroutineTest.test_await_4.<locals>.foo  s     ;;   Nrj   r7   )r   rf   r   s   & @r   test_await_4CoroutineTest.test_await_4  s*    		 	35)B84r   c                   a  ! R  R4      oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   &   a  ] tR tRt o R tRtV tR# )-CoroutineTest.test_await_5.<locals>.Awaitablei  c                    R # r   r*   r   s   &r   r   7CoroutineTest.test_await_5.<locals>.Awaitable.__await__  s    r   r*   Nr   r   r   r   r   r   r   r   s   @r   	Awaitabler    s      r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   'CoroutineTest.test_await_5.<locals>.foo       #+%&%r  (__await__.*returned non-iterator of typeNr{  r   rf   r  s   & @r   test_await_5CoroutineTest.test_await_5  sT    	 		' ##AC C ceC C C C   AA	c                n   a  ! R  R4      oV3R lpV P                  \        V! 4       4      ^4.R34       R# )c                   &   a  ] tR tRt o R tRtV tR# )-CoroutineTest.test_await_6.<locals>.Awaitablei  c                    \        ^4.4      # )4   r   r   s   &r   r   7CoroutineTest.test_await_6.<locals>.Awaitable.__await__  s    RDz!r   r*   Nr  r   s   @r   r  r    s     " "r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   'CoroutineTest.test_await_6.<locals>.foo  r  r  Nr  r  s   & @r   test_await_6CoroutineTest.test_await_6  s1    	" 	"	' 	35)RD$<8r   c                n   a  ! R  R4      oV3R lpV P                  \        V! 4       4      ^*.^d34       R# )c                   &   a  ] tR tRt o R tRtV tR# )-CoroutineTest.test_await_7.<locals>.Awaitablei  c              3     "   ^*x  ^d# 5ir  r*   r   s   &r   r   7CoroutineTest.test_await_7.<locals>.Awaitable.__await__  s     rx   r*   Nr  r   s   @r   r  r    s      r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   'CoroutineTest.test_await_7.<locals>.foo  r  r  Nr  r  s   & @r   test_await_7CoroutineTest.test_await_7  s1    	 	
	' 	35)RD#;7r   c                   a  ! R  R4      oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                       ] tR tRtRtR# )-CoroutineTest.test_await_8.<locals>.Awaitablei  r*   Nr   r   r   r   r   r*   r   r   r  r        r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   'CoroutineTest.test_await_8.<locals>.foo  s     ik 11 1r  z#'Awaitable' object can't be awaitedNr{  r  s   & @r   test_await_8CoroutineTest.test_await_8  sL    	 	 	2##<> > ce> > > >r  c                   aa V3R  loR oVV3R lpV3R lpV P                  \        V! 4       4      . R34       V P                  \        V! 4       4      . R34       R# )c                     < S # r   r*   r   s   r   wrap(CoroutineTest.test_await_9.<locals>.wrap  s    Jr   c                     "   ^*# 5ir  r*   r*   r   r   r   'CoroutineTest.test_await_9.<locals>.bar  r   r   c                  ^  <"   R V3R l/p  ! V3R lR4      pS! 4       G Rj  xL
 S! 4       ! 4       G Rj  xL
 ,           V R ,          ! 4       ! 4       ! 4       G Rj  xL
 ,           S! 4       G Rj  xL
 R,          ,           VP                  4       ! 4       G Rj  xL
 ,           #  L Ln LK L9 L5i)re  c                     < S # r   r*   r  s   r   r   9CoroutineTest.test_await_9.<locals>.foo.<locals>.<lambda>  s    r   c                      < ] tR tRt Z tRtR# )3CoroutineTest.test_await_9.<locals>.foo.<locals>.DBi!  r*   N)r   r   r   r   re  r   r  s   r   DBr  !  s    r   r  N  re  )dbr  r   r  s     r   rf   'CoroutineTest.test_await_9.<locals>.foo  st     %B  %K.0C3FF%K$&'/1ttvx8 9K.3FsU    B-B#B-B%$B-B'B-/B)0(B-B+B-%B-'B-)B-+B-c                  0   <"   S ! 4       G R j  xL
 ) #  L5ir   r*   r   s   r   foo2(CoroutineTest.test_await_9.<locals>.foo2'  s     %K<Ks   i  Nir  )r   rf   r  r   r  s   &  @@r   test_await_9CoroutineTest.test_await_9  sO    			9	  	35)B;746*RI6r   c                l   aa R  oV3R loV3R lpV P                  \        V! 4       4      . ^*34       R# )c                     "   ^*# 5ir  r*   r*   r   r   baz(CoroutineTest.test_await_10.<locals>.baz.  r   r   c                     <"   S ! 4       # 5ir   r*   )r  s   r   r   (CoroutineTest.test_await_10.<locals>.bar1  s     5Ls   c                  B   <"   S ! 4       G R j  xL
 G R j  xL
 #  L L5ir   r*   r   s   r   rf   (CoroutineTest.test_await_10.<locals>.foo4  s      #+&&+&s   Nr  )r   rf   r   r  s   & @@r   test_await_10CoroutineTest.test_await_10-  s/    			' 	35)B84r   c                t   aa R  oR oVV3R lpV3R lpV P                  \        V! 4       4      . R34       R# )c                     V # r   r*   vals   &r   ident*CoroutineTest.test_await_11.<locals>.ident:  s    Jr   c                     "   R # 5ir   r*   r*   r   r   r   (CoroutineTest.test_await_11.<locals>.bar=  r   r   c                  <   <"   S! S ! 4       G R j  xL
 R7      #  L	5i)Nr  r*   )r   r  s   r   rf   (CoroutineTest.test_await_11.<locals>.foo@  s     35[))[s   
c                  2   <"   S ! 4       G R j  xL
 R3#  L5i)Nr5  r*   r   s   r   r  )CoroutineTest.test_await_11.<locals>.foo2C  s     ;%%;r   N)r   r5  r  )r   rf   r  r   r  s   &  @@r   test_await_11CoroutineTest.test_await_119  s5    			*	& 	46*R,ABr   c                   aa R  pV! 4       o ! V3R lR4      oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       SP                  4        R#   + '       g   i     L"; i)c                     "   R # 5ir   r*   r*   r   r   r3   )CoroutineTest.test_await_12.<locals>.coroI  r   r   c                   .   <a  ] tR tRt o V3R ltRtV tR# ).CoroutineTest.test_await_12.<locals>.AwaitableiM  c                   < S# r   r*   )r   r  s   &r   r   8CoroutineTest.test_await_12.<locals>.Awaitable.__await__N  s    r   r*   Nr  )r   r  s   @r   r  r  M  s      r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   (CoroutineTest.test_await_12.<locals>.fooQ       "$$$r  z"__await__\(\) returned a coroutineN)r   r   r7   r   )r   r3   rf   r  r  s   &  @@r   test_await_12CoroutineTest.test_await_12H  sc    	F	 		% ##@B BceB 	
		B Bs   A))A9	c                   a  ! R  R4      oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   &   a  ] tR tRt o R tRtV tR# ).CoroutineTest.test_await_13.<locals>.Awaitablei[  c                    V # r   r*   r   s   &r   r   8CoroutineTest.test_await_13.<locals>.Awaitable.__await__\      r   r*   Nr  r   s   @r   r  r  [        r   r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   rf   (CoroutineTest.test_await_13.<locals>.foo_  r  r  r  Nr{  r  s   & @r   test_await_13CoroutineTest.test_await_13Z  sT    	 		% ##AC C ceC C C Cr  c                  aaaa  ! R  R4      o ! R R4      o ! R R\         4      oVV3R loVV3R lpV! 4       pVP                  R4       V P                  \        R	4      ;_uu_ 4        VP                  R	4       RRR4       V! 4       pVP                  R4       V P	                  S4      ;_uu_ 4        VP                  \        4       RRR4       R#   + '       g   i     La; i  + '       g   i     R# ; i)
c                   ,   a  ] tR tRt o R tR tRtV tR# ),CoroutineTest.test_await_14.<locals>.Wrapperih  c                    Wn         R # r   r   )r   r3   s   &&r   r   5CoroutineTest.test_await_14.<locals>.Wrapper.__init__j  s     	r   c                6    V P                   P                  4       # r   )r3   r   r   s   &r   r   6CoroutineTest.test_await_14.<locals>.Wrapper.__await__m  s    yy**,,r   r   Nr   r   s   @r   Wrapperr
  h  s     !- -r   r  c                   &   a  ] tR tRt o R tRtV tR# )/CoroutineTest.test_await_14.<locals>.FutureLikeip  c              3     "   R x # 5ir   r*   r   s   &r   r   9CoroutineTest.test_await_14.<locals>.FutureLike.__await__q  s
     s   r*   Nr  r   s   @r   
FutureLiker  p  s      r   r  c                       ] tR tRtRtR# )+CoroutineTest.test_await_14.<locals>.Markerit  r*   Nr  r*   r   r   Markerr  t  r  r   r  c                  R   <"    S ! 4       G R j  xL
 #  L  \          d    Shi ; i5ir   r   )r  r  s   r   coro1*CoroutineTest.test_await_14.<locals>.coro1w  s,     '\)))$ s    '
  ' $'c                  :   <"   S ! S! 4       4      G R j  xL
 #  L5ir   r*   )r  r  s   r   coro2*CoroutineTest.test_await_14.<locals>.coro2|  s      ))))s   Nr   )r7  r0   r   r1   rM   r   r   )r   r  r  r  r  r  r  s   &  @@@@r   test_await_14CoroutineTest.test_await_14g  s    	- 	-	 		Y 		
	* G	t##M6::FF6N ; G	tv&&GG%& '& ;:
 '&&s   ,C7C*C'	*C;	c                  a \         P                  R  4       oV3R lpR pV! 4       pVP                  R4       V P                  \        R4      ;_uu_ 4        V! V4      P                  R4       RRR4       R#   + '       g   i     R# ; i)c               3      "   R x  R # 5ir   r*   r*   r   r   r-  (CoroutineTest.test_await_15.<locals>.nop  r  rx   c                  2   <"   S ! 4       G R j  xL
  R #  L5ir   r*   r0  s   r   r   .CoroutineTest.test_await_15.<locals>.coroutine  r   r   c                 &   "   V G R j  xL
  R #  L5ir   r*   r   s   &r   waiter+CoroutineTest.test_await_15.<locals>.waiter  s     JJrz  Nz"coroutine is being awaited already)r   r   r0   r   r   )r   r   r&  r3   r-  s   &   @r   test_await_15CoroutineTest.test_await_15  s|    		 
			 {		$##L$HJ J4Ld#J J J Js   A99B
	c                t   a R  oV3R lp\        V! 4       4      w  r#V P                  VP                  4       R# )c                     "   \        4       # 5ir   )r  r*   r   r   r   &CoroutineTest.test_await_16.<locals>.f  s     <r   c                  \   <"    \         h  \          d    S ! 4       G R j  xL 
 u # i ; i5ir   )KeyError)r   s   r   r  &CoroutineTest.test_await_16.<locals>.g  s*     ! !Syy !s    , )#),),N)r7   r^  __context__)r   r  r   r5   r   s   &   @r   test_await_16CoroutineTest.test_await_16  s0    	 	! acN	&,,-r   c                    ! R  R4      p\         P                  ! \        V! 4       R4      P                  4       4      ;_uu_ 4       pV P	                  \
        VP                  ^4       RRR4       R#   + '       g   i     R# ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )&CoroutineTest.test_await_17.<locals>.Ai  c                   "   \         h5ir   StopAsyncIterationr   s   &r   	__anext__0CoroutineTest.test_await_17.<locals>.A.__anext__  s     ((rx   c                    V # r   r*   r   s   &r   	__aiter__0CoroutineTest.test_await_17.<locals>.A.__aiter__  r  r   r*   N)r   r   r   r   r9  r<  r   r   r   s   @r   Ar5    s     ) r   r>  r   N)
contextlibclosinganextr   rM   r   r   )r   r>  anext_awaitables   &  r   test_await_17CoroutineTest.test_await_17  sY    	 	 ac3 9 9 ;<<i)>)>B =<<<s   "A22B	c                  a  ! R  R4      oV3R lpV! 4       p\        V4      w  r4V P                  V. RO4       V3R lpV P                  \        4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   2   a  ] tR tRt o R tR tR tRtV tR# )*CoroutineTest.test_with_1.<locals>.Manageri  c                    Wn         R # r   name)r   rJ  s   &&r   r   3CoroutineTest.test_with_1.<locals>.Manager.__init__  s     	r   c                   "   \        R V P                  ,           RV P                  ,           .4      G Rj  xL
  V #  L5i)zenter-1-zenter-2-Nr	   rJ  r   s   &r   
__aenter__5CoroutineTest.test_with_1.<locals>.Manager.__aenter__  s=     $j499&<&0499&<&> ? ? ??s   3><>c                   "   \        R V P                  ,           RV P                  ,           .4      G Rj  xL
  V P                  R8X  d   R# R#  L5i)zexit-1-zexit-2-NBTrM  )r   r2   s   &*r   	__aexit__4CoroutineTest.test_with_1.<locals>.Manager.__aexit__  sN     $i$))&;&/$))&;&= > > > 99# $>s   3AAArI  N)	r   r   r   r   r   rN  rR  r   r   r   s   @r   ManagerrG    s     !
   r   rT  c            
        <"   S! R 4      ;_uu_4       GRj  xL
 p S! R4      ;_uu_4       GRj  xL
 p\        RV P                  VP                  3.4      G Rj  xL
  ^^ ,           RRR4      GRj  xL
  RRR4      GRj  xL
  R#  Ls L\ L3 L  + GRj  xL 
 '       g   i     L3; i L*  + GRj  xL 
 '       g   i     R# ; i5i)r>  NrQ  managersrM  )r   re  rT  s     r   rf   &CoroutineTest.test_with_1.<locals>.foo  l     s|||q'#,,,!$z166166&B%CDDD! +7,|||,D +7,,,||||   CBCB2BB2'B	BB	*B25B6B2:CB0CB2B	B2B-B
B-&B-(B20C2C	8B;9
C	C		Cc            
        <"   S! R 4      ;_uu_4       GRj  xL
 p S! R4      ;_uu_4       GRj  xL
 p\        RV P                  VP                  3.4      G Rj  xL
  ^^ ,           RRR4      GRj  xL
  RRR4      GRj  xL
  R#  Ls L\ L3 L  + GRj  xL 
 '       g   i     L3; i L*  + GRj  xL 
 '       g   i     R# ; i5i)r>  NCrV  rM  )r   r  rT  s     r   rf   rW    rX  rY  N)	z	enter-1-Az	enter-2-Az	enter-1-Bz	enter-2-B)rV  r>  rQ  zexit-1-Bzexit-2-Bzexit-1-Azexit-2-A)r7   rj   rM   r   )r   rf   r   r5   r   rT  s   &    @r   test_with_1CoroutineTest.test_with_1  so    	  	 "	
 EaL	 E	
	
 011ce 2111s   A88B		c                   aa  ! R  R4      oRoVV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  SR4       R#   + '       g   i     L$; i)c                   &   a  ] tR tRt o R tRtV tR# )%CoroutineTest.test_with_2.<locals>.CMi  c                    R # r   r*   r   s   &r   rN  0CoroutineTest.test_with_2.<locals>.CM.__aenter__      r   r*   N)r   r   r   r   rN  r   r   r   s   @r   CMr`          r   rd  Nc                     <"   R oS ! 4       ;_uu_4       GRj  xL
  RoRRR4      GRj  xL
  R#  L L  + GRj  xL 
 '       g   i     R# ; i5iFNTr*   rd  body_executeds   r   rf   &CoroutineTest.test_with_2.<locals>.foo  (     !Mttt $ ttttt?   A2A6A4AAA	?
A	A	
	Az'asynchronous context manager.*__aexit__Fr   r   r7   r   r   rf   rd  ri  s   & @@r   test_with_2CoroutineTest.test_with_2  sW    	 	 	% ##I/XYYce ZmU+ ZY   A!!A1	c                   aa  ! R  R4      oRoVV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  SR4       R#   + '       g   i     L$; i)c                   &   a  ] tR tRt o R tRtV tR# )%CoroutineTest.test_with_3.<locals>.CMi  c                    R # r   r*   r   s   &r   rR  /CoroutineTest.test_with_3.<locals>.CM.__aexit__  rc  r   r*   N)r   r   r   r   rR  r   r   r   s   @r   rd  rt    re  r   rd  Nc                     <"   R oS ! 4       ;_uu_4       GRj  xL
  RoRRR4      GRj  xL
  R#  L L  + GRj  xL 
 '       g   i     R# ; i5irg  r*   rh  s   r   rf   &CoroutineTest.test_with_3.<locals>.foo  rk  rl  asynchronous context managerFrm  rn  s   & @@r   test_with_3CoroutineTest.test_with_3  sW    	 	 	% ##I/MNNce OmU+ ONrq  c                   aa  ! R  R4      oRoVV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  SR4       R#   + '       g   i     L$; i)c                       ] tR tRtRtR# )%CoroutineTest.test_with_4.<locals>.CMi  r*   Nr  r*   r   r   rd  r~    r  r   rd  Nc                     <"   R oS ! 4       ;_uu_4       GRj  xL
  RoRRR4      GRj  xL
  R#  L L  + GRj  xL 
 '       g   i     R# ; i5irg  r*   rh  s   r   rf   &CoroutineTest.test_with_4.<locals>.foo  rk  rl  ry  Frm  rn  s   & @@r   test_with_4CoroutineTest.test_with_4  sW    	 	 	% ##I/MNNce OmU+ ONrq  c                   a a  ! R  R4      oVV 3R lpS P                  \        4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )%CoroutineTest.test_with_5.<locals>.CMi  c                   "   V # 5ir   r*   r   s   &r   rN  0CoroutineTest.test_with_5.<locals>.CM.__aenter__  
     r   c                   "   R # 5ir   r*   )r   excs   &*r   rR  /CoroutineTest.test_with_5.<locals>.CM.__aexit__       r   r*   Nr   r   r   r   rN  rR  r   r   r   s   @r   rd  r    s      r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  SP                  R^4       R R R 4      GR j  xL
  R #  L( L  + GR j  xL 
 '       g   i     R # ; i5i)Nr   )rj   )rd  r   s   r   r   'CoroutineTest.test_with_5.<locals>.func  s.     ttt  * tttttsG   A!A A!AA!AA!A!A	
A
A	A		A!N)rM   AssertionErrorr7   )r   r   rd  s   f @r   test_with_5CoroutineTest.test_with_5  s>    
	 		+ ~..df /...s   AA	c                   a  ! R  R4      oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )%CoroutineTest.test_with_6.<locals>.CMi   c                    ^{# ){   r*   r   s   &r   rN  0CoroutineTest.test_with_6.<locals>.CM.__aenter__!      r   c                    R # i  r*   r   es   &*r   rR  /CoroutineTest.test_with_6.<locals>.CM.__aexit__$  r  r   r*   Nr  r   s   @r   rd  r     s      r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
   R R R 4      GR j  xL
  R #  L L  + GR j  xL 
 '       g   i     R # ; i5ir   r*   rd  s   r   rf   &CoroutineTest.test_with_6.<locals>.foo'  s!     ttt ttttts?   A/A3A1AAA	<
A	A		AzV'async with' received an object from __aenter__ that does not implement __await__: intNr{  )r   rf   rd  s   & @r   test_with_6CoroutineTest.test_with_6  sP    	 		 ##9: :
 ce: : : :r  c                p  a  ! R  R4      oV3R lp \        V! 4       4       V P                  R4       R#   \         du   pT P                  TP                  ^ ,          R4       T P                  TP                  RJ4       T P                  \        TP                  \        4      4        Rp?R# Rp?ii ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )%CoroutineTest.test_with_7.<locals>.CMi3  c                   "   V # 5ir   r*   r   s   &r   rN  0CoroutineTest.test_with_7.<locals>.CM.__aenter__4  r  r   c                    R # )i  r*   r  s   &*r   rR  /CoroutineTest.test_with_7.<locals>.CM.__aexit__7  r  r   r*   Nr  r   s   @r   rd  r  3        r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  ^^ ,           R R R 4      GR j  xL
  R #  L L  + GR j  xL 
 '       g   i     R # ; i5ir   r*   r  s   r   rf   &CoroutineTest.test_with_7.<locals>.foo;  s%     ttt! tttttB   A7A
;A9AAA	A
A	A		Az1invalid asynchronous context manager did not failU'async with' received an object from __aexit__ that does not implement __await__: intN)	r7   failr   r   r2   rk   r0  
isinstancer   )r   rf   r  rd  s   &  @r   test_with_7CoroutineTest.test_with_72  s    	 		
	Kce IIIJ  	L9: OOCOO478OOJs8IJKK	Ls   6 B5A)B00B5c                <  aa ^ o ! R R4      oVV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       VV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       VV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       VV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L^; i)	r   c                   ,   a  ] tR tRt o R tR tRtV tR# )%CoroutineTest.test_with_8.<locals>.CMiO  c                   "   V # 5ir   r*   r   s   &r   rN  0CoroutineTest.test_with_8.<locals>.CM.__aenter__P  r  r   c                    R # r  r*   r  s   &*r   rR  /CoroutineTest.test_with_8.<locals>.CM.__aexit__S  r  r   r*   Nr  r   s   @r   rd  r  O  r  r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  S^,          oR R R 4      GR j  xL
  R #  L L  + GR j  xL 
 '       g   i     R # ; i5ir   r*   rd  CNTs   r   rf   &CoroutineTest.test_with_8.<locals>.fooW  '     tttq tttttr  r  Nc            	         <"   \        ^4       F6  p S! 4       ;_uu_4       GRj  xL
  S^,          o RRR4      GRj  xL
   R# 	  R#  L% L  + GRj  xL 
 '       g   i     KZ  ; i5ir  Nrg   r;   rd  r  s    r   rf   r  c  s;     1X4441HC  44 444sH   "A,A
A,AA,A A,A,A)A
A)!A)#	A,c            	         <"   \        ^4       F5  p S! 4       ;_uu_4       GRj  xL
  S^,          o RRR4      GRj  xL
  K7  	  R#  L$ L  + GRj  xL 
 '       g   i     KY  ; i5ir  r  r  s    r   rf   r  q  s;     1X4441HC  44 444sH   "A+A

A+AA+A A+A+A(A
A( A("	A+c                     <"   S ! 4       ;_uu_4       GR j  xL
  S^,          o R R R 4      GR j  xL
  R #  L  L  + GR j  xL 
 '       g   i     R # ; i5ir   r*   r  s   r   rf   r    s*     tttq tttttsB   A8A<A:AAA	A
A	A		A)r   r   r7   rj   r   rf   rd  r  s   & @@r   test_with_8CoroutineTest.test_with_8L  sX   	 		 ##9: : ce	:
 	a 	 ##9: : ce	:
 	a 	 ##9: : ce	:
 	a 	
 ##9: : ce	:
 	a ]: : :: :: :: :s/   EE%E8$FE"	%E5	8F	F	c                   aa ^ o ! R R4      oVV3R lpV P                  \        4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       R#   + '       g   i     L$; i)r   c                   ,   a  ] tR tRt o R tR tRtV tR# )%CoroutineTest.test_with_9.<locals>.CMi  c                   "   V # 5ir   r*   r   s   &r   rN  0CoroutineTest.test_with_9.<locals>.CM.__aenter__  r  r   c                    "   ^^ ,           R# 5ir   r*   r  s   &*r   rR  /CoroutineTest.test_with_9.<locals>.CM.__aexit__       !rW  r*   Nr  r   s   @r   rd  r          r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  S^,          oR R R 4      GR j  xL
  R #  L L  + GR j  xL 
 '       g   i     R # ; i5ir   r*   r  s   r   rf   &CoroutineTest.test_with_9.<locals>.foo  r  r  NrM   r   r7   rj   r  s   & @@r   test_with_9CoroutineTest.test_with_9  sU    	 		
 011ce 2 	a  21   A  A0	c                  aa ^ o ! R R4      oVV3R lp \        V! 4       4       V P                  R4       R#   \         d   pT P                  TP                  RJ4       T P                  \        TP                  \        4      4       T P                  \        TP                  P                  \        4      4        Rp?R# Rp?ii ; i)r   c                   ,   a  ] tR tRt o R tR tRtV tR# )&CoroutineTest.test_with_10.<locals>.CMi  c                   "   V # 5ir   r*   r   s   &r   rN  1CoroutineTest.test_with_10.<locals>.CM.__aenter__  r  r   c                    "   ^^ ,           R# 5ir   r*   r  s   &*r   rR  0CoroutineTest.test_with_10.<locals>.CM.__aexit__  r  rW  r*   Nr  r   s   @r   rd  r    r  r   rd  c            
        <"   S ! 4       ;_uu_4       GR j  xL
  S ! 4       ;_uu_4       GR j  xL
  \         h L" L  + GR j  xL 
 '       g   i     M; iR R R 4      GR j  xL 
  R #   + GR j  xL 
 '       g   i     R # ; i5ir   r   r  s   r   rf   'CoroutineTest.test_with_10.<locals>.foo  s<     ttt444&& 444 tttttsw   B
:B
A-<A->	B
A-AA
AAA-B
%A(&B
-B	3A64
B	?B		B
z*exception from __aexit__ did not propagateN)r7   r  r   rk   r0  r  r   r   rf   r  rd  r  s   &  @@r   test_with_10CoroutineTest.test_with_10  s    	 		'	Dce IIBC ! 	6OOCOO478OOJs8IJKOOJs'B'B'35 6 6	6s   : C	A9CC	c                   aa ^ o ! R R4      oVV3R lp \        V! 4       4       V P                  R4       R#   \         d)   pT P                  TP                  RJ 4        Rp?R# Rp?ii ; i)r   c                   ,   a  ] tR tRt o R tR tRtV tR# )&CoroutineTest.test_with_11.<locals>.CMi  c                   "   \         h5ir   )NotImplementedErrorr   s   &r   rN  1CoroutineTest.test_with_11.<locals>.CM.__aenter__  s     ))rx   c                    "   ^^ ,           R# 5ir   r*   r  s   &*r   rR  0CoroutineTest.test_with_11.<locals>.CM.__aexit__  r  rW  r*   Nr  r   s   @r   rd  r    s     * r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  \         h L
  + GR j  xL 
 '       g   i     R # ; i5ir   r  r  s   r   rf   'CoroutineTest.test_with_11.<locals>.foo  s      ttt"" ttts,   A"A$A>	-
>	>		Az+exception from __aenter__ did not propagateN)r7   r  r  rk   r0  r  s   &  @@r   test_with_11CoroutineTest.test_with_11  s`    	 		#
	Ece IICD # 	5OOCOOt344	5s   : A-A((A-c                T   a aa ^ o ! R R4      oVVV 3R lp\        V! 4       4       R# )r   c                   ,   a  ] tR tRt o R tR tRtV tR# )&CoroutineTest.test_with_12.<locals>.CMi  c                   "   V # 5ir   r*   r   s   &r   rN  1CoroutineTest.test_with_12.<locals>.CM.__aenter__  r  r   c                   "   R # 5iTr*   r  s   &*r   rR  0CoroutineTest.test_with_12.<locals>.CM.__aexit__       r   r*   Nr  r   s   @r   rd  r    s      r   rd  c                     <"   S! 4       ;_uu_4       GR j  xL
 p SP                  V P                  S4       \        h L&  + GR j  xL 
 '       g   i     R # ; i5ir   )r   	__class__r   )cmrd  r  r   s    r   rf   'CoroutineTest.test_with_12.<locals>.foo  s4     tttrbllB/"" ttts6   A>A#A A A	A	
A	A		AN)r7   r  s   f @@r   test_with_12CoroutineTest.test_with_12  s#    	 		# 	#%r   c                   aa ^ o ! R R4      oVV3R lpV P                  \        4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^4       R#   + '       g   i     L$; i)r   c                   ,   a  ] tR tRt o R tR tRtV tR# )&CoroutineTest.test_with_13.<locals>.CMi  c                    "   ^^ ,           R# 5ir   r*   r   s   &r   rN  1CoroutineTest.test_with_13.<locals>.CM.__aenter__  r  rW  c                   "   R # 5ir  r*   r  s   &*r   rR  0CoroutineTest.test_with_13.<locals>.CM.__aexit__  r  r   r*   Nr  r   s   @r   rd  r    s      r   rd  c                     <"   S^,          oS ! 4       ;_uu_4       GRj  xL
  SR,          oRRR4      GRj  xL
  SR,          oR#  L( L  + GRj  xL 
 '       g   i     L(; i5i)r   Nr  '  r*   r  s   r   rf   'CoroutineTest.test_with_13.<locals>.foo  s<     1HCtttt t5LC tttsG   A)A	A)
AA)AA)A)A&	A
A&	A&	!A)Nr  r  s   & @@r   test_with_13CoroutineTest.test_with_13  sS    	 		 011ce 2a  21r  c                  aaa	 ^ o ! V3R lR4      o. o	VV	3R lp\        V! 4       4      w  r#V P                  S^4       T P                  T\        ^^4       Uu. uF  qD^d,          NK  	  up4       T P                  S	\        ^^e4       Uu. uF  qD^,          NK  	  up4       . o	VV	3R lp\        V! 4       4      w  r#V P                  S^4       V P                  V^d^.4       T P                  S	\        ^^4       Uu. uF  qDNK  	  upR.,           4       . o	VV	3R lp\        V! 4       4      w  r#V P                  S^4       T P                  T\        ^^4       Uu. uF  qD^d,          NK  	  up4       T P                  S	\        ^^4       Uu. uF  qDNK  	  upRR.,           4       R# u upi u upi u upi u upi u upi )	r   c                   :   <a  ] tR tRt o R tV3R ltR tRtV tR# )+CoroutineTest.test_for_1.<locals>.AsyncIteri  c                    ^ V n         R# r   Nrc   r   s   &r   r   4CoroutineTest.test_for_1.<locals>.AsyncIter.__init__  	    r   c                   < S^,          oV # r   r*   )r   aiter_callss   &r   r<  5CoroutineTest.test_for_1.<locals>.AsyncIter.__aiter__  s    q r   c                  "   V ;P                   ^,          un         V P                   ^
,          '       g%   \        V P                   ^
,          4      G Rj  xL
  V P                   ^d8  d   \        hV P                   V P                   3#  L35ir   )r;   r!   r8  r   s   &r   r9  5CoroutineTest.test_for_1.<locals>.AsyncIter.__anext__  s]     !$TVVb[11166C<,,vvtvv~% 2s   AB
B4B
rc   N	r   r   r   r   r   r<  r9  r   r   )r   r  s   @r   	AsyncIterr    s     
	& 	&r   r  c                  n   <"   S! 4         R j  xL
  w  rSP                  W,           4       K%   L D!R # 5ir   r/   )i1i2r  r4   s     r   test1'CoroutineTest.test_for_1.<locals>.test1  s.      ) ' 'fbbg&'s   5202525c                     <"   S! 4         R j  xL
  p SP                  V ^ ,          4       V ^ ,          ^8X  g   K2   SP                  R4       R #  LADBSP                  R4       L(5iNwhat?endr  r;   r  r4   s    r   test2'CoroutineTest.test_for_1.<locals>.test2  sX     $; ' 'aad#Q42: MM% ';
 g&s*   A&AAA%A&A&AA&r#  c                     <"   S! 4         R j  xL
  p V ^ ,          ^8  d   K  SP                  V ^ ,          4       K4   L/D0SP                  R4       SP                  R4       R # 5ir!  r  r$  s    r   test3'CoroutineTest.test_for_1.<locals>.test3.  sV     $; ' 'aQ4"9ad#';
 g&MM% s#   A&A?A,A&A%A&r"  N)r7   rj   rg   )
r   r  yieldedr   r;   r%  r(  r  r  r4   s
   &      @@@r   
test_for_1CoroutineTest.test_for_1  s   	& 	&* 	' uw'
a(E!RL"ALqs77L"ABuQ}!=}!A##}!=> 	! uw'
a(3*-U1b\!:\!\!:eW!DE 	! uw'
a(E!RL"ALqs77L"ABU1b\!:\!\!:")5!1"2 	3K #B!=$ ";" #B!:s   F-
F2
?
F7
F<

G
c                $  a Ro\         P                  ! S4      pV3R lpV P                  \        R4      ;_uu_ 4        \	        V! 4       4       RRR4       V P                  \         P                  ! S4      V4       R#   + '       g   i     L8; i)r   c                  H   <"   S  R j  xL
  p \        R4       K   LDR # 5iNznever going to happenprint)r;   tups    r   rf   %CoroutineTest.test_for_2.<locals>.fooC  s%      / /a-./3   """z/async for' requires an object.*__aiter__.*tupleNr  sysgetrefcountr   r   r7   rj   )r   refs_beforerf   r2  s   &  @r   
test_for_2CoroutineTest.test_for_2?  sr    ooc*	/ ##LN N ceN
 	-{;N Ns   A??B	c                B  a  ! R  R4      pV! 4       o\         P                  ! S4      pV3R lpV P                  \        R4      ;_uu_ 4        \	        V! 4       4       RRR4       V P                  \         P                  ! S4      V4       R#   + '       g   i     L8; i)c                   &   a  ] tR tRt o R tRtV tR# )#CoroutineTest.test_for_3.<locals>.IiO  c                    V # r   r*   r   s   &r   r<  -CoroutineTest.test_for_3.<locals>.I.__aiter__P  r  r   r*   Nr   r   r   r   r<  r   r   r   s   @r   Ir=  O  r  r   rA  c                  H   <"   S  R j  xL
  p \        R4       K   LDR # 5ir/  r0  r;   aiters    r   rf   %CoroutineTest.test_for_3.<locals>.fooV  %       / /a-./5r4  z!that does not implement __anext__Nr5  r   rA  r8  rf   rD  s   &   @r   
test_for_3CoroutineTest.test_for_3N  s{    	 	 ooe,	/ ##46 6 ce	6 	/=6 6   BB	c                B  a  ! R  R4      pV! 4       o\         P                  ! S4      pV3R lpV P                  \        R4      ;_uu_ 4        \	        V! 4       4       RRR4       V P                  \         P                  ! S4      V4       R#   + '       g   i     L8; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )#CoroutineTest.test_for_4.<locals>.Iic  c                    V # r   r*   r   s   &r   r<  -CoroutineTest.test_for_4.<locals>.I.__aiter__d  r  r   c                    R# )Nr*   r*   r   s   &r   r9  -CoroutineTest.test_for_4.<locals>.I.__anext__g  s    	r   r*   N)r   r   r   r   r<  r9  r   r   r   s   @r   rA  rM  c  s      r   rA  c                  H   <"   S  R j  xL
  p \        R4       K   LDR # 5ir/  r0  rC  s    r   rf   %CoroutineTest.test_for_4.<locals>.foom  rF  r4  z7async for' received an invalid object.*__anext__.*tupleNr5  rG  s   &   @r   
test_for_4CoroutineTest.test_for_4b  s    	 	 ooe,	/ ##IK K ce	K 	/=K KrJ  c                  aaaaa ^ o ! V3R lR4      o ! R R4      oS! 4       oS! 4       o\         P                  ! S4      p\         P                  ! S4      pVVV3R lp\        P                  ! 4       ;_uu_ 4        \        P                  ! R4       \        V! 4       4       RRR4       V P                  SR4       V P                  \         P                  ! S4      V4       V P                  \         P                  ! S4      V4       VVV3R	 lp\        V! 4       4       V P                  SR
4       VVV3R lp\        V! 4       4       V P                  SR4       R#   + '       g   i     L; i)r   c                   :   <a  ] tR tRt o V3R ltV3R ltRtV tR# ))CoroutineTest.test_for_6.<locals>.Manageri|  c                "   <"   SR ,          oR# 5i)r  Nr*   )r   rA  s   &r   rN  4CoroutineTest.test_for_6.<locals>.Manager.__aenter__}  s     U
   c                "   <"   SR ,          oR# 5i)i Nr*   )r   r2   rA  s   &*r   rR  3CoroutineTest.test_for_6.<locals>.Manager.__aexit__  s     Vr[  r*   Nr  )r   rA  s   @r   rT  rX  |  s      r   rT  c                   2   a  ] tR tRt o R tR tR tRtV tR# )*CoroutineTest.test_for_6.<locals>.Iterablei  c                    ^ V n         R# r  rc   r   s   &r   r   3CoroutineTest.test_for_6.<locals>.Iterable.__init__  r  r   c                    V # r   r*   r   s   &r   r<  4CoroutineTest.test_for_6.<locals>.Iterable.__aiter__  r  r   c                   "   V P                   ^
8  d   \        hV ;P                   ^,          un         V P                   # 5ir~   )r;   r8  r   s   &r   r9  4CoroutineTest.test_for_6.<locals>.Iterable.__anext__  s,     66B;,,!vv   =?rc   Nr  r   s   @r   Iterabler_    s      r   rg  c                     <"   S;_uu_4       GR j  xL
  S  R j  xL
  p S^,          oK   L LDR R R 4      GR j  xL 
  M  + GR j  xL 
 '       g   i     M; iSR,          oR # 5iNr  r*   )r;   rA  r+   managers    r   main&CoroutineTest.test_for_6.<locals>.main  sN      ww'  !FA x wwwww IAs_   A,.A,A20
2AA,2AA,AA,A	A
A	A	A,errorNi c                    <"   S! 4       ;_uu_4       GR j  xL
  S! 4         R j  xL
  p S^,          oK   L  LDR R R 4      GR j  xL 
  M  + GR j  xL 
 '       g   i     M; iSR,          oS! 4       ;_uu_4       GR j  xL 
  S! 4         R j  xL 
  p S^,          oK  DR R R 4      GR j  xL 
  M  + GR j  xL 
 '       g   i     M; iSR,          oR # 5iri  r*   r;   rA  rg  rT  s    r   rk  rl    s      yyy'z  !FA !z !yyyyy IAyyy'z  !FA  * !yyyyy IAs   C$8C$A<:
<AC$<AC$A	C$A(	A
A(	!A(	#$C$B
C$B=B*B
B*B=+C$6B97C$=C	C
C	C	C$i c                    <"   S! 4       ;_uu_4       GR j  xL
  S^d,          oS! 4         R j  xL
  p S^,          oK   L) LDSR,          oR R R 4      GR j  xL 
  M  + GR j  xL 
 '       g   i     M; iSR,          oS! 4       ;_uu_4       GR j  xL 
  S^d,          oS! 4         R j  xL 
  p S^,          oK  DSR,          oR R R 4      GR j  xL 
  M  + GR j  xL 
 '       g   i     M; iSR,          oR # 5i)Ni r  r*   ro  s    r   rk  rl    s      yyyS'z " "!FA !"z MA !yyyyy IAyyyS'z " "!FA  * MA !yyyyy IAs   DADA!AA
AA!DA
A!DAD!A:	'A*(
A:	3A:	5$DBDC!/C3B6
4C8C!DCD!C:	'C*(
C:	3C:	5Di9)r6  r7  r?   r@   rA   r7   rj   )	r   mrefs_beforeirefs_beforerk  rA  rg  rT  r+   rj  s	   &   @@@@@r   
test_for_6CoroutineTest.test_for_6y  s   	 		 	 ):w/x0	 $$&&!!'* df	 '
 	F#1<@2LA	 	$&F#	& 	$&H%e '&s   >'E!!E1	c                   aa ^ o ! R R4      oVV3R lpV P                  \        4      ;_uu_ 4        \        V! 4       4       RRR4       V P                  S^ 4       R#   + '       g   i     L$; i)r   c                   &   a  ] tR tRt o R tRtV tR# )$CoroutineTest.test_for_7.<locals>.AIi  c                    ^^ ,           R# r   r*   r   s   &r   r<  .CoroutineTest.test_for_7.<locals>.AI.__aiter__      !r   r*   Nr@  r   s   @r   AIrw          r   r{  c                  `   <"   S! 4         R j  xL
  p S^,          oK   LDS^
,          oR # 5ir   r*   r;   r{  r  s    r   rf   %CoroutineTest.test_for_7.<locals>.foo  0     4  aq42IC   ." ".".Nr  r   rf   r{  r  s   & @@r   
test_for_7CoroutineTest.test_for_7  sS    	 		
 011ce 2a  21r  c           	       aa ^ o ! R R4      oVV3R lpV P                  \        4      ;_uu_ 4        \        P                  ! 4       ;_uu_ 4        \        P                  ! R4       \        V! 4       4       RRR4       RRR4       V P                  S^ 4       R#   + '       g   i     L,; i  + '       g   i     L7; i)r   c                   &   a  ] tR tRt o R tRtV tR# )$CoroutineTest.test_for_8.<locals>.AIi  c                    ^^ ,           R# r   r*   r   s   &r   r<  .CoroutineTest.test_for_8.<locals>.AI.__aiter__  rz  r   r*   Nr@  r   s   @r   r{  r    r|  r   r{  c                  `   <"   S! 4         R j  xL
  p S^,          oK   LDS^
,          oR # 5ir   r*   r~  s    r   rf   %CoroutineTest.test_for_8.<locals>.foo  r  r  rm  N)rM   r   r?   r@   rA   r7   rj   r  s   & @@r   
test_for_8CoroutineTest.test_for_8  s    	 		
 011((**%%g. #% 	 + 2 	a  +* 21s#   B/'B	8B/B,'B//B?	c                   a  ! R  R4      oV3R lpV P                  \        R4      ;_uu_ 4       pV! 4       P                  R4       RRR4       XP                  pV P	                  VP
                  \        4       R#   + '       g   i     L>; i)c                   2   a  ] tR tRt o R tR tR tRtV tR# )$CoroutineTest.test_for_11.<locals>.Fi  c                    V # r   r*   r   s   &r   r<  .CoroutineTest.test_for_11.<locals>.F.__aiter__  r  r   c                    V # r   r*   r   s   &r   r9  .CoroutineTest.test_for_11.<locals>.F.__anext__  r  r   c                    ^^ ,           R# r   r*   r   s   &r   r   .CoroutineTest.test_for_11.<locals>.F.__await__  s    Ar   r*   N)	r   r   r   r   r<  r9  r   r   r   r   s   @r   Fr    s      r   r  c                  <   <"   S! 4         R j  xL
  p K   LDR # 5ir   r*   )r   r  s    r   rk  'CoroutineTest.test_for_11.<locals>.main  s!     3  a3s   z an invalid object from __anext__N)r   r   r0   	exceptionr   	__cause__r   )r   rk  r  errr  s   &   @r   test_for_11CoroutineTest.test_for_11  sr    	 		 ##I$FH HKLFKKH kkcmm->?H Hs   A==B	c                  aaa  ! R  R\         4      o ! R R\        4      o. oVVV3R lpV P                  S4      ;_uu_ 4        V! 4       P                  R4       RRR4       V P	                  S^*.4       R#   + '       g   i     L%; i)c                       ] tR tRtRtR# )*CoroutineTest.test_for_tuple.<locals>.Donei
  r*   Nr  r*   r   r   Doner  
      tr   r  c                   0   a  ] tR tRt o ^ tR tR tRtV tR# )+CoroutineTest.test_for_tuple.<locals>.AIteri  c                    V # r   r*   r   s   &r   r<  5CoroutineTest.test_for_tuple.<locals>.AIter.__aiter__  r  r   c                   "   V P                   \        V 4      8  d   \        hV ;P                   ^,          un         W P                   ^,
          ,          # 5ir   )r;   lenr8  r   s   &r   r9  5CoroutineTest.test_for_tuple.<locals>.AIter.__anext__  s9     66SY&,,!FFQJ''s   AAr*   N	r   r   r   r   r;   r<  r9  r   r   r   s   @r   AIterr    s     A( (r   r  c                  b   <"   S! ^*.4        Rj  xL
  p SP                  V 4       K   LDSh5ir  Nr  r;   r  r  r5   s    r   rf   )CoroutineTest.test_for_tuple.<locals>.foo  s3      "; ! !aa !;Js   
/,*,/,/N)r7  r   rM   r0   rj   r   rf   r  r  r5   s   & @@@r   test_for_tupleCoroutineTest.test_for_tuple	  sd    #9#	(E 	( 	
 t$$EJJt %"& %$   A99B		c                  aaa  ! R  R\         4      o ! R R\        4      o. oVVV3R lpV P                  S4      ;_uu_ 4        V! 4       P                  R4       RRR4       V P	                  S^*.4       R#   + '       g   i     L%; i)c                       ] tR tRtRtR# )3CoroutineTest.test_for_stop_iteration.<locals>.Donei!  r*   Nr  r*   r   r   r  r  !  r  r   r  c                   0   a  ] tR tRt o ^ tR tR tRtV tR# )4CoroutineTest.test_for_stop_iteration.<locals>.AIteri#  c                    V # r   r*   r   s   &r   r<  >CoroutineTest.test_for_stop_iteration.<locals>.AIter.__aiter__%  r  r   c                   "   V P                   '       d   \        hV ;P                   ^,          un         V P                  # 5ir   )r;   r8  r$   r   s   &r   r9  >CoroutineTest.test_for_stop_iteration.<locals>.AIter.__anext__'  s+     666,,!zz!s   >A r*   Nr  r   s   @r   r  r  #  s     A" "r   r  c                  `   <"   S! ^*4        Rj  xL
  p SP                  V 4       K   LDSh5ir  r  r  s    r   rf   2CoroutineTest.test_for_stop_iteration.<locals>.foo.  s1      9 ! !aa !9Js   	.+)+.+.N)r7  r1   rM   r0   rj   r  s   & @@@r   test_for_stop_iteration%CoroutineTest.test_for_stop_iteration   sd    #9#	"M 	" 	
 t$$EJJt %"& %$r  c                f  a R  oV3R lpV3R lpV3R lpV3R lpV P                  \        V! 4       4      . ^^).34       V P                  \        V! 4       4      . ^^)034       V P                  \        V! 4       4      . ^R^)R/34       V P                  \        V! 4       4      . ^ ^^^)/34       R# )c                    "   V # 5ir   r*   rc   s   &r   r   $CoroutineTest.test_comp_1.<locals>.f8  
     Hr   c                  h   <"   S! ^4      S! ^)4      3 U u. uF  q G Rj  xL
 NK  	  up #  Lu up i 5ir   r*   r  r   s    r   run_list+CoroutineTest.test_comp_1.<locals>.run_list;  .     &'dAbE]3]GG]33G3   2	-+
-2-2c                  h   <"   S! ^4      S! ^)4      3 U u0 uF  q G Rj  xL
 kK  	  up #  Lu up i 5ir   r*   r  s    r   run_set*CoroutineTest.test_comp_1.<locals>.run_set>  r  r  c                  j   <"   S! ^4      S! ^)4      3 U u/ uF  q G Rj  xL
 RbK  	  up #  Lu up i 5i)r   Nr   r*   r  s    r   	run_dict1,CoroutineTest.test_comp_1.<locals>.run_dict1A  s0     +,Q42-8-QGSL-88G8s   3	.,
	.3.3c                     <"   \        S! ^4      S! ^)4      .4       U Uu/ uF  w  rYG Rj  xL
 bK  	  upp #  Lu upp i 5ir   )	enumerate)r;   r  r   s     r   	run_dict2,CoroutineTest.test_comp_1.<locals>.run_dict2D  s9     +4adAbE]+CD+C41AwJ+CDDwDs   A;9;A;Ar   Nr  )r   r  r  r  r  r   s   &    @r   test_comp_1CoroutineTest.test_comp_17  s    		4	4	9	E 	8:.aW>79-QG}=9;/"q#r36G1HI9;/"q!Qm1DEr   c                
  a R  oV3R lpV P                  \        V! 4       4      . . RO34       V3R lpV P                  \        V! 4       4      . 0 Rm34       V3R lpV P                  \        V! 4       4      . ^
^034       R# )c                    "   V # 5ir   r*   rc   s   &r   r   $CoroutineTest.test_comp_2.<locals>.fM  r  r   c                     <"   S! R 4      S! R4      S! R 4      S! RR.4      3 U Uu. uF  p V G Rj  xL
  F  pVNK  	  K  	  upp #  Lu upp i 5i) abcdefgNr*   r  sr   s     r   r  +CoroutineTest.test_comp_2.<locals>.run_listP  s\      !"qx24,H &H!#$WW $ H & &$&s&   $A
A	AA	AA		Ac            	         <"   S! S! ^
^.4      S! ^.4      .4      3 U UUu0 uF'  p V G Rj  xL
  F  pVG Rj  xL
  F  pVkK  	  K  	  K)  	  uppp #  L' Lu uppp i 5ir   Nr*   )r  r  dr   s      r   r  *CoroutineTest.test_comp_2.<locals>.run_setX  s     B8!"B4!* + ,&,#$WW#$WW	  %	  % ,& & %$	&s6   A
AAAAAAAAAc                     <"   S! S! ^
4      S! ^4      .4      3 U Uu0 uF  p V G Rj  xL
  F  pVG Rj  xL
 kK  	  K   	  upp #  L Lu upp i 5ir  r*   r  s     r   run_set2+CoroutineTest.test_comp_2.<locals>.run_set2c  s\     2"/0&0#$WW GG$ 0& &$  &s6   A
A
AA
AA
AA
A

AN)r   re  r  r  r  >   r         r  )r   r  r  r  r   s   &   @r   test_comp_2CoroutineTest.test_comp_2L  s    		& 	hj!,-	/	& 	gi 	 	&
 	hj!"bN	r   c                b  a R  oV3R lpV P                  \        V! 4       4      . ^^.34       V3R lpV P                  \        V! 4       4      . ^^034       V3R lpV P                  \        V! 4       4      . ^^^^/34       V3R lpV P                  \        V! 4       4      . ^o^y.34       R# )c                *   "   V  F  pV5x  K
  	  R # 5ir   r*   rC  r;   s   & r   r   $CoroutineTest.test_comp_3.<locals>.fm        r(   c                  d   <"   S! ^
^.4       U u. u Rj  xL
 q ^,           NK   LDup # u up i 5ir  r*   r;   r   s    r   r  +CoroutineTest.test_comp_3.<locals>.run_listq  )     )*B855AEE555$   0+'%
'+'+0c                  d   <"   S! ^
^.4       U u0 u Rj  xL
 q ^,           kK   LDup # u up i 5ir  r*   r  s    r   r  *CoroutineTest.test_comp_3.<locals>.run_setw  r  r  c                  t   <"   S! ^
^.4       U u/ u Rj  xL
 q ^,           V ^,           bK   LDup # u up i 5ir  r*   r  s    r   run_dict+CoroutineTest.test_comp_3.<locals>.run_dict}  s/     012r(<<1E1q5L<<<s$   83/-
/3/38c                  v   <"   R  S! ^
^.4       4       p V  Uu. u Rj  xL
 q^d,           NK   LDup# u upi 5i)c                B   "   T  R j  xL
 q^,           5x  K   LDR # 5ir   r*   .0r;   s   & r   	<genexpr>=CoroutineTest.test_comp_3.<locals>.run_gen.<locals>.<genexpr>  s     441q554s   Nr*   rv   r  r   s     r   run_gen*CoroutineTest.test_comp_3.<locals>.run_gen  s3     42r(4C+.//aGG///$   940.
04049Nr  r   r  r  r  r  r   s   &    @r   test_comp_3CoroutineTest.test_comp_3l  s    		6hj!"bN		6gi "bN		=hj!"b"b!"	$	0 	gi #s	r   c                X  a R  oV3R lpV P                  \        V! 4       4      . ^.34       V3R lpV P                  \        V! 4       4      . ^034       V3R lpV P                  \        V! 4       4      . ^^/34       V3R lpV P                  \        V! 4       4      . ^y.34       R# )c                *   "   V  F  pV5x  K
  	  R # 5ir   r*   r  s   & r   r   $CoroutineTest.test_comp_4.<locals>.f  r  r(   c                  v   <"   S! ^
^.4       U u. u Rj  xL
 q ^
8  g   K  V ^,           NK   LDup # u up i 5ir  r*   r  s    r   r  +CoroutineTest.test_comp_4.<locals>.run_list  1     )*B8??ABEAEE???(   940.
044049c                  v   <"   S! ^
^.4       U u0 u Rj  xL
 q ^
8  g   K  V ^,           kK   LDup # u up i 5ir  r*   r  s    r   r  *CoroutineTest.test_comp_4.<locals>.run_set  r  r  c                     <"   S! ^
^.4       U u/ u Rj  xL
 q ^
8  g   K  V ^,           V ^,           bK$   LD up # u up i 5ir  r*   r  s    r   r  +CoroutineTest.test_comp_4.<locals>.run_dict  s7     012r(FF12vLAE1q5LFFFs*   A<86
8<<8<Ac                  v   <"   R  S! ^
^.4       4       p V  Uu. u Rj  xL
 q^d,           NK   LDup# u upi 5i)c                T   "   T  R j  xL
 q^
8  g   K  V^,           5x  K   LDR # 5ir   r*   r  s   & r   r  =CoroutineTest.test_comp_4.<locals>.run_gen.<locals>.<genexpr>  s     >>12v51q55>s    (%#%((%(Nr*   r  s     r   r  *CoroutineTest.test_comp_4.<locals>.run_gen  s3     >2r(>C+.//aGG///r  Nr  r  s   &    @r   test_comp_4CoroutineTest.test_comp_4  s    		@hj!"J		@gi "J		Ghj!"bN		0 	gi #K	r   c           
     f  a R  oV3R lpV P                  \        V! 4       4      . . RO34       V3R lpV P                  \        V! 4       4      . 0 Rm34       V3R lpV P                  \        V! 4       4      . ^^e^^f^^g/34       V3R lpV P                  \        V! 4       4      . . RO34       R# )	c                *   "   V  F  pV5x  K
  	  R # 5ir   r*   r  s   & r   r   &CoroutineTest.test_comp_4_2.<locals>.f  r  r(   c                     <"   S! \        ^4      4       U u. u Rj  xL
 p ^ T u;8  d
   ^8  g   K  M K  V ^
,           NK)   L$D%up # u up i 5i   Nr  r  s    r   r  -CoroutineTest.test_comp_4_2.<locals>.run_list  ;     *+E!H+CCQQFFAFFCCC:   AAAA
AAAAAAAc                     <"   S! \        ^4      4       U u0 u Rj  xL
 p ^ T u;8  d
   ^8  g   K  M K  V ^
,           kK)   L$D%up # u up i 5ir  r  r  s    r   r  ,CoroutineTest.test_comp_4_2.<locals>.run_set  r"  r#  c                     <"   S! \        ^4      4       U u/ u Rj  xL
 p ^ T u;8  d
   ^8  g   K  M K  V ^
,           V ^d,           bK1   L,D-up # u up i 5ir  r  r  s    r   r  -CoroutineTest.test_comp_4_2.<locals>.run_dict  sA     34U1X;LLa!a)!)O)OAFAGOLLLs:   AAAA

AAAA
AAAc                     <"   R  S! \        ^4      4       4       p V  Uu. u Rj  xL
 q^d,           NK   LDup# u upi 5i)c                n   "   T  R j  xL
 p^ Tu;8  d
   ^8  g   K  M K  V^
,           5x  K,   L'D(R # 5ir   r*   r  s   & r   r  ?CoroutineTest.test_comp_4_2.<locals>.run_gen.<locals>.<genexpr>  s(     BBAA		6	61r66Bs$   520255525Nr  r  s     r   r  ,CoroutineTest.test_comp_4_2.<locals>.run_gen  s3     B58BC+.//aGG///s&   A ;75
7;7;A N)         >   r,  r-  r.  )o   p   q   r  r  s   &    @r   test_comp_4_2CoroutineTest.test_comp_4_2  s    		Dhj!	 	Dgi 	 	Mhj!"c2sB,-	/	0 	gi !	#r   c                `   a R  oV3R lpV P                  \        V! 4       4      . ^).34       R# )c                *   "   V  F  pV5x  K
  	  R # 5ir   r*   r  s   & r   r   $CoroutineTest.test_comp_5.<locals>.f  r  r(   c                     <"   ^
^.^^(.3 U Uu. uF4  q ^ ,          ^
8  g   K  S! V 4        Rj  xL
 q^8  g   K  V^,           NK  	  upp #  LDKA  u upp i 5ir  r*   )pairr;   r   s     r   r  +CoroutineTest.test_comp_5.<locals>.run_list  sd     (*Bx"b&: 6&:d1glE#$T76"f AEE&: 6 6 6E 6s@   AAAA
AA
AA	AA
AANr  r   r  r   s   & @r   test_comp_5CoroutineTest.test_comp_5  s0    		6 	hj!"J	r   c                b   a R  oV3R lpV P                  \        V! 4       4      . . RO34       R# )c                *   "   V  F  pV5x  K
  	  R # 5ir   r*   r  s   & r   r   $CoroutineTest.test_comp_6.<locals>.f  r  r(   c                  ~   <"   S! RR.4       U Uu. u Rj  xL
 p V  F  pV^,           NK  	  K   LDupp # u upp i 5i)r   Nr   r  )r  r*   )seqr;   r   s     r   r  +CoroutineTest.test_comp_6.<locals>.run_list  sG     +,h->+? " "C  EE   " " "s$   =7202727
=N)r,        r  r:  s   & @r   test_comp_6CoroutineTest.test_comp_6  s/    		" 	hj!	 r   c                   a R  oV3R lpV P                  \        R4      ;_uu_ 4        \        V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                 4   "   ^5x  ^5x  \        R4      h5i)r   aaa)r7  r*   r   r   r   $CoroutineTest.test_comp_7.<locals>.f  s     GGE""s   c                  P   <"   S! 4        U u. u R j  xL
 q NK   LDup # u up i 5ir   r*   r  s    r   r  +CoroutineTest.test_comp_7.<locals>.run_list       %&S))A)))$   
&!
!!&rJ  N)r   r7  r7   r:  s   & @r   test_comp_7CoroutineTest.test_comp_7  s;    	#
	* ##Iu55hj! 6555s   AA	c                T    R  pV P                  \        V! 4       4      . . RO34       R# )c                  6   "   R U u. uF  q NK  	  up # u up i 5ir   r  r*   rc   s    r   r   $CoroutineTest.test_comp_8.<locals>.f  s     ()y!Ay)))s   
Nr  r  r   r   s   & r   test_comp_8CoroutineTest.test_comp_8  s'    	* 	acNO	r   c                b   a R  oV3R lpV P                  \        V! 4       4      . ^^.34       R# )c                 "   "   ^5x  ^5x  R# 5ir   r*   r*   r   r   rv   &CoroutineTest.test_comp_9.<locals>.gen  s     GGs   c                  |   <"   S! 4        U u. u R j  xL
 q NK   LDMu up i pp T U u. uF  q NK  	  up # u up i 5ir   r*   )r;   lrv   s     r   r   $CoroutineTest.test_comp_9.<locals>.f  s6     "%%((Q((A( >q!Aq>!>s,   
<
<
7<Nr  r   r   rv   s   & @r   test_comp_9CoroutineTest.test_comp_9  s1    		" 	acN!QL	r   c           
     \    R  pV P                  \        V! 4       4      . ^^^^^^/34       R# )c                  b   "   R U u0 uF  q kK  	  pp V Uu/ uF  q"VbK  	  up# u up i u upi 5irT  r*   )r;   xxr,   s      r   r   %CoroutineTest.test_comp_10.<locals>.f   s8     &'Y!YB'"$%"QqD"%% (%s   /
%/*/Nr  rV  s   & r   test_comp_10CoroutineTest.test_comp_10  s5    	& 	acN!Q1a#$	&r   c                   R  pV P                  \        V! 4       4      . ^^.^^..34       R pV P                  \        V! 4       4      . ^^0^^0.34       R pV P                  \        V! 4       4      . ^^
034       R pV P                  \        V! 4       4      . ^
^^^^/^^^^^//34       R pV P                  \        V! 4       4      . ^^.^^..34       R pV P                  \        V! 4       4      . . R	O34       R pV P                  \        V! 4       4      . . R	O34       R pV P                  \        V! 4       4      . ^o^p.^y^z..^^.^^...34       R# )
c            
         "   R U Uu. uF%  p \        ^^.4       Uu. u Rj  xL
 qV ,           NK  	  upp #  LDMu upi upNK;  u upp i 5ir   NrA  r-   jr;   s     r   run_list_inside_list<CoroutineTest.test_nested_comp.<locals>.run_list_inside_list	  ;     FNOh)QF*;<<QUUhOO<<O;   AA;979;AA9;AAc            
         "   R U Uu. uF%  p \        ^^.4       Uu0 u Rj  xL
 qV ,           kK  	  upp #  LDMu upi upNK;  u upp i 5irj  rk  rl  s     r   run_set_inside_list;CoroutineTest.test_nested_comp.<locals>.run_set_inside_list  rp  rq  c                     "   R U Uu0 uF*  p \        \        \        V 4      4       Uu. u Rj  xL
 qNK  	  upp #  LDMu upi up4      kKD  u upp i 5i)r  Nr  r   )r   r-   rg   rl  s     r   run_list_inside_set;CoroutineTest.test_nested_comp.<locals>.run_list_inside_set  s<     IOPAC)E!H*=>>QPP>>?Ps>   A AA ><>A AA>A AAc                     "   R U Uu/ uF%  q \        ^^.4       Uu/ u Rj  xL
 qW,           bK  	  upp #  LDMu upi upbK;  u upp i 5irj  rk  rl  s     r   run_dict_inside_dict<CoroutineTest.test_nested_comp.<locals>.run_dict_inside_dict  s>     LTUHq	1a&0ABB115HUUBBBUs;   AA;979;AA9;AAc                  V   "   R  R 4       p V  Uu. u Rj  xL
 qNK   LDup# u upi 5i)c                   "   T F%  p\        ^^.4       Uu. u Rj  xL
 q"V,           NK  	  R#  LDMu upi up5x  K<  5ir   rk  )r   rm  r;   s   &  r   r  NCoroutineTest.test_nested_comp.<locals>.run_list_inside_gen.<locals>.<genexpr>"  s1     NXAq6):;;AEEX;;;s+   A 31/13A 13A NrA  r*   )rv   r,   s     r   run_list_inside_gen;CoroutineTest.test_nested_comp.<locals>.run_list_inside_gen!  s&     NXNC%())A)))s$   )$ 
 $ $)c            	         "   R U u. uF  p R \        \        V 4      4       4       NK   	  pp V UUu. uF  q"  Rj  xL
 q3NK  	  upp# u up i  LDK   u uppi 5i)r  c                4   "   T  R j  xL
 q5x  K   L
DR # 5ir   r*   r  s   & r   r  NCoroutineTest.test_nested_comp.<locals>.run_gen_inside_list.<locals>.<genexpr>)       ::Q:   Nrv  r-   rg   )rm  gensr  r,   s       r   run_gen_inside_list;CoroutineTest.test_nested_comp.<locals>.run_gen_inside_list(  sR     DJKFq:ia&9:FDK#5t!15aAt55 L5A5sA   A$A
AAA
AA
 A	AA
AAc                  l   "   R  R 4       p V  UUu. uF  q  Rj  xL
 q"NK  	  upp#  LDK  u uppi 5i)c              3   X   "   T F   pR  \        \        V4      4       4       x  K"  	  R# 5i)c                4   "   T  R j  xL
 q5x  K   L
DR # 5ir   r*   r  s   & r   r  WCoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen.<locals>.<genexpr>.<genexpr>0  r  r  Nr  )r   rm  s   & r   r  MCoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen.<locals>.<genexpr>0  s"     KFq:ia&9::Fs   (*Nrv  r*   )r  r  r,   s      r   run_gen_inside_gen:CoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen/  s3     KFKD#5t!15aAt555A5s(   4.+
)+
.4+
.4c                     "   R U UUu. uF>  p R UUu. uF,  p\        ^^.4       Uu. u Rj  xL
 q"V,           V ,           NK  	  uppNK@  	  uppp #  L$D%Mu upi upNKK  u uppi u uppp i 5i)d   N)r     rA  rk  )krm  r;   s      r    run_list_inside_list_inside_listHCoroutineTest.test_nested_comp.<locals>.run_list_inside_list_inside_list6  sk      ()' '(& 09!Q/@AA!!eaii&(') )AA ( )sX   A-
A&A AAAAAA A&A-AAA  A&&A-N)r   r   r  r   r   r  r     r  )	r   rn  rs  rw  rz  r  r  r  r  s	   &        r   test_nested_compCoroutineTest.test_nested_comp  s   	P*,-2r(RH%&	(	P)+,2r(RH%&	(	Q)+,!RM		V*,-"q"anb1b!R.9:	<	* 	)+,2r(RH%&	(	6 	)+,)*	,	6 	(*+)*	,	) 	689C:Sz*c3Z#s,DEF	Hr   c                   R  pV! 4       pV P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       VP                  4       p V P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       VP	                  4        R#   + '       g   i     Lo; i  + '       g   i     L5; i  TP	                  4        i ; i)c                     "   R # 5ir   r*   r*   r   r   r   %CoroutineTest.test_copy.<locals>.func?  r  r   N)rM   r   copyr   r   )r   r   r3   r:   s   &   r   	test_copyCoroutineTest.test_copy>  s    vy))IIdO * ^^	""9--		" . HHJ *)
 .- HHJs/   B&C 5B9C &B6	9C		C Cc                   R  pV! 4       p\        \        P                  ^,           4       FO  pV P                  \        \        P
                  34      ;_uu_ 4        \        P                  ! W#4       RRR4       KQ  	  VP                  4       p \        \        P                  ^,           4       FO  pV P                  \        \        P
                  34      ;_uu_ 4        \        P                  ! WC4       RRR4       KQ  	  VP                  4        R#   + '       g   i     K  ; i  + '       g   i     K  ; i  TP                  4        i ; i)c                     "   R # 5ir   r*   r*   r   r   r   'CoroutineTest.test_pickle.<locals>.funcL  r  r   N)	rg   pickleHIGHEST_PROTOCOLrM   r   PicklingErrordumpsr   r   )r   r   r3   protor:   s   &    r   test_pickleCoroutineTest.test_pickleK  s    v622Q67E""Iv/C/C#DEET) FE 8 ^^	v66:;&&	63G3G'HIILL+ JI < HHJ FEE JII HHJs1   DAD< D(6D< D%(D93	D< <Ec           
         R  p\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       ;_uu_ 4       p\         P                  ! R4       V! 4       p\        V4      pRp\        P                  ! 4        V P                  VP                  P                  RV 24       V P                  R\        VP                  P                  4      4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)c                     "   R # 5ir   r*   r*   r   r   r   3CoroutineTest.test_fatal_coro_warning.<locals>.func\  r  r   rm  N-Exception ignored while finalizing coroutine zwas never awaited)r?   r@   r   catch_unraisable_exceptionfilterwarningsr   rB   rj   
unraisableerr_msgr  str	exc_value)r   r   r  r3   	coro_reprs   &    r   test_fatal_coro_warning%CoroutineTest.test_fatal_coro_warningZ  s    $$&&//11R##G,6DT
ID R]]22 **367 MM-s2==3J3J/KL 2 '&11 '&&s#   C<BC)	C<)C94C<<D	c                0  a aa  ! R  R4      pV! 4       oR oV VV3R lpS P                  \        V! 4       4      . R34       V VV3R lpS P                  \        V! 4       4      . R34       V VV3R lpS P                  \        V! 4       4      . R34       R# )c                   &   a  ] tR tRt o R tRtV tR# )MCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.BadTargetil  c                    \        ^*4      hr  r7  )r   keyr$   s   &&&r   __setitem__YCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.BadTarget.__setitem__m      (,,r   r*   N)r   r   r   r   r  r   r   r   s   @r   	BadTargetr  l       - -r   r  c                    "   ^
5x  R# 5ir  r*   r*   r   r   sourceJCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.sourcep  s
     Hs   
c                    <"   SP                  \        4      ;_uu_ 4       p S! 4         R j  xL
  S^ &   K   L
D R R R 4       M  + '       g   i     M; iSP                  X P                  P                  R4       R# 5iNr#  r  rM   r8  rj   r  r2   r  r   r  tgts    r   run_forKCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_fors  sg     ""#566"$*H  #a&H 7666 R\\..6s5   B A:8
:A:A	B A	0B r#  c                    <"   SP                  \        4      ;_uu_ 4       p S! 4        . u R j  xL
 S^ &   ^ NK   LDuuR R R 4       #   + '       g   i     M; iSP                  X P                  P                  R4       R# 5ir  r  r  s    r   r  LCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_list{  s\     ""#566".4h77CF7 7666R\\..6s5   B
A	=;=A	=A	B	A	0Bc                    <"   V3R  lS! 4        4       p V P                  R4      pSP                  \        4      ;_uu_ 4       pVG Rj  xL
  RRR4       SP                  XP                  P
                  \        4       SP                  VP                  P
                  P                  R4       R#  Lh  + '       g   i     Ln; i5i)c                >   <"   T  R j  xL
 S^ &   ^ 5x  K   LDR # 5ir   r*   )r   r  s   &r   r  ^CoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_gen.<locals>.<genexpr>  s     22s1v12s   Nr#  r  	asendrM   r   r   r  r  r8  rj   r2   )rv   r   r  r   r  r  s      r   r  KCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_gen  s     22C		$A""<00B 1!!",,"8"8:LMR\\3388%@  10s1   A CB4	B2
B4A$C2B44C	?CNr  )r   r  r  r  r  r  r  s   f    @@r   ,test_for_assign_raising_stop_async_iteration:CoroutineTest.test_for_assign_raising_stop_async_iterationk  s    	- 	- k		 	79-E{;	
 	8:.U<	 	79-E{;r   c                "  a aa  ! R  R4      oV3R loVV 3R lpS P                  \        V! 4       4      . R34       VV 3R lpS P                  \        V! 4       4      . R34       VV 3R lpS P                  \        V! 4       4      . R34       R# )c                   &   a  ] tR tRt o R tRtV tR# )QCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.BadIterablei  c                    \        ^*4      hr  r7  r   s   &r   r  ZCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.BadIterable.__iter__  r  r   r*   N)r   r   r   r   r  r   r   r   s   @r   BadIterabler    r  r   r  c                 $   <"   S ! 4       5x  R # 5ir   r*   )r  s   r   badpairsNCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.badpairs  s     -s   c                    <"   SP                  \        4      ;_uu_ 4       p S! 4         R j  xL
  w  rK   L	D
 R R R 4       M  + '       g   i     M; iSP                  X P                  P                  R4       R# 5ir  r  r  r;   rm  r  r   s      r   r  MCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_for  se     ""#566""**  $!* 7666 R\\..6s5   A?A97
9A9A	A?A	0A?r#  c            	      $  <"   SP                  \        4      ;_uu_ 4       p S! 4        UUu. u R j  xL
 w  r^ NK   L
DMu uppi uppuuR R R 4       #   + '       g   i     M; iSP                  X P                  P                  R4       R# 5ir  r  r  s      r   r  NCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_list  s^     ""#566",4J77DA77 7666R\\..6sA   BAA
?=?A
?A
 
A
BA%	 0Bc                    <"   R  S! 4        4       p V P                  R4      pSP                  \        4      ;_uu_ 4       pVG Rj  xL
  RRR4       SP                  XP                  P
                  \        4       SP                  VP                  P
                  P                  R4       R#  Lh  + '       g   i     Ln; i5i)c                :   "   T  R j  xL
 w  r^ 5x  K   LDR # 5ir   r*   )r   r;   rm  s   &  r   r  `CoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_gen.<locals>.<genexpr>  s     22tq12s   
Nr#  r  r  )rv   r   r  r  r   s      r   r  MCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_gen  s     2xz2C		$A""<00B 1!!",,"8"8:LMR\\3388%@  10s0   =C B1B/B1A$C/B11C	<CNr  )r   r  r  r  r  r  s   f   @@r   .test_for_assign_raising_stop_async_iteration_2<CoroutineTest.test_for_assign_raising_stop_async_iteration_2  sx    	- 	-	 	 	79-E{;	
 	8:.U<	 	79-E{;r   c                    R  pV P                  \        4      ;_uu_ 4        V! 4       P                  pRRR4       XP                  4        R#   + '       g   i     L"; i)c                     "   R # 5ir   r*   r*   r   r   r   )CoroutineTest.test_bpo_45813_1.<locals>.f  r   r   N)r   r   cr_frameclear)r   r   frames   &  r   test_bpo_45813_1CoroutineTest.test_bpo_45813_1  s:    	n--CLLE . .-s   AA	c                    R  pV! 4       pV P                  \        4      ;_uu_ 4        VP                  P                  4        RRR4       VP	                  4        R#   + '       g   i     L"; i)c                     "   R # 5ir   r*   r*   r   r   r   )CoroutineTest.test_bpo_45813_2.<locals>.f  r   r   N)r   r   r  r  r   r_  s   &  r   test_bpo_45813_2CoroutineTest.test_bpo_45813_2  sF    	cn--LL  .		 .-s   AA-	c                    R  pV! 4       pV P                  VP                  4       VP                  4        V P                  VP                  4       R# )c                     "   R # 5ir   r*   r*   r   r   r   2CoroutineTest.test_cr_frame_after_close.<locals>.f  r   r   N)assertIsNotNoner  r   r^  r_  s   &  r   test_cr_frame_after_close'CoroutineTest.test_cr_frame_after_close  s;    	cS\\*		#,,'r   c                   aa V3R  lpV3R lo\         P                  R 4       oV! 4       pVP                  R4      pVP                  \        4      pV P                  W44       R# )c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   r  s   r   r   6CoroutineTest.test_stack_in_coroutine_throw.<locals>.a       99r  c                  .   <"   S ! 4       G R j  xL
 #  L5ir   r*   )r  s   r   re  6CoroutineTest.test_stack_in_coroutine_throw.<locals>.b  r  r  c               3      "    \        \        P                  ! 4       4      x  R #   \         d%    \        \        P                  ! 4       4      x   R # i ; i5ir   )r  	tracebackextract_stackr   r*   r   r   r  6CoroutineTest.test_stack_in_coroutine_throw.<locals>.c  s@     5)11344$ 5)113445s%   A & A+AAAAN)r   r   r0   r   r   rj   )r   r   r3   len_send	len_throwre  r  s   &    @@r   test_stack_in_coroutine_throw+CoroutineTest.test_stack_in_coroutine_throw  sX    		 
	5 
	5 s99T?JJ01	-r   c                   aa  ! R  R4      o ! V3R lR4      oV3R lpV3R lpV P                  \        V! 4       4      . ^^.34       V P                  \        V! 4       4      . ^^.34       R# )c                   ,   a  ] tR tRt o R tR tRtV tR# )JCoroutineTest.test_call_aiter_once_in_comprehension.<locals>.AsyncIteratori  c                    ^ V n         R# r  r  r   s   &r   r   SCoroutineTest.test_call_aiter_once_in_comprehension.<locals>.AsyncIterator.__init__  s	    r   c                   "   V P                   ^8X  d   \        hV ;P                   ^,          un         V P                   # 5i)r  )r  r8  r   s   &r   r9  TCoroutineTest.test_call_aiter_once_in_comprehension.<locals>.AsyncIterator.__anext__  s,     88q=,,Axxrf  r  N)r   r   r   r   r   r9  r   r   r   s   @r   AsyncIteratorr    s        r   r  c                   .   <a  ] tR tRt o V3R ltRtV tR# )>CoroutineTest.test_call_aiter_once_in_comprehension.<locals>.Ci  c                   < S! 4       # r   r*   )r   r  s   &r   r<  HCoroutineTest.test_call_aiter_once_in_comprehension.<locals>.C.__aiter__  s    $&r   r*   Nr@  )r   r  s   @r   r[  r    s     ' 'r   r[  c                  P   <"   S! 4        U u. u R j  xL
 q NK   LDup # u up i 5ir   r*   )r;   r[  s    r   run_listcompICoroutineTest.test_call_aiter_once_in_comprehension.<locals>.run_listcomp  rN  rO  c                  b   <"   R  S! 4        4       p V  Uu. u Rj  xL
 qNK   LDup# u upi 5i)c                4   "   T  R j  xL
 q5x  K   L
DR # 5ir   r*   r  s   & r   r  \CoroutineTest.test_call_aiter_once_in_comprehension.<locals>.run_asyncgen.<locals>.<genexpr>  s     ''a!'r  Nr*   )agr;   r[  s     r   run_asyncgenICoroutineTest.test_call_aiter_once_in_comprehension.<locals>.run_asyncgen  s)     '13'B%'((A(((s$   /*&$
&*&*/Nr  )r   r  r  r  r[  s   &  @@r   %test_call_aiter_once_in_comprehension3CoroutineTest.test_call_aiter_once_in_comprehension  sa    		  		 	' 	'
	*	) 	<>2R!QLA<>2R!QLAr   r*   N)\r   r   r   r   rz   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r)  r8  r=  rD  rL  rR  rX  rl  ru  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r(  r1  rC  r\  ro  rz  r  r  r  r  r  r  r  r  r  r
  r+  r9  rH  rT  rs  r  r  r  r  r  r  r  r  r  r2  r;  rF  rP  rW  r`  rf  r  r  r  r  r  r  r  r  r  r  r  r   r   r   s   @r   rs   rs     s    0M":/0 
!,(GT
,"+>.&P%<..+<G59	8	7,
5C$ 'D$$.	C&P, , ,&&K4=!@!(D4E,$!*F3P<>(>.Z&x!!$@('.'.F*@<<#<
 
"
&4HlM"<B<@(..B Br   rs   z0asyncio does not work under Emscripten/WASI yet.c                   &   a  ] tR tRt o R tRtV tR# )CoroAsyncIOCompatTesti  c                  aaaa \         P                  ! R 4      o ! R R\        4      o. o ! VV3R lR4      oVVVV3R lpSP                  4       pSP	                  V4        VP                  V! 4       4       VP                  4        SP                  P                  R4       V P                  S. RO4       R#   S d     LJi ; i  TP                  4        SP                  P                  R4       i ; i)asyncioc                       ] tR tRtRtR# )9CoroAsyncIOCompatTest.test_asyncio_1.<locals>.MyExceptioni	  r*   Nr  r*   r   r   MyExceptionr&  	  r  r   r'  c                   >   <a  ] tR tRt o VV3R ltVV3R ltRtV tR# )0CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CMi	  c                   <"   SP                  ^4       SP                  R4      G Rj  xL
  SP                  ^4       V #  L5i)r   {Gz?N)r/   sleep)r   r$  r4   s   &r   rN  ;CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CM.__aenter__	  s:     a mmD)))a  *s   &AAAc                |   <"   SP                  R 4      G Rj  xL
  SP                  VP                  4       R#  L!5i)r+  N)r,  r/   r   )r   exc_typeexc_valexc_tbr$  r4   s   &&&&r   rR  :CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CM.__aexit__	  s/     mmD)))h//0 *s   <:"<r*   Nr  )r   r$  r4   s   @r   rd  r)  	  s     1 1r   rd  c                     <"   S ! 4       ;_uu_4       GR j  xL
  SP                  R4      G R j  xL
  Sh L L  + GR j  xL 
 '       g   i     M; iSP                  R4       R # 5i)Nr+  unreachable)r,  r/   )rd  r'  r$  r4   s   r   r   /CoroAsyncIOCompatTest.test_asyncio_1.<locals>.f	  sI     tttmmD)))!! ) ttt MM-(s@   A*7A*;9;A*;A	A
A	A	A*N)r   r  r'  )
r   import_moduler7  new_event_loopset_event_looprun_until_completer   events_set_event_loop_policyrj   )r   r   looprd  r'  r$  r4   s   &  @@@@r   test_asyncio_1$CoroAsyncIOCompatTest.test_asyncio_1	  s      --i8	) 	 		1 		1	) 	) %%'t$	8##AC( JJLNN11$7!67  		 JJLNN11$7s$   %B< <CC	 CC	 	-C6r*   N)r   r   r   r   r=  r   r   r   s   @r   r"  r"    s     %8 %8r   r"  c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )OriginTrackingTesti)	  c                    \         P                  ! \         P                  ! 4       P                  4      pVP                  VP
                  3# r   )rl   getframeinfocurrentframef_backfilenamelineno)r   infos   & r   hereOriginTrackingTest.here*	  s4    ##G$8$8$:$A$ABt{{++r   c           	       a a \         P                  ! 4       p R  o\         P                  ! ^ 4       S P                  \         P                  ! 4       ^ 4       \        P
                  ! S! 4       4      ;_uu_ 4       pS P                  VP                  4       RRR4       \         P                  ! ^4       S P                  \         P                  ! 4       ^4       S P                  4       w  r4\        P
                  ! S! 4       4      ;_uu_ 4       pS P                  VP                  W4^,           R334       RRR4       \         P                  ! ^4       S P                  \         P                  ! 4       ^4       VV 3R lpS P                  4       w  r4V! 4       w  w  rgp\        P
                  ! V4      ;_uu_ 4        S P                  VP                  WgR3W4^,           R334       RRR4       \         P                  ! R4       \        P
                  ! S! 4       4      ;_uu_ 4       pS P                  ^\        VP                  4      u;8  ;'       d    R8  Mu 4       RRR4       S P                  \        4      ;_uu_ 4        \         P                  ! R4       RRR4       S P                  \         P                  ! 4       R4       \         P                  ! V4       R#   + '       g   i     ELS; i  + '       g   i     EL; i  + '       g   i     EL,; i  + '       g   i     L; i  + '       g   i     L; i  \         P                  ! T4       i ; i)c                     "   R # 5ir   r*   r*   r   r   corofn7OriginTrackingTest.test_origin_tracking.<locals>.corofn1	  r  r   Ntest_origin_trackingc                  2   < SP                  4       S ! 4       3# r   )rH  )rL  r   s   r   nested7OriginTrackingTest.test_origin_tracking.<locals>.nestedE	  s    		VX..r   rP  r  )r6  #get_coroutine_origin_tracking_depth#set_coroutine_origin_tracking_depthrj   r?  r@  r^  	cr_originrH  rk   r  rM   r  )	r   
orig_depthr3   fnamerF  rP  nested_fnamenested_linenorL  s	   f       @r   rN  'OriginTrackingTest.test_origin_tracking.	  s[   <<>
*	@ 33A6SDDFJ##FH--!!$..1 . 33A6SDDFJ IIKME##FH--  #(1*6L"M!OQ . 33A6SDDFJ/ IIKME4:H1*lD##D))  #/"I#(1*6L"M"OP * 33D9##FH--C$7 > >$ >? . "":..77; / SDDFM 33J?G .-- .-- *)) .- /. 33J?s   A!M :K A8M 'K45BM ;*L%AM &9L%M L/-M  K1	+	M 4L	?	M L		M L,	'M /L?	:M Mc                8  a aaa	 R  o	S P                  4       w  rV	3R loV^,          pS P                  4       w  r4V3R loV^,          pVV 3R lp\        P                  ! 4       p V! ^ RS	P                   R24       V! ^RP	                  RS	P                   R2RR	V R
V R2R.4      4       V! ^RP	                  RS	P                   R2RR	V R
V R2RR	V R
V R2R.4      4       \        P
                  ! V4       R#   \        P
                  ! T4       i ; i)c                     "   R # 5ir   r*   r*   r   r   rL  ?OriginTrackingTest.test_origin_tracking_warning.<locals>.corofn]	  r   r   c                     < S ! 4       # r   r*   )rL  s   r   a1;OriginTrackingTest.test_origin_tracking_warning.<locals>.a1a	  s
    8Or   c                     < S ! 4       # r   r*   )r_  s   r   a2;OriginTrackingTest.test_origin_tracking_warning.<locals>.a2f	  s
    4Kr   c                 (  < \         P                  ! V 4       SP                  \        4      ;_uu_ 4       pS! 4        \        P
                  ! 4        R R R 4       SP                  V\        XP                  4      4       R #   + '       g   i     L7; ir   )	r6  rT  r   r   r   rB   rj   r  warning)depthmsgr  rb  r   s   && r   r   >OriginTrackingTest.test_origin_tracking_warning.<locals>.checkj	  s]    33E:!!.11R""$ 2 S#bjj/2 21s   BB	zcoroutine 'z' was never awaitedr  z' was never awaited
z-Coroutine created at (most recent call last)
z  File "z", line z, in a1
z$    return corofn()  # comment in a1z, in a2
z!    return a1()  # comment in a2
N)rH  r6  rS  r   ri   rT  )
r   a1_filename	a1_linenoa2_filename	a2_linenor   rV  r_  rb  rL  s
   f      @@@r   test_origin_tracking_warning/OriginTrackingTest.test_origin_tracking_warning\	  s:   	 "&	Q	!%	Q		3 <<>
	@!{6#6#6"77JKL!RWWf1122GH@;-x	{)D6	   !RWWf1122GH@;-x	{)D4;-x	{)D6   33J?C33J?s   'BD Dc           	     (   R  p\         P                  p R \         n        \        P                  ! 4       ;_uu_ 4       p\        P
                  ! R\        34      ;_uu_ 4        V! 4       p\        V4      p?\        P                  ! 4        V P                  VP                  P                  RV 24       V P                  VP                  P                  \        4       RRR4       RRR4       \         =\        P
                  ! R\        34      ;_uu_ 4        V! 4        \        P                  ! 4        RRR4       V\         n        R#   + '       g   i     Lt; i  + '       g   i     L; i  + '       g   i     LC; i  T\         n        i ; i)c                     "   R # 5ir   r*   r*   r   r   rL  LOriginTrackingTest.test_unawaited_warning_when_module_broken.<locals>.corofn	  r   r   c                     ^^ ,          # r   r*   r   s   &r   r   NOriginTrackingTest.test_unawaited_warning_when_module_broken.<locals>.<lambda>	  s    acr   zcoroutine .* was never awaitedr  N)r?   _warn_unawaited_coroutiner   r  r   check_warningsr   r   rB   rj   r  r  r/  r   )r   rL  orig_wucr  r3   r  s   &     r   )test_unawaited_warning_when_module_broken<OriginTrackingTest.test_unawaited_warning_when_module_broken	  s5   	 55	:1AH.3355 //;(*+ + x J	 ""$  !6!6$..7[":;   !7!79JK+ 6" 2 //6GI I""$I 2:H./+ + 65$I I 2:H.sS   )F %E#A<E	E'2F E16F EEE.	)F 1F	<F Fr*   N)
r   r   r   r   rH  rN  rm  rw  r   r   r   s   @r   r@  r@  )	  s"     ,,@\(@T": ":r   r@  c                   &   a  ] tR tRt o R tRtV tR# )"UnawaitedWarningDuringShutdownTesti	  c                Z    R p\        RV4       Rp\        RV4       Rp\        RV4       R# )zWimport asyncio
async def f(): pass
async def t(): asyncio.gather(f())
asyncio.run(t())
z-cz.import sys
async def f(): pass
sys.coro = f()
zYimport sys
async def f(): pass
sys.corocycle = [f()]
sys.corocycle.append(sys.corocycle)
Nr   )r   rH   s   & r   &test_unawaited_warning_during_shutdownIUnawaitedWarningDuringShutdownTest.test_unawaited_warning_during_shutdown	  s;    % 	t$# 	t$8 	t$r   r*   N)r   r   r   r   r|  r   r   r   s   @r   rz  rz  	  s     % %r   rz  zrequires _testcapic                   2   a  ] tR tRt o R tR tR tRtV tR# )CAPITesti	  c                l   a ^ RI Ho V3R lpV P                  V! 4       P                  R4      ^4       R# )r   	awaitTypec                  H   <"   S! \        ^.4      4      p V G Rj  xL
 #  L5ir   r  futureats    r   rf   %CAPITest.test_tp_await_1.<locals>.foo	  s     aS	]F L!Ls   " "N)	_testcapir  rj   r0   r   rf   r  s   & @r   test_tp_await_1CAPITest.test_tp_await_1	  s(    -	" 	D)1-r   c                    ^ RI Hp V! \        ^.4      4      pV P                  \	        VP                  4       4      ^4       R# )r   r  N)r  r  r   rj   r9   r   )r   r  r  s   &  r   test_tp_await_2CAPITest.test_tp_await_2	  s2    -D!If..0115r   c                   a ^ RI Ho V3R lpV P                  \        R4      ;_uu_ 4        V P	                  V! 4       P                  R4      ^4       RRR4       R#   + '       g   i     R# ; i)r   r  c                  4   <"   S! ^4      p V G Rj  xL
 #  L5ir   r*   r  s    r   rf   %CAPITest.test_tp_await_3.<locals>.foo	  s     UF L!Ls   z.__await__.*returned non-iterator of type 'int'N)r  r  r   r   rj   r0   r  s   & @r   test_tp_await_3CAPITest.test_tp_await_3	  s\    -	" ##KM MSUZZ-q1M M M Ms   'AA.	r*   N)	r   r   r   r   r  r  r  r   r   r   s   @r   r  r  	  s     .6	2 	2r   r  __main__)'r?  r  rl   r  r6  r   r  unittestr?   testr   test.supportr   r   test.support.script_helperr   r  ImportErrorr	   r!   r-   r7   r<   contextmanagerrC   TestCaserE   ra   rs   skipIfis_emscriptenis_wasir"  r@  rz  cpython_onlyr  r   rk  r*   r   r   <module>r     s       
      & ( 7
  &  b0** b0J@)) @,jBH%% jBZ7 
,,W__6'8H-- '8	'8T:** :D%):): %* 		d"$892x   2 : 2: ZMMO _N  Is   E; ;	FF