403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.109
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_coroutines.cpython-315.pyc
R
>lqj�c��]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
]QH,Gs]QH,G
s
]QH8Gs]PHBsQQ2sQQ2sQ	sQ
sQs\O.Q2sQ
Q\O22sQQ\O22sQQ\O22s\O:\
O<9%f
\
O>Q2QQ\O222s QQ\O22s!QQ\O22s"\
OF\O:\PIQ2QQ\O2222s$\%Q6Xc\OL2P!P!\cPsCKEh9h)�)�support)�
import_helper)�warnings_helper��assert_python_okc�.`�\sQs]snQsQsQsUsP!)�AsyncYieldFromc��VmP!�N��obj)�selfrs&&�)C:\Python315\\Lib\test\test_coroutines.py�__init__�AsyncYieldFrom.__init__s����c#�@ �UOFPiw�K
P!K3hr
r�r
s&r�	__await__�AsyncYieldFrom.__await__s����8�8���s���r��__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�__classdictcell__��
__classdict__s@rrrs������rrc�.`�\sQs]snQsQsQsUsP!)�
AsyncYieldc��VmP!r
��value)r
r#s&&rr�AsyncYield.__init__s���
rc#�. �UOw�	P!3hr
r"rs&rr�AsyncYield.__await__ s����j�j��s�r"rrs@rr r s������rr c�0 �SFD	oU3w�	J	P!3h)z0Convert an iterable to an asynchronous iterator.�)�iterable�xs& r�	asynciterr+$s���
�������c�8�UO[O[O.7fPg,oPoUO	UOP22J$[c4oSO%cSO]*LPoPo=X1!Po=hh9hr
)�	__class__�types�
GeneratorType�
CoroutineType�append�send�
StopIteration�args)�coro�buffer�result�exs&   r�	run_asyncr:*s}���>�>�e�1�1�5�3F�3F�G�G�G�G�
�F�
�F�
�	��M�M�$�)�)�D�/�*���	�#%�7�7�7�R�W�W�Q�Z��F���>���	�s#� A�	B�%B�&B�8B�Bc��UO[OIfPgUO2o,oPo]oU]*%cUO	[U22L UO	UO
P22U]*
oJW[c4oSO%cSO]*LPoPo=X#1!Po=hh9hr
)	r.r/r1rr2�nextr3r4r5)r6�awr7r8�ir9s&     r�run_async__await__r?8s����>�>�U�0�0�0�0�0�	
���	�B�
�F�
�F�	�A�
�	��1�u�u��
�
�d�2�h�'��
�
�b�g�g�d�m�,�
��F�A���	�#%�7�7�7�R�W�W�Q�Z��F���>���	�s*�B�	AB�	C
�C
�C�,C�C
c#�� �[O29^tt^2[OQ2Pw�[O2PPP2P!)%fhP!9h3h)�ignore)�warnings�catch_warnings�simplefilterr�
gc_collectr(rr�silence_coro_gcrFKs?���	�	 �	 �	"�	"����h�'�
�����
#�	"�	"�	"�s"�A0�1A�
A0�A-	�%A-	�'	A0c�:`�\sQs]SsnQsQsQsQsQsUs	P!)�AsyncBadSyntaxTestc��,QMQMQMQMQMQMQMQMQMQ	MQ
MQMQMQ
MQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQ MQ!MQ"MQ#MQ$MQ%MQ&MQ'MQ(MQ)MQ*MQ+MQ,MQ-MQ.MQ/MQ0MQ1MQ2MQ3MQ4MQ5MQ6MQ7MQ8MQ9MQ:MQ;MQ<MQ=MoSFDYoUOUQ>59^tt^2UO[29^tt^2[UQ?Q@2PPP2PPP2J[	P!)%fhK9h)%fhJ�9h)Az9def foo():
                await something()
            zawait 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]
            z�async def foo():
                def bar():
                 [i for i in els
                    async for b in els]
            z�async def foo():
                def bar():
                 [i for i in els
                    for c in b
                    async for b in els]
            z�async 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]
            z�async def foo():
                def bar():
                 [i for i in els
                    for b in await els]
            z�async 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]
            zdef bar():
                 [i for i in els
                    for c in b
                    async for b in els]
            zdef 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
            z�def foo():
                   def baz(): pass
                   # 456
                   async def bar(): pass
                   # 123
                   await a
            z�async def foo():
                   def baz(): pass
                   # 456
                   async def bar(): pass
                   # 123
                   await = 2
            z�def foo():

                   def baz(): pass

                   async def bar(): pass

                   await a
            z�async 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
            z�async def foo():
                   def bar():
                        def baz():
                            async = 1
            z�async def foo():
                   def bar():
                        def baz():
                            pass
                        async = 1
            z�def foo():
                   async def bar():

                        async def baz():
                            pass

                        def baz():
                            42

                        async = 1
            z�async def foo():
                   def bar():
                        def baz():
                            pass
await foo()
            z�def 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>�exec��subTest�assertRaises�SyntaxError�compile�r
�samplesrKs&  r�test_badsyntax_1�#AsyncBadSyntaxTest.test_badsyntax_1Usw��~�
�~�

$�~�
�~�
�~�
�~�&
�'~�.
�/~�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��(�(�(�s0� C5	�>C"
�C5	�"C2�+C2�-C5	�5D
�>D
c��,QNoSFDYoUOUQ59^tt^2UO[29^tt^2[UQQ2PPP2PPP2J[	P!)%fhK9h)%fhJ�9h)�1def foo():
                await = 1
            rJrLrM)	rXz9class Bar:
                def async(): pass
            z1class Bar:
                async = 1
            z.class async:
                pass
            z.class await:
                pass
            zimport math as awaitz!def async():
                passz2def foo(*, await=1):
                passasync = 1zprint(await=1)rNrSs&  r�test_badsyntax_2�#AsyncBadSyntaxTest.test_badsyntax_2�s`�� 
��D�D����4��(�(�$�*;�*;�K�*H�*H���h��/�+I�(�(��*H�*H��(�(�(��/�A;	�A(
�A;	�(A8�1A8�3A;	�;B
�B
c��UO[29^tt^2[QQQ2PPP2P!)%fhP!9h)z	async = 1rLrM)rPrQrRrs&r�test_badsyntax_3�#AsyncBadSyntaxTest.test_badsyntax_3�s.��
�
�
�{�
+�
+��K��6�2�,�
+�
+�
+�s�7�A	�A	c��,QNoSFDYoUOUQ59^tt^2UO[29^tt^2[UQQ2PPP2PPP2J[	P!)%fhK9h)%fhJ�9h)��def foo(await):
                async def foo(): pass
                async def foo():
                    pass
                return await + 1
            rJrLrM)r`z�def foo(await):
                async def foo(): pass
                async def foo(): pass
                return await + 1
            z�def foo(await):

                async def foo(): pass

                async def foo(): pass

                return await + 1
            z�def 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
            rNrSs&  r�test_badsyntax_4�#AsyncBadSyntaxTest.test_badsyntax_4�s`��+
��Z�D����4��(�(�$�*;�*;�K�*H�*H���h��/�+I�(�(��*H�*H��(�(�(�r[r()
rrrrrUrYr]rarrrs@rrHrHSs!����C0�J
%0�N3�00�00rrHc�(`�\sQsQsnQsQsUsP!)�TokenizerRegrTest�c��,o[Q2FD$oUOQOUQ52J&	QOU2o-o[	VU2UOUQ*2Q2UQ*
o-o[	VU2UOUQ*2Q2UO
[OUQ*22P!)��zdef i{i}(): return {i}�r>�
�i499��z
async def foo():
    return�foo)	�ranger2�format�joinrM�assertEqual�
assertTrue�inspect�iscoroutinefunction)r
�bufr>�nss&   r�test_oneline_defs�#TokenizerRegrTest.test_oneline_defs�s������s��A��J�J�/�6�6��6�;�<���i�i��n�����S�b������F���s�+�	�/�/��
���S�b������F���s�+�����3�3�B�u�I�>�?rr()rrrrrvrrrs@rrdrd�s����@�@rrdc�&`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Q s"Q!s#Q"s$Q#s%Q$s&Q%s'Q&s(Q's)Q(s*Q)s+Q*s,Q+s-Q,s.Q-s/Q.s0Q/s1Q0s2Q1s3Q2s4Q3s5Q4s6Q5s7Q6s8Q7s9Q8s:Q9s;Q:s<Q;s=Q<s>Q=s?Q>s@Q?sAQ@sBQAsCQBsDQCsEQDsFQEsGQFsHQGsIQHsJQIsKQJsLQKsMQLsNQMsOQNsPQOsQQPsRQQsSQRsTQSsUQTsVQUsWQVsXQWsYQXsZUs[P!)Y�
CoroutineTest�c�2�QoUOUQ2P!)c3� �Pw�	P!3hr
r(r(rr�gen�%CoroutineTest.test_gen_1.<locals>.gens���5���	r)�assertNotHasAttr)r
r}s& r�
test_gen_1�CoroutineTest.test_gen_1s������c�;�/rc�~�QoU2oUOU[O2UO[	UO
O[O*22UO[	UO
O[O*22UO[	UOO[O*22UO[	UOO[O*22UO[U2,]
12UO[U22,]
12QoUO[	UO
O[O*22P!)c�� �]
!3h��
r(r(rrrl�&CoroutineTest.test_func_1.<locals>.foo�������c��P!r
r(r(rr�bar�&CoroutineTest.test_func_1.<locals>.bar"s��4r)�assertIsInstancer/r1rq�bool�__code__�co_flagsrr�CO_COROUTINE�assertFalse�CO_GENERATOR�cr_coderpr:r?�r
rl�fr�s&   r�test_func_1�CoroutineTest.test_func_1s!��	�
�E�����a��!4�!4�5�����S�\�\�2�2�W�5I�5I�I�J�K�����c�l�l�3�3�g�6J�6J�J�K�L�����Q�Y�Y�/�/�'�2F�2F�F�G�H�����a�i�i�0�0�7�3G�3G�G�H�I�����1���B�x�0����+�C�E�2�R��H�=������c�l�l�3�3�g�6J�6J�J�K�Lrc��QoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c�� �[g3hr
�r4r(rrrl�&CoroutineTest.test_func_2.<locals>.foo&��������
zcoroutine raised StopIteration)�assertRaisesRegex�RuntimeErrorr:�r
rls& r�test_func_2�CoroutineTest.test_func_2%sI��	 ��
#�
#��>�@�@�
�c�e��@�@�@�@���>�A	�A	c�r�QoU2oUO[U2Q2UO2P!)c�� �[g3hr
r�r(rrrl�&CoroutineTest.test_func_3.<locals>.foo/r�r�z^<coroutine object.* at 0x.*>$)�assertRegex�repr�close)r
rlr6s&  r�test_func_3�CoroutineTest.test_func_3.s.��	 ��u������d��%E�F��
�
�rc��`�QoU2oU1QkoU29^tt^2[U2PPP2U29^tt^2[U2PPP2U29^tt^2[U2PPP2U29^tt^2[U2PPP2U29^tt^2SFDoJ	PPP2U29^tt^2STt,tFDpDMJ	oPPP2UO	2P!)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9httoh)%fhK�9h)c�� �[g3hr
r�r(rrrl�&CoroutineTest.test_func_4.<locals>.foo7r�r�c�2:�RO[Q2!�z"'coroutine' object is not iterable�r��	TypeErrorrs�r�<lambda>�+CoroutineTest.test_func_4.<locals>.<lambda>;�����.�.��;�=r)�list�tuple�sum�iterr�)r
rlr6�checkr>sf    r�test_func_4�CoroutineTest.test_func_46s����	 ��u��=���W�W���J���W�W��$�K���W�W���I���W�W���J���W�W�������W�W����1�Q����	
�
�
��'�W���W���W���W���W��

��W�s}�C<�D�(D"�D5�.E�E �E� E �<D	�D	�D	�D	�"D2	�+D2	�5E	�>E	�E	�E	�E � E0	�)E0	c�``�[OQ2nU1QkoU1QkoU2oU29^tt^2SFDoJ	PPP2UO2R2FDoROU]2J	ROR2Tt,tFDpDMJ	to],2RO[	R22Q2RO[[
R222]2P!)%fhK�9httoh)c3� �]w�	P!3h��r(r(rrr��&CoroutineTest.test_func_5.<locals>.barTs
����G�rc��8: �R2EPiw�K
P!K3hr
r(�r�s�rrl�&CoroutineTest.test_func_5.<locals>.fooX������%�K�K���
��c�2:�RO[Q2!r�r�rs�rr��+CoroutineTest.test_func_5.<locals>.<lambda>[r�rr�)r/�	coroutiner�rpr�r<r�)r
rlr�r6�elr�sf    @r�test_func_5�CoroutineTest.test_func_5Ss����	���	�
�	�	�=���u��
�W�W������	
�
�
���%�B����R��#�����s�u�-�u��"�u�-��s�3�����s�u��t�,�����d�3�5�k�*�A�.��W��.s�C3�D�3D	�<D	c�j`�[OQ2nU1QkoU2oUOUOP2]2UOUOP2]2UO	[
29^tt^2UOP2PPP2P!)%fhP!9h)c3�$ �]w�	]w�	P!3hr�r(r(rrr��&CoroutineTest.test_func_6.<locals>.barls����G��G�s�c��8: �R2EPiw�K
P!K3hr
r(r�s�rrl�&CoroutineTest.test_func_6.<locals>.fooqr�r�)r/r�rpr3rPr4r�s&  @r�test_func_6�CoroutineTest.test_func_6ks����	���	�
�	�	�
�E����������q�)���������q�)�
�
�
�}�
-�
-�
�F�F�4�L�.�
-�
-�
-�s�B!�!B2	�*B2	c��`�QoU2nU1QkoUO[Q29^tt^2[U22PPP2RO2P!)%fhK"9h)c�� �]
!3hr�r(r(rrr��&CoroutineTest.test_func_7.<locals>.bar{r�r�c3�.: �RFPiw�K
P!K3hr
r(�r6s�rrl�&CoroutineTest.test_func_7.<locals>.foos
�����O�O�s���zCcannot 'yield from' a coroutine object in a non-coroutine generator)r�r�r�r��r
r�rlr6s&  @r�test_func_7�CoroutineTest.test_func_7zsW���	��u��	��
#�
#��,�-�-�
���K�	-�	
�
�
��
-�-�s�A�A,	�%A,	c�`�[OU1Qk2oQoU2nUO[U22,Q12RO	2P!)c3�*: �RFPiw�K
!K3hr
r(r�s�rr��&CoroutineTest.test_func_8.<locals>.bar�s����#�O�O�$�O�s���c�� �Q!3h��spamr(r(rrrl�&CoroutineTest.test_func_8.<locals>.foo������r�r�)r/r�rpr:r�r�s&  @r�test_func_8�CoroutineTest.test_func_8�sK���	���	%�
�	%�	��u������3�5�)�B��<�8��
�
�rc	���QoUO[Q29^tt^2U2[O2PPP2UO[Q29^tt^2UO	[
29^tt^2U2FDoJ	PPP2[O2PPP2P!)%fhK�9h)%fhKB9h)%fhP!9h)c�� �P!3hr
r(r(rrrl�&CoroutineTest.test_func_9.<locals>.foo������r�z0coroutine '.*test_func_9.*foo' was never awaited)�assertWarnsRegex�RuntimeWarningrrErPr�)r
rl�_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�sA�B;�&C!�C	�C!�;C	�C	�C
�C
�C!�!C2	�*C2	c	��``�]n[OU1Qk2nU1QkoU2oUO2oUOU[	U22[U2UO
UO]
2]d2UO
R]2UO2UO
R]2U2oUO2o[U2UO[29^tt^2UO[22PPP2UO
R]f2U2oUO2o[U2UO[29^tt^2UO[29^tt^2UO[[2P2PPP2PPP2P!)%fhK�9h)%fhK-9h)%fhP!9h)rc3�: �Pw�oU]*w�R]*
nP![cR]d*
ngh9hR]*
nh9h3hr
��ZeroDivisionError)�a�Ns �rr}�'CoroutineTest.test_func_10.<locals>.gen�sL����
����A�v��
�Q����	%�
��S����
���Q���s%�A
�#�A
�	9�9�<�A�A
c��8: �R2EPiw�K
P!K3hr
r(�r}s�rrl�'CoroutineTest.test_func_10.<locals>.foo�r�r�)r/r�r�assertIsr�r<rpr3r�rPr��throw�assertWarns�DeprecationWarning)r
rlr6r=r�r}s&   @@r�test_func_10�CoroutineTest.test_func_10�sa���
��	���		�
�		�	��u��
�^�^�
���
�
�b�$�r�(�#��R����������c�*�����A��
���
�����A���u��
�^�^�
���R��
�
�
�0�
1�
1��H�H�&�(�)�2�����C� ��u��
�^�^�
���R��
�
�
�0�
1�
1��!�!�"4�5�5����*�,=�,?��F�6�2�
1�2�
1��6�5��2�
1�
1�sB�6F9�)G� G	�'G�9G		�G		�G
�G
�G�G0	�(G0	c��QoU2oUOQ[U22UOQ[UO222UOQ[UO222UO	2P!)c�� �P!3hr
r(r(rr�func�(CoroutineTest.test_func_11.<locals>.func�����$�r�r�__iter__�coroutine_wrapper)�assertIn�dirrr�r�)r
rr6s&  r�test_func_11�CoroutineTest.test_func_11�s^����v��	
�
�
�k�3�t�9�-��
�
�j�#�d�n�n�&6�"7�8��
�
�)�4����0@�+A�B��
�
�rc�`�U1QkoU2nUO[Q29^tt^2ROP2PPP2P!)%fhP!9h)c��X: �ROP2[EPiw�K
P!K3hr
)r3rl)�mes�r�g�%CoroutineTest.test_func_12.<locals>.g�s�����G�G�D�M��I�I�s�*�(�*zcoroutine already executing)r��
ValueErrorr3)r
rrs& @r�test_func_12�CoroutineTest.test_func_12�sO���	��S��
�
#�
#�J�$A�C�C��G�G�D�M�C�C�C�C�s�A
�
A	�A	c���QoU2oUO[Q29^tt^2UOQ2PPP2UO2P!)%fhK"9h)c�� �P!3hr
r(r(rrr�%CoroutineTest.test_func_13.<locals>.g�r�r�z5can't send non-None value to a just-started coroutiner�)r�r�r3r�)r
rr6s&  r�test_func_13�CoroutineTest.test_func_13�sW��	��s��
�
#�
#��G�I�I�
�I�I�f��I�
	
�
�
��I�I�s�A�A&	�A&	c�`�[OQ2nU1QkoU2oUOP2UO[Q29^tt^2UO2PPP2P!)%fhP!9h)c3� �Pw�	P!3hr
r(r(rrr}�'CoroutineTest.test_func_14.<locals>.gen������rc��: �R2EPiw�K
P!K[cR2EPiw�K
P!h9h3hr
��
GeneratorExitr�s�rr6�(CoroutineTest.test_func_14.<locals>.coro�s+����
��e���� �
��e���
�s4�?����?��	<�<�5�<�?�<�?zcoroutine ignored GeneratorExit)r/r�r3r�r�r�)r
r6�cr}s&  @r�test_func_14�CoroutineTest.test_func_14�sn���	���	�
�	�	�

�F��	���t��
�
#�
#�L�$E�G�G�
�G�G�I�G�G�G�G�s�A0�0B	�9B	c�h�QoQoU2oUO[Q29^tt^2UU2OP2PPP2UO[Q29^tt^2UU2OP2PPP2P!)%fhKP9h)%fhP!9h)c�� �Q!3hr�r(r(rr�spammer�+CoroutineTest.test_func_15.<locals>.spammerr�r�c��( �UEPiw�K
!K3hr
r(r�s&r�reader�*CoroutineTest.test_func_15.<locals>.reader	s����:�:��:�s���r��&cannot reuse already awaited coroutine)r�r4r3r�)r
r&r)�spammer_coros&   r�test_func_15�CoroutineTest.test_func_15s���	�	��y��
�
#�
#�M�6�
:�
:��<� �%�%�d�+�;��
#�
#�L�$L�N�N��<� �%�%�d�+�N�N�;�
:��N�N�N�s#�B
�+B �
B	�B	� B1	�)B1	c��`�[OQ2nU1QkoU1QkoU2oUU2oUOP2UOP2UO[Q29^tt^2UO[	Q22PPP2UU2oUOP2UO[Q29^tt^2UOP2PPP2UO[Q29^tt^2UO[	Q22PPP2P!)%fhK�9h)%fhKf9h)%fhP!9h)c3� �Pw�	P!3hr
r(r(rr�nop�'CoroutineTest.test_func_16.<locals>.noprrc��8: �R2EPiw�K
Q!K3h)Nr�r(�r1s�rr3�(CoroutineTest.test_func_16.<locals>.sends�����%�K�K��
�r�c��P: �R2EPiw�K
UEPiw�K
!KK3hr
r()r6r1s&�r�read�(CoroutineTest.test_func_16.<locals>.reads!�����%�K�K��:�:��
��s�
&�"�&�$�&�&�hamr+�wat)r/r�r3r��	Exceptionr�r�)r
r3r7r&r)r1s&    @r�test_func_16�CoroutineTest.test_func_16s���
���	�
�	�	�	��&���g������D�����D��
�
#�
#�I�u�
5�
5��L�L��5�)�*�6��g������D��
�
#�
#�L�$L�N�N��K�K���N��
#�
#�L�$L�N�N��L�L��5�)�*�N�N�6�
5��
N�N��N�N�N�s6�4D+�D>�E�+D;	�4D;	�>E	�E	�E"	�E"	c�0�QoU2oUO[Q29^tt^2UOP2PPP2UO[Q29^tt^2UOP2PPP2UO[Q29^tt^2UO	[Q22PPP2UO
2UO
2P!)%fhK�9h)%fhK�9h)%fhKX9h)c�� �Q!3hr�r(r(rrr��-CoroutineTest.test_func_17.<locals>.coroutine7r�r�r�r+r:)r�r4r3r�r�r;r�)r
r�r6s&  r�test_func_17�CoroutineTest.test_func_174s���	��{��
�
#�
#�M�6�
:�
:��I�I�d�O�;��
#�
#�L�$L�N�N��I�I�d�O�N��
#�
#�L�$L�N�N��J�J�y��'�(�N�	
�
�
���
�
��;�
:��N�N��N�N�s5�C�"C2�D�C/	�(C/	�2D	�;D	�D	�D	c��QoU2oUO2o[U2oUO[Q29^tt^2UO	P2PPP2UO[
Q29^tt^2UO	P2PPP2UO[
Q29^tt^2[
U2PPP2UO[
Q29^tt^2UO[Q22PPP2UO[
Q29^tt^2UO[Q22PPP2UO2UO2P!)%fhCK9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK9h)c�� �Q!3hr�r(r(rrr��-CoroutineTest.test_func_18.<locals>.coroutineNr�r�r�r+r:)
rr�r�r4r3r�r<r�r;r�)r
r�r6�
await_iter�its&    r�test_func_18�CoroutineTest.test_func_18Ks[��	��{���^�^�%�
�
�*�
��
�
#�
#�M�6�
:�
:��G�G�D�M�;��
#�
#�L�$L�N�N��G�G�D�M�N��
#�
#�L�$L�N�N�
��H�N��
#�
#�L�$L�N�N��H�H�Y�u�%�&�N��
#�
#�L�$L�N�N��H�H�Y�u�%�&�N�	���
�
���
�9;�
:�
:��N�N��N�N��N�N��N�N�sZ�E-�=F�5F�'F'�(F:�-E>	�6E>	�F	�
F	�F$	�F$	�'F7	�0F7	�:G
	�G
	c�r``�]n[OU1Qk2nU1QkoU2oUOP2UOP2UOR]2UO	2UOR]2[]2FD%oUO	2UOR]2J'	P!)rc3�^: �Pw�	Pw�P![cR]*
nP!h9h3hr
r)�CHKs�rrl�'CoroutineTest.test_func_19.<locals>.foovs*����
�
��� �
��q���
�s �-��-�	*�
*�-�*�-c��8: �R2EPiw�K
P!K3hr
r()rls�rr��-CoroutineTest.test_func_19.<locals>.coroutiner�r�)r/r�r3rpr�rm)r
r�r6r�rLrls&   @@r�test_func_19�CoroutineTest.test_func_19ss������	���	�
�	�	��{���	�	�$���	�	�$������a� ��
�
������a� ��q��A�
�J�J�L����S�!�$�	rc�V�Qo[U22oUOU,Q12P!)c�� �Q!3h)r�r�r(r(rrrl�7CoroutineTest.test_coro_wrapper_send_tuple.<locals>.foo�s
����L�r�r�)r?rp�r
rlr8s&  r�test_coro_wrapper_send_tuple�*CoroutineTest.test_coro_wrapper_send_tuple�s)��	�$�C�E�*������"�e��-rc��Qo[U22oUOU]*[2UOU]*O]
2P!)c��" �[]
2!3hr�r�r(rrrl�?CoroutineTest.test_coro_wrapper_send_stop_iterator.<locals>.foo�s��� ��$�$���
)r?r�r4rpr#rUs&  r�$test_coro_wrapper_send_stop_iterator�2CoroutineTest.test_coro_wrapper_send_stop_iterator�sA��	%�$�C�E�*�����f�Q�i��7���������"�-rc�<````�[OUU1Qk2nU1QknUUU1QkoU2nRO[OR2[O
2RO
RO2ROP2RO[OR2[O2ROROOOOQ2RO[29^tt^2ROP2PPP2RO[OR2[O2RO
RO2P!)%fhKa9h)c3�X: �RO[OR2[O2RO	RO
2Pw�	RO[OR2[O2RO	RO
2P!3hr
)rprr�getcoroutinestate�CORO_RUNNING�assertIsNone�cr_await)�coro_br
s��rr��&CoroutineTest.test_cr_await.<locals>.a�so�������W�6�6�v�>��@T�@T�U����f�o�o�.�����W�6�6�v�>��@T�@T�U����f�o�o�.�s�B'B*c��8: �R2EPiw�K
P!K3hr
r()r�s�rr!�&CoroutineTest.test_cr_await.<locals>.c�s�����#�I�I�r�c��: �RORO2R2EPiw�K
RORO2P!K!3hr
)rbrc)r!rdr
s���r�b�&CoroutineTest.test_cr_await.<locals>.b�s8�������f�o�o�.��#�I�I����f�o�o�.�
�s�(A�A�#Ar�)r/r�rprrr`�CORO_CREATEDrbrcr3�CORO_SUSPENDED�gi_code�co_namerPr4�CORO_CLOSED)r
rir�r!rdsf @@@r�
test_cr_await�CoroutineTest.test_cr_await�s���	���	/�
�	/�	�	/�
�������2�2�6�:�G�<P�<P�Q����&�/�/�*����D������2�2�6�:�G�<R�<R�S�������1�1�9�9�A�A�3�G�
�
�
�}�
-�
-��K�K���.�����2�2�6�:�G�<O�<O�P����&�/�/�*�.�
-�s� F�F	�F	c��[Oo[O%f�UO	QUO
O2UO	QUOO2UO	QUOO2UO	QUOQ*O2UO	QUOQ*O2UOUOQ2QoU2oUO	Q[U22UO2P!)	zinto coroutinezinside coroutinezin coroutinezof the coroutinerrr�c�� �P!3hr
r(r(rrr��(CoroutineTest.test_corotype_1.<locals>.f�s���t�r�zcoroutine object)
r/r1r�MISSING_C_DOCSTRINGSrr3�__doc__r�r��__dict__rprr�)r
�ctr�r!s&   r�test_corotype_1�CoroutineTest.test_corotype_1�s���
�
 �
 ���+�+�+��M�M�*�B�G�G�O�O�<��M�M�,�b�h�h�.>�.>�?��M�M�.�"�(�(�*:�*:�;��M�M�,�b�k�k�*�.E�.M�.M�N��M�M�,�b�k�k�.�.I�.Q�.Q�R�������k�2��
�C���
�
�(�$�q�'�2�	���	rc��QoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c��, �]EPiw�K
P!K3hr�r(r(rrrl�'CoroutineTest.test_await_1.<locals>.foo�s����G�G�����z'int' object can.t be awaited�r�r�r:r�s& r�test_await_1�CoroutineTest.test_await_1�s5��	�
�
#�
#�I�/N�
O�
O��c�e��P�
O�
O�
O�r�c��QoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c��, �,EPiw�K
P!K3hr
r(r(rrrl�'CoroutineTest.test_await_2.<locals>.foo�s����H�H�r~z'list' object can.t be awaitedrr�s& r�test_await_2�CoroutineTest.test_await_2�s5��	�
�
#�
#�I�/O�
P�
P��c�e��Q�
P�
P�
P�r�c��QoUO[U22,QNP12UO[U22,QNP12P!)c��B �[,QN2EPiw�K
P!K3h�r��r���)rr(rrrl�'CoroutineTest.test_await_3.<locals>.foo�s��� ��+�+�+�s���r�)rpr:r?r�s& r�test_await_3�CoroutineTest.test_await_3�sB��	,�	
����3�5�)�I�t�+<�=����+�C�E�2�Y��4E�Frc�``�QnU1QkoUO[U22,]*12P!)c�� �]*!3h��*r(r(rrr��'CoroutineTest.test_await_4.<locals>.bar�r�r�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�'CoroutineTest.test_await_4.<locals>.foo�s������;�;��;���
���rpr:)r
rlr�s& @r�test_await_4�CoroutineTest.test_await_4�s*���	�	�	
����3�5�)�B��8�4rc�`�QQ2nU1QkoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�-CoroutineTest.test_await_5.<locals>.Awaitable��c��P!r
r(rs&rr�7CoroutineTest.test_await_5.<locals>.Awaitable.__await__�s��rr(�rrrrrrrrs@r�	Awaitabler��s����
�
rr�c��4: �R2EPiw�K
!K3hr
r(�r�s�rrl�'CoroutineTest.test_await_5.<locals>.foo������#�+�%�%�&�%�r��'__await__.*must return an iterator, notr�r
rlr�s& @r�test_await_5�CoroutineTest.test_await_5�sT���	�	�	'��
#�
#��@�B�B�
�c�e��B�B�B�B���A�A	�A	c�p`�QQ2nU1QkoUO[U22]4,P12P!)c�(`�\sQsQsnQsQsUsP!)�-CoroutineTest.test_await_6.<locals>.Awaitable�c��[]4,2!)�4�r�rs&rr�7CoroutineTest.test_await_6.<locals>.Awaitable.__await__�s���R�D�z�!rr(r�rs@rr�r��s����
"�
"rr�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�'CoroutineTest.test_await_6.<locals>.foo�r�r�r�r�s& @r�test_await_6�CoroutineTest.test_await_6�s1���	"�	"�	'�	
����3�5�)�R�D�$�<�8rc�p`�QQ2nU1QkoUO[U22]*,]d12P!)c�(`�\sQsQsnQsQsUsP!)�-CoroutineTest.test_await_7.<locals>.Awaitableic3� �]*w�	]d!3hr�r(rs&rr�7CoroutineTest.test_await_7.<locals>.Awaitable.__await__s
������rr(r�rs@rr�r�s����
�
rr�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�'CoroutineTest.test_await_7.<locals>.foor�r�r�r�s& @r�test_await_7�CoroutineTest.test_await_7s1���	�	�
	'�	
����3�5�)�R�D�#�;�7rc�`�QQ2nU1QkoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c��\sQsQsQsP!)�-CoroutineTest.test_await_8.<locals>.Awaitablei
r(�rrrrrr(rrr�r�
���rr�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�'CoroutineTest.test_await_8.<locals>.foos����i�k� 1� 1�1� 1�r�z#'Awaitable' object can't be awaitedrr�s& @r�test_await_8�CoroutineTest.test_await_8sL���	�	�	2�
�
#�
#��<�>�>�
�c�e��>�>�>�>�r�c�``�U1QknQnUU1QkoU1QkoUO[U22,Q12UO[U22,Q12P!)c�
:�R!r
r(r�s�r�wrap�(CoroutineTest.test_await_9.<locals>.wraps����Jrc�� �]*!3hr�r(r(rrr��'CoroutineTest.test_await_9.<locals>.barr�r�c��t: �QU1Qk-oU1QkQ2oR2EPiw�K
R22EPiw�K
*UQ*222EPiw�K
*R2EPiw�K
Q**UO22EPiw�K
*!K�KtKOK;K3h)ric�
:�R!r
r(�r�s�rr��9CoroutineTest.test_await_9.<locals>.foo.<locals>.<lambda>s���rc� :�\sQsQsYsQsP!)�3CoroutineTest.test_await_9.<locals>.foo.<locals>.DBi!r()rrrrrirr�s�r�DBr�!s����rr����ri)�dbr�r�r�s  ��rrl�'CoroutineTest.test_await_9.<locals>.foos������%�B�
�
��%�K�K����.�.�0��C�����3F�3F�F��%�K�K�$�&�'�/1�t�t�v�x���8�
9�K�.�3F���sU�"B8�B.�B8�B0�&B8�!B2�"B8�7B4�8*B8�"B6�#B8�0B8�2B8�4B8�6B8c��6: �R2EPiw�K
'!K3hr
r(r�s�r�foo2�(CoroutineTest.test_await_9.<locals>.foo2's�����%�K�K�<��K�s�
��i��i���r�)r
rlr�r�r�s&  @@r�test_await_9�CoroutineTest.test_await_9sO���	�	�	9�	 �	
����3�5�)�B��;�7�����4�6�*�R��I�6rc�n``�QnU1QknU1QkoUO[U22,]*12P!)c�� �]*!3hr�r(r(rr�baz�(CoroutineTest.test_await_10.<locals>.baz.r�r�c��: �R2!3hr
r()r�s�rr��(CoroutineTest.test_await_10.<locals>.bar1s
�����5�L�s�	c��L: �R2EPiw�K
EPiw�K
!KK3hr
r(r�s�rrl�(CoroutineTest.test_await_10.<locals>.foo4s���� #��+�+�&�&�&�+�&�s�
$� �	$�"�$�$r�)r
rlr�r�s& @@r�
test_await_10�CoroutineTest.test_await_10-s/���	�	�	'�	
����3�5�)�B��8�4rc�v``�QnQnUU1QkoU1QkoUO[U22,Q12P!)c��U!r
r(��vals&r�ident�*CoroutineTest.test_await_11.<locals>.ident:s���Jrc�� �Q!3hr�r(r(rrr��(CoroutineTest.test_await_11.<locals>.bar=r�r�c��B: �RR2EPiw�K
Q5!K	3h)Nr�r()r�r�s��rrl�(CoroutineTest.test_await_11.<locals>.foo@s�����3�5�[�[�)�)�[�s��
�c��8: �R2EPiw�K
Q1!K3h)Nr9r(r�s�rr��)CoroutineTest.test_await_11.<locals>.foo2Cs������;�;��%�%�;�r�)r�r9r�)r
rlr�r�r�s&  @@r�
test_await_11�CoroutineTest.test_await_119s5���	�	�	*�	&�	
����4�6�*�R��,A�Brc�``�QoU2nU1QkQ2nU1QkoUO[Q29^tt^2[U22PPP2RO2P!)%fhK"9h)c�� �Q!3hr�r(r(rrr6�)CoroutineTest.test_await_12.<locals>.coroIr�r�c�0:`�\sQsQsnU1QksQsUsP!)�.CoroutineTest.test_await_12.<locals>.AwaitableiMc�
:�R!r
r()r
r!s&�rr�8CoroutineTest.test_await_12.<locals>.Awaitable.__await__Ns����rr(r�)rr!s@�rr�r�Ms����
�
rr�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�(CoroutineTest.test_await_12.<locals>.fooQ�����"��$�$�$�$�r�z4__await__\(\) must return an iterator, not coroutine)r�r�r:r�)r
r6rlr�r!s&  @@r�
test_await_12�CoroutineTest.test_await_12Hsc���	��F��	�	�	%��
#�
#��R�T�T��c�e��T�	
���	�	T�T�s�A*�*A:	�3A:	c�`�QQ2nU1QkoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�.CoroutineTest.test_await_13.<locals>.Awaitablei[c��U!r
r(rs&rr�8CoroutineTest.test_await_13.<locals>.Awaitable.__await__\����rr(r�rs@rr�r[�����
�
rr�c��4: �R2EPiw�K
!K3hr
r(r�s�rrl�(CoroutineTest.test_await_13.<locals>.foo_rr�r�rr�s& @r�
test_await_13�CoroutineTest.test_await_13ZsT���	�	�	%��
#�
#��@�B�B�
�c�e��B�B�B�B�r�c�````�QQ2nQQ2nQQ[2nUU1QknUU1QkoU2oUOP2UO[Q29^tt^2UOQ2PPP2U2oUOP2UO	R29^tt^2UO[2PPP2P!)%fhKa9h)%fhP!9h)	c�.`�\sQsQsnQsQsQsUsP!)�,CoroutineTest.test_await_14.<locals>.Wrapperihc�T�UO[OIfPgVmP!r
)r.r/r1r6)r
r6s&&rr�5CoroutineTest.test_await_14.<locals>.Wrapper.__init__js���~�~��)<�)<�<�<�<� �	rc�8�UOO2!r
)r6rrs&rr�6CoroutineTest.test_await_14.<locals>.Wrapper.__await__ms���y�y�*�*�,�,rr�rrs@r�Wrapperrhs����
!�
-�
-rrc�(`�\sQsQsnQsQsUsP!)�/CoroutineTest.test_await_14.<locals>.FutureLikeipc3� �Pw�	!3hr
r(rs&rr�9CoroutineTest.test_await_14.<locals>.FutureLike.__await__qs
�����s�	r(r�rs@r�
FutureLikerps����
�
rrc��\sQsQsQsP!)�+CoroutineTest.test_await_14.<locals>.Markeritr(r�r(rr�Markerrtr�rrc��X: �R2EPiw�K
!K[cRgh9h3hr
r�)rrs��r�coro1�*CoroutineTest.test_await_14.<locals>.coro1ws/����
�'�\�)�)�)�)��$�
���
�s$�*����*��	'�'�*c��@: �RR22EPiw�K
!K3hr
r()rr s��r�coro2�*CoroutineTest.test_await_14.<locals>.coro2|s���� ���)�)�)�)�)�s���r�)r;r3r�r4rPr�r�)r
r#r!rrrr s&  @@@@r�
test_await_14�CoroutineTest.test_await_14gs����	-�	-�	�	�	�Y�	�	�
	*�
�G��	���t��
�
#�
#�M�6�
:�
:�
�F�F�6�N�;�
�G��	���t��
�
�
�v�
&�
&�
�G�G�%�&�'�
&�;�
:��
'�
&�
&�s$�-C�8C+�C(	�!C(	�+C<	�4C<	c�`�[OQ2nU1QkoQoU2oUOP2UO[Q29^tt^2UU2OP2PPP2P!)%fhP!9h)c3� �Pw�	P!3hr
r(r(rrr1�(CoroutineTest.test_await_15.<locals>.nop�rrc��8: �R2EPiw�K
P!K3hr
r(r4s�rr��.CoroutineTest.test_await_15.<locals>.coroutine�r�r�c��, �UEPiw�K
P!K3hr
r(r�s&r�waiter�+CoroutineTest.test_await_15.<locals>.waiter�s����J�J�r~z"coroutine is being awaited already)r/r�r3r�r�)r
r�r-r6r1s&   @r�
test_await_15�CoroutineTest.test_await_15�s|���	���	�
�	�	�	��{���	�	�$��
�
#�
#�L�$H�J�J��4�L���d�#�J�J�J�J�s�A:�:B	�B	c�v`�QnU1Qko[U22vq#UOUO2P!)c��  �[2!3hr
)rr(rrr��&CoroutineTest.test_await_16.<locals>.f�s
����<��s�c��b: �[g[cR2EPiw�K
t!h9h3hr
)�KeyError)r�s�rr�&CoroutineTest.test_await_16.<locals>.g�s*����
!�����
!��S�y�y� �
!�s$�/��	,�,�&�,�/�,�/)r:rb�__context__)r
rr�r8r�s&   @r�
test_await_16�CoroutineTest.test_await_16�s0���	 �	!��a�c�N�	�����&�,�,�-rc��QQ2o[O[U2Q2O229^tt^2oUO	[
UO]2PPP2P!)%fhP!9h)c�.`�\sQsQsnQsQsQsUsP!)�&CoroutineTest.test_await_17.<locals>.Ai�c�� �[g3hr
��StopAsyncIterationrs&r�	__anext__�0CoroutineTest.test_await_17.<locals>.A.__anext__�s���(�(�r�c��U!r
r(rs&r�	__aiter__�0CoroutineTest.test_await_17.<locals>.A.__aiter__�r	rr()rrrrr@rCrrrs@r�Ar<�s����
)�
�
rrEr�)�
contextlib�closing�anextrrPr�r�)r
rE�anext_awaitables&  r�
test_await_17�CoroutineTest.test_await_17�sY��	�	��
�
��a�c�3�� 9� 9� ;�
<�
<�����i��)>�)>��B�=�
<�
<�
<�s�"A3�3B	�<B	c�`�QQ2nU1QkoU2o[U2vq4UOU,QN2U1QkoUO[29^tt^2[U22PPP2P!)%fhP!9h)c�4`�\sQsQsnQsQsQsQsUsP!)�*CoroutineTest.test_with_1.<locals>.Manageri�c��VmP!r
��name)r
rQs&&rr�3CoroutineTest.test_with_1.<locals>.Manager.__init__�s�� �	rc�� �[QUO*QUO*,2EPiw�K
U!K3h)zenter-1-zenter-2-�rrQrs&r�
__aenter__�5CoroutineTest.test_with_1.<locals>.Manager.__aenter__�s=���$�j�4�9�9�&<�&0�4�9�9�&<�&>�?�?�?���?�s�5A�?�Ac�� �[QUO*QUO*,2EPiw�K
UOQ6XcP	!P!K3h)zexit-1-zexit-2-�BrT)r
r5s&*r�	__aexit__�4CoroutineTest.test_with_1.<locals>.Manager.__aexit__�sN���$�i�$�)�)�&;�&/�$�)�)�&;�&=�>�>�>��9�9��#��$�>�s�5A�A�A�ArP)	rrrrrrUrYrrrs@r�ManagerrN�s����
!�
�

 �
 rr[c��: �RQ29^tt^2EPiw�K
oRQ29^tt^2EPiw�K
o[QUOUO1,2EPiw�K
]]*PPP2EPiw�K
PPP2EPiw�K
P!K{KbK7K)EPiw�K
%fhK79hK,)EPiw�K
%fhP!9h3h)rErX�managersrT)r�rir[s  �rrl�&CoroutineTest.test_with_1.<locals>.foo��n�����s�|�|�|�q�'�#�,�,�,�!�$�z�1�6�6�1�6�6�&B�%C�D�D�D��!��+7�,�,�|�|�|�,�D�+7�,�,�,��|�|�|�|���C�B
�C�B?�B�B?�(B	�"B�#B	�1B?�=B
�>B?�C�B=�C�B?�B	�B?�B:
�&B*�'B:
�3B:
�5B?�=C�?C	�C
�C	�C	�	Cc��: �RQ29^tt^2EPiw�K
oRQ29^tt^2EPiw�K
o[QUOUO1,2EPiw�K
]]*PPP2EPiw�K
PPP2EPiw�K
P!K{KbK7K)EPiw�K
%fhK79hK,)EPiw�K
%fhP!9h3h)rE�Cr]rT)r�r!r[s  �rrlr^�r_r`)	z	enter-1-Az	enter-2-Az	enter-1-Bz	enter-2-B)r]rErXzexit-1-Bzexit-2-Bzexit-1-Azexit-2-A)r:rprPr�)r
rlr�r8r�r[s&    @r�test_with_1�CoroutineTest.test_with_1�so���	 �	 �"	�

�E���a�L�	������E�	
�	�
�
�
�0�
1�
1��c�e��2�
1�
1�
1�s�A9�9B
	�B
	c��``�QQ2nPnUU1QkoUO[Q29^tt^2[U22PPP2UORP
2P!)%fhK$9h)c�(`�\sQsQsnQsQsUsP!)�%CoroutineTest.test_with_2.<locals>.CMi�c��P!r
r(rs&rrU�0CoroutineTest.test_with_2.<locals>.CM.__aenter__����rr()rrrrrUrrrs@r�CMrg������
�
rrkc	��: �P
nR29^tt^2EPiw�K
P	nPPP2EPiw�K
P!KK)EPiw�K
%fhP!9h3h�Fr(�rk�
body_executeds��rrl�&CoroutineTest.test_with_2.<locals>.foo��*����!�M��t�t�t� $�
��t�t�t�t�t�t��B�A�7
�A�;�A�9�A�A�A	�A�A	�A	�	Az'asynchronous context manager.*__aexit__�r�r�r:r��r
rlrkrps& @@r�test_with_2�CoroutineTest.test_with_2�sW���	�	��
�	%��
#�
#�I�/X�
Y�
Y��c�e��Z��
�
�m�U�+�Z�
Y���A"�"A2	�+A2	c��``�QQ2nPnUU1QkoUO[Q29^tt^2[U22PPP2UORP
2P!)%fhK$9h)c�(`�\sQsQsnQsQsUsP!)�%CoroutineTest.test_with_3.<locals>.CMi�c��P!r
r(rs&rrY�/CoroutineTest.test_with_3.<locals>.CM.__aexit__�rjrr()rrrrrYrrrs@rrkr{�rlrrkc	��: �P
nR29^tt^2EPiw�K
P	nPPP2EPiw�K
P!KK)EPiw�K
%fhP!9h3hrnr(ros��rrl�&CoroutineTest.test_with_3.<locals>.foo�rrrs�asynchronous context managerrtrus& @@r�test_with_3�CoroutineTest.test_with_3�sW���	�	��
�	%��
#�
#�I�/M�
N�
N��c�e��O��
�
�m�U�+�O�
N�rxc��``�QQ2nPnUU1QkoUO[Q29^tt^2[U22PPP2UORP
2P!)%fhK$9h)c��\sQsQsQsP!)�%CoroutineTest.test_with_4.<locals>.CMi�r(r�r(rrrkr��r�rrkc	��: �P
nR29^tt^2EPiw�K
P	nPPP2EPiw�K
P!KK)EPiw�K
%fhP!9h3hrnr(ros��rrl�&CoroutineTest.test_with_4.<locals>.foorrrsr�rtrus& @@r�test_with_4�CoroutineTest.test_with_4�sW���	�	��
�	%��
#�
#�I�/M�
N�
N��c�e��O��
�
�m�U�+�O�
N�rxc��``�QQ2nUU1QkoRO[29^tt^2[U22PPP2P!)%fhP!9h)c�.`�\sQsQsnQsQsQsUsP!)�%CoroutineTest.test_with_5.<locals>.CMic�� �U!3hr
r(rs&rrU�0CoroutineTest.test_with_5.<locals>.CM.__aenter__�
�����r�c�� �P!3hr
r()r
�excs&*rrY�/CoroutineTest.test_with_5.<locals>.CM.__aexit__�����r�r(�rrrrrUrYrrrs@rrkr�s����
�
�
rrkc	���: �R29^tt^2EPiw�K
ROQ]2PPP2EPiw�K
P!K*K)EPiw�K
%fhP!9h3h)Nr�)rp)rkr
s��rr�'CoroutineTest.test_with_5.<locals>.funcs0�����t�t�t�� � ���*��t�t�t�t�t�t�sG�A(�A
�A(�A	�A(�A�A(�A(�	A%	�A�A%	�A%	�	A()rP�AssertionErrorr:)r
rrksf @r�test_with_5�CoroutineTest.test_with_5s>���
	�	�	+��
�
�~�
.�
.��d�f��/�
.�
.�
.�s�A
�
A	�A	c�`�QQ2nU1QkoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c�.`�\sQsQsnQsQsQsUsP!)�%CoroutineTest.test_with_6.<locals>.CMi c��]{!)�{r(rs&rrU�0CoroutineTest.test_with_6.<locals>.CM.__aenter__!���rc��Q!���r(�r
�es&*rrY�/CoroutineTest.test_with_6.<locals>.CM.__aexit__$r�rr(r�rs@rrkr� s����
�
�
rrkc	��: �R29^tt^2EPiw�K
PPP2EPiw�K
P!KK)EPiw�K
%fhP!9h3hr
r(�rks�rrl�&CoroutineTest.test_with_6.<locals>.foo's#�����t�t�t���t�t�t�t�t�t�sA�A�4
�A�8�A�6�A�A�A	�A�A	�A	�	AzV'async with' received an object from __aenter__ that does not implement __await__: intr)r
rlrks& @r�test_with_6�CoroutineTest.test_with_6sP���	�	�	��
#�
#��9�:�:�

�c�e��:�:�:�:�r�c�r`�QQ2nU1Qko[U22UOQ2P![cuoSOSO]*Q2SOSOPI2SO[SO[22Po=P!Po=hh9h)c�.`�\sQsQsnQsQsQsUsP!)�%CoroutineTest.test_with_7.<locals>.CMi3c�� �U!3hr
r(rs&rrU�0CoroutineTest.test_with_7.<locals>.CM.__aenter__4r�r�c��Q!)�r(r�s&*rrY�/CoroutineTest.test_with_7.<locals>.CM.__aexit__7r�rr(r�rs@rrkr�3�����
�
�
rrkc	���: �R29^tt^2EPiw�K
]]*PPP2EPiw�K
P!K!K)EPiw�K
%fhP!9h3hr
r(r�s�rrl�&CoroutineTest.test_with_7.<locals>.foo;s'�����t�t�t��!���t�t�t�t�t�t��D�A�<
�A�
A�A�>�A�A�A	�A�A	�A	�	Az1invalid asynchronous context manager did not fail�U'async with' received an object from __aexit__ that does not implement __await__: int)	r:�failr�r�r5rqr7�
isinstancer�)r
rlr�rks&  @r�test_with_7�CoroutineTest.test_with_72s����	�	�	�
	K��c�e��
�I�I�I�J���	L���������9�
:�
�O�O�C�O�O�4�7�8��O�O�J�s���8I�J�K�K��
	L�s�7�	B6�B6�A)B1�1B6c�>``�]nQQ2nUU1QkoUO[Q29^tt^2[U22PPP2UOR]2UU1QkoUO[Q29^tt^2[U22PPP2UOR]2UU1QkoUO[Q29^tt^2[U22PPP2UOR]2UU1QkoUO[Q29^tt^2[U22PPP2UOR]2P!)%fhCK9h)%fhK�9h)%fhK�9h)%fhK^9h)rc�.`�\sQsQsnQsQsQsUsP!)�%CoroutineTest.test_with_8.<locals>.CMiOc�� �U!3hr
r(rs&rrU�0CoroutineTest.test_with_8.<locals>.CM.__aenter__Pr�r�c��Q!r�r(r�s&*rrY�/CoroutineTest.test_with_8.<locals>.CM.__aexit__Sr�rr(r�rs@rrkr�Or�rrkc	���: �R29^tt^2EPiw�K
R]*
nPPP2EPiw�K
P!K!K)EPiw�K
%fhP!9h3hr
r(�rk�CNTs��rrl�&CoroutineTest.test_with_8.<locals>.fooW�)�����t�t�t��q����t�t�t�t�t�t�r�r�c���: �[]2FD;oR29^tt^2EPiw�K
R]*
nPPP2EPiw�K
P!	P!K(K)EPiw�K
%fhJa9h3h�r��rm�r>rkr�s ��rrlr�cs;�����1�X���4�4�4��1�H�C�� �4�4���4�4�4�sI�%A5�A�A5�A	�A5�A
�A5�A5�A2
�A!�A2
�*A2
�,	A5c���: �[]2FD9oR29^tt^2EPiw�K
R]*
nPPP2EPiw�K
J;	P!K&K)EPiw�K
%fhJ_9h3hr�r�r�s ��rrlr�qs;�����1�X���4�4�4��1�H�C�� �4�4���4�4�4�sI�%A3�A�A3�A	�A3�A
�A3�A3�A0
�A�A0
�(A0
�*	A3c	���: �R29^tt^2EPiw�K
R]*
nPPP2EPiw�K
P!K"K)EPiw�K
%fhP!9h3hr
r(r�s��rrlr�s,�����t�t�t��q�����t�t�t�t�t�t�sD�A �=
�A �A�A �?�A �A �A	�A�	A	�A	�	A )r�r�r:rp�r
rlrkr�s& @@r�test_with_8�CoroutineTest.test_with_8LsX�����	�	�	��
#�
#��9�:�:�
�c�e��	:�
	
����a� �	��
#�
#��9�:�:�
�c�e��	:�
	
����a� �	��
#�
#��9�:�:�
�c�e��	:�
	
����a� �	�
�
#�
#��9�:�:�
�c�e��	:�
	
����a� �]:�:�:��:�:��:�:��:�:�sG�E�E&�E9�%F�E#	�E#	�&E6	�/E6	�9F		�F		�F	�F	c��``�]nQQ2nUU1QkoUO[29^tt^2[U22PPP2UOR]2P!)%fhK$9h)rc�.`�\sQsQsnQsQsQsUsP!)�%CoroutineTest.test_with_9.<locals>.CMi�c�� �U!3hr
r(rs&rrU�0CoroutineTest.test_with_9.<locals>.CM.__aenter__�r�r�c��" �]]*P!3hr�r(r�s&*rrY�/CoroutineTest.test_with_9.<locals>.CM.__aexit__������!���r[r(r�rs@rrkr�������
�
�
rrkc	���: �R29^tt^2EPiw�K
R]*
nPPP2EPiw�K
P!K!K)EPiw�K
%fhP!9h3hr
r(r�s��rrl�&CoroutineTest.test_with_9.<locals>.foo�r�r��rPr�r:rpr�s& @@r�test_with_9�CoroutineTest.test_with_9�sU�����	�	�	�
�
�
�0�
1�
1��c�e��2�	
����a� �2�
1���A!�!A1	�*A1	c�``�]nQQ2nUU1Qko[U22UOQ2P![c�oSOSOPI2SO[SO[22SO[SOO[22Po=P!Po=hh9h)rc�.`�\sQsQsnQsQsQsUsP!)�&CoroutineTest.test_with_10.<locals>.CMi�c�� �U!3hr
r(rs&rrU�1CoroutineTest.test_with_10.<locals>.CM.__aenter__�r�r�c��" �]]*P!3hr�r(r�s&*rrY�0CoroutineTest.test_with_10.<locals>.CM.__aexit__�r�r[r(r�rs@rrkr��r�rrkc��.: �R29^tt^2EPiw�K
R29^tt^2EPiw�K
[gK$K)EPiw�K
%fhL9hPPP2EPiw�K
P!)EPiw�K
%fhP!9h3hr
�r�r�s��rrl�'CoroutineTest.test_with_10.<locals>.foo�s>�����t�t�t��4�4�4�&�&���4�4�4���t�t�t�t�t�t�s{�B�?
�B�A6�A�A6�A	�B�A6�A
�
A�A
�A
�A6�!B�-A1�.B�6B	�=B�>B	�
B	�	Bz*exception from __aexit__ did not propagate)r:r�r�rqr7r�r��r
rlr�rkr�s&  @@r�test_with_10�CoroutineTest.test_with_10�s������	�	�	'�	D��c�e��
�I�I�B�C��
!�	6��O�O�C�O�O�4�7�8��O�O�J�s���8I�J�K��O�O�J�s���'B�'B�'3�5�
6�
6��	6�s�;�	C
�C
�A9C�C
c��``�]nQQ2nUU1Qko[U22UOQ2P![c)oSOSOPI2Po=P!Po=hh9h)rc�.`�\sQsQsnQsQsQsUsP!)�&CoroutineTest.test_with_11.<locals>.CMi�c�� �[g3hr
)�NotImplementedErrorrs&rrU�1CoroutineTest.test_with_11.<locals>.CM.__aenter__�s���)�)�r�c��" �]]*P!3hr�r(r�s&*rrY�0CoroutineTest.test_with_11.<locals>.CM.__aexit__�r�r[r(r�rs@rrkr��s����
*�
�
rrkc	��: �R29^tt^2EPiw�K
[gK
)EPiw�K
%fhP!9h3hr
r�r�s��rrl�'CoroutineTest.test_with_11.<locals>.foo�s �����t�t�t�"�"��t�t�t�s/�A�%
�A�'�A�A	�2�A	�A	�	Az+exception from __aenter__ did not propagate)r:r�r�rqr7r�s&  @@r�test_with_11�CoroutineTest.test_with_11�s`�����	�	�	#�
	E��c�e��
�I�I�C�D��#�	5��O�O�C�O�O�t�3�4�4��	5�s�;�	A.�A.�A)�)A.c�V```�]nQQ2nUUU1Qko[U22P!)rc�.`�\sQsQsnQsQsQsUsP!)�&CoroutineTest.test_with_12.<locals>.CMi�c�� �U!3hr
r(rs&rrU�1CoroutineTest.test_with_12.<locals>.CM.__aenter__�r�r�c�� �P	!3h�Tr(r�s&*rrY�0CoroutineTest.test_with_12.<locals>.CM.__aexit__������r�r(r�rs@rrkr��s����
�
�
rrkc	���: �R29^tt^2EPiw�K
oROUOR2[gK&)EPiw�K
%fhP!9h3hr
)r�r.r�)�cmrkr�r
s ���rrl�'CoroutineTest.test_with_12.<locals>.foo�s4�����t�t�t�r��
�
�b�l�l�B�/�"�"��t�t�t�s8�A"�A
�A"�#A�A"�A	�
A�A	�A	�	A")r:r�sf @@r�test_with_12�CoroutineTest.test_with_12�s#�����	�	�	#�	�#�%�rc��``�]nQQ2nUU1QkoUO[29^tt^2[U22PPP2UOR]2P!)%fhK$9h)rc�.`�\sQsQsnQsQsQsUsP!)�&CoroutineTest.test_with_13.<locals>.CMi�c��" �]]*P!3hr�r(rs&rrU�1CoroutineTest.test_with_13.<locals>.CM.__aenter__�r�r[c�� �P	!3hrr(r�s&*rrY�0CoroutineTest.test_with_13.<locals>.CM.__aexit__�rr�r(r�rs@rrkr
�s����
�
�
rrkc	���: �R]*
nR29^tt^2EPiw�K
RQ*
nPPP2EPiw�K
RQ*
nP!K*K)EPiw�K
%fhK*9h3h)r�r��'r(r�s��rrl�'CoroutineTest.test_with_13.<locals>.foo�s>�����1�H�C��t�t�t��t����t�t��5�L�C��t�t�t�sG�A0�A
�A0�
A�A0�A�A0�A0�A-	�A�A-	�&A-	�(A0r�r�s& @@r�test_with_13�CoroutineTest.test_with_13�sS�����	�	�	��
�
�0�
1�
1��c�e��2�����a� �2�
1�r�c	�```	�]nU1QkQ2n,n	UU	1Qko[U22vq#UOR]2SOS[]]2Tt,tFDpD]d*MJ
	to2SOR	[]]e2Tt,tFDpD]*MJ
	to2,n	UU	1Qko[U22vq#UOR]2UOU]d]�,2SOR	[]]2Tt,tFDpDMJ	toQ,*2,n	UU	1Qko[U22vq#UOR]2SOS[]]2Tt,tFDpD]d*MJ
	to2SOR	[]]2Tt,tFDpDMJ	toQQ,*2P!ttohttohttohttohttoh)rc�<:`�\sQsQsnQsU1QksQsQsUsP!)�+CoroutineTest.test_for_1.<locals>.AsyncIteri�c��]UmP!�rrhrs&rr�4CoroutineTest.test_for_1.<locals>.AsyncIter.__init__��	����rc�:�R]*
nU!r�r()r
�aiter_callss&�rrC�5CoroutineTest.test_for_1.<locals>.AsyncIter.__aiter__�s����q� ���rc�� �U9O]*
tmUO]
*%f'[UO]
*2EPiw�K
UO]d6�c[gUOUO1!K33hr�)r>r r?rs&rr@�5CoroutineTest.test_for_1.<locals>.AsyncIter.__anext__s]������!���������$�T�V�V�b�[�1�1�1��6�6�C�<�,�,��v�v�t�v�v�~�%�2�s�3B
� B
�B�B
�-B
rh�	rrrrrrCr@rr)rrs@�r�	AsyncIterr�s����
�
�
	
&�	
&rr!c��t: �R2Piw�K
vqROV*2J'K B!P!3hr
�r2)�i1�i2r!r7s  ��r�test1�'CoroutineTest.test_for_1.<locals>.test1s.���� )��
'�
'�f�b��
�
�b�g�&�
'��s�	8�5�3�5�8�5�8c���: �R2Piw�K
oROU]*2U]*]6XfJ4ROQ2P!KABBROQ2K(3h�N�what?�endr#�r>r!r7s ��r�test2�'CoroutineTest.test_for_1.<locals>.test2sX����$�;�
'�
'�a��
�
�a��d�#��Q�4�2�:��
�M�M�%� �

'�;�
�
�
�g�&�s+�	A)�A�A�A�%A)�A)�A�A)r+c���: �R2Piw�K
oU]*]6�cJROU]*2J6K/B0ROQ2ROQ2P!3hr)r#r,s ��r�test3�'CoroutineTest.test_for_1.<locals>.test3.sV����$�;�
'�
'�a��Q�4�"�9���
�
�a��d�#�
'�;�
�
�
�g�&��M�M�%� �s*�	A)�A�A�A�A)�A)�A�%A)r*)r:rprm)
r
r&�yieldedr�r>r-r0r!rr7s
&      @@@r�
test_for_1�CoroutineTest.test_for_1�s������	&�	&�*��	'��u�w�'�
������a�(�����E�!�R�L�"A�L�q�s�7�7�L�"A�B�����u�Q��}�!=�}�!�A�#�#�}�!=�>���	!��u�w�'�
������a�(�����3��*�-�����U�1�b�\�!:�\��!�\�!:�e�W�!D�E���	!��u�w�'�
������a�(�����E�!�R�L�"A�L�q�s�7�7�L�"A�B�����U�1�b�\�!:�\��!�\�!:�")�5�!1�"2�	3��K#B��!=��$";��"#B��!:s�F3
�
F8
�F=
�"G
�G
c�&`�Qn[OR2oU1QkoUO[Q29^tt^2[	U22PPP2UO[OR2U2P!)%fhK89h)r�c��N: �RPiw�K
o[Q2JKBP!3h�Nznever going to happen��print)r>�tups �rrl�%CoroutineTest.test_for_2.<locals>.fooCs%�����
/�
/�a��-�.�
/�3���%�"� �"�%�"�%z/async for' requires an object.*__aiter__.*tupler���sys�getrefcountr�r�r:rp)r
�refs_beforerlr:s&  @r�
test_for_2�CoroutineTest.test_for_2?sr������o�o�c�*��	/��
#�
#��L�N�N�
�c�e��N�
	
�������-�{�;�N�N�s�B�B	�	B	c�D`�QQ2oU2n[OR2oU1QkoUO[Q29^tt^2[	U22PPP2UO[OR2U2P!)%fhK89h)c�(`�\sQsQsnQsQsUsP!)�#CoroutineTest.test_for_3.<locals>.IiOc��U!r
r(rs&rrC�-CoroutineTest.test_for_3.<locals>.I.__aiter__Pr	rr(�rrrrrCrrrs@r�IrEOr
rrIc��N: �RPiw�K
o[Q2JKBP!3hr7r8�r>�aiters �rrl�%CoroutineTest.test_for_3.<locals>.fooV�%���� �
/�
/�a��-�.�
/�5�r<z!that does not implement __anext__r=�r
rIr@rlrLs&   @r�
test_for_3�CoroutineTest.test_for_3Ns{���	�	�����o�o�e�,��	/��
#�
#��4�6�6�
�c�e��	6�	
�������/��=�
6�6���B�B	�B	c�D`�QQ2oU2n[OR2oU1QkoUO[Q29^tt^2[	U22PPP2UO[OR2U2P!)%fhK89h)c�.`�\sQsQsnQsQsQsUsP!)�#CoroutineTest.test_for_4.<locals>.Iicc��U!r
r(rs&rrC�-CoroutineTest.test_for_4.<locals>.I.__aiter__dr	rc��Q!)Nr(r(rs&rr@�-CoroutineTest.test_for_4.<locals>.I.__anext__gs���	rr()rrrrrCr@rrrs@rrIrUcs����
�
�
rrIc��N: �RPiw�K
o[Q2JKBP!3hr7r8rKs �rrl�%CoroutineTest.test_for_4.<locals>.foomrNr<z7async for' received an invalid object.*__anext__.*tupler=rOs&   @r�
test_for_4�CoroutineTest.test_for_4bs����	�	�����o�o�e�,��	/��
#�
#��I�K�K�
�c�e��	K�	
�������/��=�
K�K�rRc��`````�]nU1QkQ2nQQ2nR2nR2n[OR2o[OR2oUUU1Qko[O29^tt^2[OQ2[U22PPP2UO
RQ2UO
[OR2U2UO
[OR2U2UUU1Qko[U22UO
RQ	2UUU1Q
ko[U22UO
RQ2P!)%fhK�9h)rc�<:`�\sQsQsnU1QksU1QksQsUsP!)�)CoroutineTest.test_for_6.<locals>.Manageri|c��$: �RQ*
nP!3h)rr()r
rIs&�rrU�4CoroutineTest.test_for_6.<locals>.Manager.__aenter__}s�����U�
����
c��$: �RQ*
nP!3h)i��r()r
r5rIs&*�rrY�3CoroutineTest.test_for_6.<locals>.Manager.__aexit__�s�����V���rcr(r�)rrIs@�rr[r`|s����
�
�
rr[c�4`�\sQsQsnQsQsQsQsUsP!)�*CoroutineTest.test_for_6.<locals>.Iterablei�c��]UmP!rrhrs&rr�3CoroutineTest.test_for_6.<locals>.Iterable.__init__�rrc��U!r
r(rs&rrC�4CoroutineTest.test_for_6.<locals>.Iterable.__aiter__�r	rc�� �UO]
6�c[gU9O]*
tmUO!3hr�)r>r?rs&rr@�4CoroutineTest.test_for_6.<locals>.Iterable.__anext__�s,����6�6�B�;�,�,����!����v�v�
�s
�A�+Arhr rs@r�Iterablerg�s����
�
�
�
rrnc	���: �R9^tt^2EPiw�K
RPiw�K
oR]*
nJKKBPPP2EPiw�K
L)EPiw�K
%fhL9hRQ*
nP!3h�Nr�r()r>rIr)�managers ���r�main�&CoroutineTest.test_for_6.<locals>.main�sN�����w�w�'���!���F�A���x��w�w�w�w�w��
��I�A�sa�A5�3
�A5�A�7�5�7�
A�A5�7�A�A5�A�A5�A'	�A�A'	� A'	�"A5�errori��c	���: �R29^tt^2EPiw�K
R2Piw�K
oR]*
nJK"KBPPP2EPiw�K
L)EPiw�K
%fhL9hRQ*
nR29^tt^2EPiw�K
R2Piw�K
oR]*
nJBPPP2EPiw�K
L)EPiw�K
%fhL9hRQ*
nP!3hrpr(�r>rIrnr[s ���rrrrs�s������y�y�y�'�z���!���F�A�!��z�!�y�y�y�y�y��
��I�A��y�y�y�y�'�z���!���F�A� *�!�y�y�y�y�y��
��I�A�s��C5�=
�C5�A�A�?�A�
A�C5�A�A�C5�A�C5�A1	�A!�A1	�*A1	�,%C5�B
�C5�C�B7�$B(�%B7�*C�8C5�C�C5�C'	�C�C'	� C'	�"C5i�c	��6: �R29^tt^2EPiw�K
R]d*
nR2Piw�K
oR]*
nJK+KBRQ*
nPPP2EPiw�K
L)EPiw�K
%fhL9hRQ*
nR29^tt^2EPiw�K
R]d*
nR2Piw�K
oR]*
nJBRQ*
nPPP2EPiw�K
L)EPiw�K
%fhL9hRQ*
nP!3h)Ni���r�r(rvs ���rrrrs�s������y�y�y��S���'�z�"�"�!���F�A�!�"�z���M�A�!�y�y�y�y�y��
��I�A��y�y�y�y��S���'�z�"�"�!���F�A� *���M�A�!�y�y�y�y�y��
��I�A�s��D�A
�D�A(�A
�A�A
�
A(�D�A
�

A(�D� A$�!D�(B	�/A3�0B	�<B	�>%D�#B'
�$D�)C0�:C�?C�C�C0�D�(C,�)D�0D	�7C;�8D	�D	�Di��9)r>r?rBrCrDr:rp)	r
�mrefs_before�irefs_beforerrrIrnr[r)rqs	&   @@@@@r�
test_for_6�CoroutineTest.test_for_6ys
���
��	�	�	�	��)���:�����w�/�����x�0��	��
$�
$�
&�
&��!�!�'�*�
�d�f��	'�
	
����F�#��������1�<�@��������2�L�A�	�	�$�&������F�#�	�&	�$�&������H�%�e'�
&�s�?'E"�"E2	�+E2	c��``�]nQQ2nUU1QkoUO[29^tt^2[U22PPP2UOR]2P!)%fhK$9h)rc�(`�\sQsQsnQsQsUsP!)�$CoroutineTest.test_for_7.<locals>.AIi�c��]]*P!r�r(rs&rrC�.CoroutineTest.test_for_7.<locals>.AI.__aiter__�����!��rr(rHrs@r�AIr~������
�
rr�c��f: �R2Piw�K
oR]*
nJKBR]
*
nP!3hr
r(�r>r�r�s ��rrl�%CoroutineTest.test_for_7.<locals>.foo��0�����4�
�
�a��q���
�4��2�I�C���	1�%�#�%�
1�%�1r��r
rlr�r�s& @@r�
test_for_7�CoroutineTest.test_for_7�sS�����	�	�	�
�
�
�0�
1�
1��c�e��2�����a� �2�
1�r�c	�``�]nQQ2nUU1QkoUO[29^tt^2[O29^tt^2[OQ2[U22PPP2PPP2UO
R]2P!)%fhK,9h)%fhK79h)rc�(`�\sQsQsnQsQsUsP!)�$CoroutineTest.test_for_8.<locals>.AIi�c��]]*P!r�r(rs&rrC�.CoroutineTest.test_for_8.<locals>.AI.__aiter__�r�rr(rHrs@rr�r��r�rr�c��f: �R2Piw�K
oR]*
nJKBR]
*
nP!3hr
r(r�s ��rrl�%CoroutineTest.test_for_8.<locals>.foo�r�r�rt)rPr�rBrCrDr:rpr�s& @@r�
test_for_8�CoroutineTest.test_for_8�s������	�	�	�
�
�
�0�
1�
1��(�(�*�*��%�%�g�.��#�%� �	+�2�	
����a� �+�*��2�
1�s/�B0�'B	�9B0�B-
�&B-
�(B0�0C	�9C	c�"`�QQ2nU1QkoUO[Q29^tt^2oU2OP2PPP2WOoUO	UO
[2P!)%fhK>9h)c�4`�\sQsQsnQsQsQsQsUsP!)�$CoroutineTest.test_for_11.<locals>.Fi�c��U!r
r(rs&rrC�.CoroutineTest.test_for_11.<locals>.F.__aiter__�r	rc��U!r
r(rs&rr@�.CoroutineTest.test_for_11.<locals>.F.__anext__�r	rc��]]*P!r�r(rs&rr�.CoroutineTest.test_for_11.<locals>.F.__await__�s���A��rr()	rrrrrCr@rrrrs@r�Fr��s����
�
�
�
rr�c��B: �R2Piw�K
oJKBP!3hr
r()r�r�s �rrr�'CoroutineTest.test_for_11.<locals>.main�s!�����3�
�
�a��
�3�s�	������z an invalid object from __anext__)r�r�r3�	exceptionr��	__cause__r�)r
rrr!�errr�s&   @r�test_for_11�CoroutineTest.test_for_11�sr���	�	�	��
#�
#�I�$F�H�H�KL��F�K�K���H��k�k�����c�m�m�->�?�H�H�s�A>�>B	�B	c�```�QQ[2nQQ[2n,nUUU1QkoUOR29^tt^2U2OP2PPP2UO	R]*,2P!)%fhK%9h)c��\sQsQsQsP!)�*CoroutineTest.test_for_tuple.<locals>.Donei
r(r�r(rr�Doner�
���trr�c�2`�\sQsQsn]sQsQsQsUsP!)�+CoroutineTest.test_for_tuple.<locals>.AIteric��U!r
r(rs&rrC�5CoroutineTest.test_for_tuple.<locals>.AIter.__aiter__r	rc�� �UO[U26�c[gU9O]*
tmVO]*
*!3hr�)r>�lenr?rs&rr@�5CoroutineTest.test_for_tuple.<locals>.AIter.__anext__s9����6�6�S��Y�&�,�,����!����F�F�Q�J�'�'�s
�A�8Ar(�	rrrrr>rCr@rrrs@r�AIterr�s�����A�
�
(�
(rr�c��h: �R]*,2Piw�K
oROU2JKBRg3hr�r#�r>r�r�r8s ���rrl�)CoroutineTest.test_for_tuple.<locals>.foos3���� �"��;�
!�
!�a��
�
�a� �
!�;��J�s�2�/�-�/�2�/�2)r;r�rPr3rp�r
rlr�r�r8s& @@@r�test_for_tuple�CoroutineTest.test_for_tuple	sd���#�9�#�	(�E�	(���	�
�
�
�t�
$�
$��E�J�J�t��%�����"��&�%�
$���A:�:B
	�B
	c�```�QQ[2nQQ[2n,nUUU1QkoUOR29^tt^2U2OP2PPP2UO	R]*,2P!)%fhK%9h)c��\sQsQsQsP!)�3CoroutineTest.test_for_stop_iteration.<locals>.Donei!r(r�r(rrr�r�!r�rr�c�2`�\sQsQsn]sQsQsQsUsP!)�4CoroutineTest.test_for_stop_iteration.<locals>.AIteri#c��U!r
r(rs&rrC�>CoroutineTest.test_for_stop_iteration.<locals>.AIter.__aiter__%r	rc�� �UO%c[gU9O]*
tmUO!3hr�)r>r?r#rs&rr@�>CoroutineTest.test_for_stop_iteration.<locals>.AIter.__anext__'s+����6�6�6�,�,����!����z�z�!�s
�A�+Ar(r�rs@rr�r�#s�����A�
�
"�
"rr�c��f: �R]*2Piw�K
oROU2JKBRg3hr�r#r�s ���rrl�2CoroutineTest.test_for_stop_iteration.<locals>.foo.s1���� ��9�
!�
!�a��
�
�a� �
!�9��J�s�
1�.�,�.�1�.�1)r;r4rPr3rpr�s& @@@r�test_for_stop_iteration�%CoroutineTest.test_for_stop_iteration sd���#�9�#�	"�M�	"���	�
�
�
�t�
$�
$��E�J�J�t��%�����"��&�%�
$�r�c�h`�QnU1QkoU1QkoU1QkoU1QkoUO[U22,]]),12UO[U22,]]).12UO[U22,]Q])Q-12UO[U22,]]]])-12P!)c�� �U!3hr
r(rhs&rr��$CoroutineTest.test_comp_1.<locals>.f8�
����H�r�c��p: �R]2R])2,Tt,tFDpEPiw�K
MJ	to!Kttoh3hr�r(�r!r�s �r�run_list�+CoroutineTest.test_comp_1.<locals>.run_list;�.����&'��d�A�b�E�]�3�]��G�G�]�3�3�G��3���6�1�/�	1�6�1�6c��p: �R]2R])2,Tt.tFDpEPiw�K
jJ	to!Kttoh3hr�r(r�s �r�run_set�*CoroutineTest.test_comp_1.<locals>.run_set>r�r�c��r: �R]2R])2,Tt-tFDpEPiw�K
QaJ	to!Kttoh3h)r�r�r(r�s �r�	run_dict1�,CoroutineTest.test_comp_1.<locals>.run_dict1As2����+,�Q�4��2��-�8�-�Q�G�G�S�L�-�8�8�G��8�s�7�2�0�
2�7�2�7c
��: �[R]2R])2,2TTt-tFDvqXEPiw�K
aJ	too!Kttooh3hr�)�	enumerate)r>r!r�s  �r�	run_dict2�,CoroutineTest.test_comp_1.<locals>.run_dict2Ds;����+4�a��d�A�b�E�]�+C�D�+C�4�1�A�w�w�J�+C�D�D�w��D�s�A�?�=�	?�A�?�Ar�r�)r
r�r�r�r�r�s&    @r�test_comp_1�CoroutineTest.test_comp_17s����	�	4�	4�	9�	E�	
����8�:�.��a��W�
�>�����7�9�-��Q��G�}�=�����9�;�/�"�q�#�r�3�6G�1H�I�����9�;�/�"�q�!�Q��m�1D�Erc�`�QnU1QkoUO[U22,,QN12U1QkoUO[U22,.Ql12U1QkoUO[U22,]
].12P!)c�� �U!3hr
r(rhs&rr��$CoroutineTest.test_comp_2.<locals>.fMr�r�c	��: �RP2RQ2RP2RQQ,2,TTt,tFDoUEPiw�K
FDoUMJ	J	too!Kttooh3h)��abc�de�fgr(�r!�sr�s  �rr��+CoroutineTest.test_comp_2.<locals>.run_listPs\���� !�"��q��x��2���4��,��H�&�H�!�#$�W�W���$��H�&�
&�$��&�s&�$A�
A�A�A�A�A�Ac���: �RR]
],2R],2,2,TTTt.tFD-oUEPiw�K
FDoUEPiw�K
FDoUjJ	J	J/	tooo!K+Kttoooh3hr�r()r!r��dr�s   �rr��*CoroutineTest.test_comp_2.<locals>.run_setXs������B��8��!"�B�4��!*�+�,�&�,��#$�W�W��#$�W�W��	�%�	�%��,�&�
&�%�$��	&�s7�A'�
A �A�A �A�A �A'�A �A � A'c��: �RR]
2R]2,2,TTt.tFD#oUEPiw�K
FDoUEPiw�K
jJ	J%	too!K Kttooh3hr�r(r�s  �r�run_set2�+CoroutineTest.test_comp_2.<locals>.run_set2cs\������2���"���/�0�&�0��#$�W�W���G�G�$��0�&�
&�$���&�s6�A�
A�A
�A�A�
A�	A�
A�A�A)r�rir!r�r�>r���r�)r
r�r�r�r�s&   @r�test_comp_2�CoroutineTest.test_comp_2Ls����	�	&�	
����h�j�!�
�,�-�	/�	&�	
����g�i� �
���	 �	&�
	
����h�j�!�
�"�b��N�	rc�d`�QnU1QkoUO[U22,]],12U1QkoUO[U22,]].12U1QkoUO[U22,]]]]-12U1QkoUO[U22,]o]y,12P!)c�0 �SFD	oU3w�	J	P!3hr
r(�rGr>s& rr��$CoroutineTest.test_comp_3.<locals>.fm���������r,c��j: �R]
],2Tt,tPiw�K
p]*MJKBto!ttoh3hr�r(�r>r�s �rr��+CoroutineTest.test_comp_3.<locals>.run_listq�.����)*�B��8��5��5�5�A��E�E�5�5��5��$�
3�.�*�(�*�.�*�.�3c��j: �R]
],2Tt.tPiw�K
p]*jJKBto!ttoh3hr�r(r�s �rr��*CoroutineTest.test_comp_3.<locals>.run_setwr�r�c��z: �R]
],2Tt-tPiw�K
p]*U]*aJKBto!ttoh3hr�r(r�s �r�run_dict�+CoroutineTest.test_comp_3.<locals>.run_dict}s4����01�2�r�(��<��<�<�1��E�1�q�5�L�<�<��<�s$�
;�6�2�0�2�6�2�6�;c��z: �QR]
],22oUTt,tPiw�K
p]d*MJKBto!ttoh3h)c�P�U �Piw�K
p]*3w�	JKBP!3hr
r(��.0r>s& r�	<genexpr>�=CoroutineTest.test_comp_3.<locals>.run_gen.<locals>.<genexpr>�s�����4�4�1�q�5�5�4�s�&�#�!�#�&�#�&r(�r}rr�s  �r�run_gen�*CoroutineTest.test_comp_3.<locals>.run_gen�s8����4��2�r�(��4�C�+.�/�3�/�/�a��G�G�/�/��/��$�;�6�2�0�2�6�2�6�;r��r
r�r�rr	r�s&    @r�test_comp_3�CoroutineTest.test_comp_3ls����	�	6�����h�j�!�
�"�b��N�	�	6�����g�i� �
�"�b��N�	�	=�����h�j�!�
�"�b�"�b�!�"�	$�	0�	
����g�i� �
�#�s���	rc�Z`�QnU1QkoUO[U22,],12U1QkoUO[U22,].12U1QkoUO[U22,]]-12U1QkoUO[U22,]y,12P!)c�0 �SFD	oU3w�	J	P!3hr
r(r�s& rr��$CoroutineTest.test_comp_4.<locals>.f�r�r,c��|: �R]
],2Tt,tPiw�K
p]
6�fJU]*MJKBto!ttoh3hr�r(r�s �rr��+CoroutineTest.test_comp_4.<locals>.run_list��6����)*�B��8��?��?�?�A�B��E�A��E�E�?�?��?��(�
<�7�3�1�3�7�7�3�7�<c��|: �R]
],2Tt.tPiw�K
p]
6�fJU]*jJKBto!ttoh3hr�r(r�s �rr��*CoroutineTest.test_comp_4.<locals>.run_set�rrc��: �R]
],2Tt-tPiw�K
p]
6�fJU]*U]*aJ&KB to!ttoh3hr�r(r�s �rr�+CoroutineTest.test_comp_4.<locals>.run_dict�s<����01�2�r�(��F��F�F�1�2�v�L�A��E�1�q�5�L�F�F��F�s*�
A�?�;�9�;�?�?�;�?�Ac��z: �QR]
],22oUTt,tPiw�K
p]d*MJKBto!ttoh3h)c�b�U �Piw�K
p]
6�fJU]*3w�	J"KBP!3hr
r(rs& rr�=CoroutineTest.test_comp_4.<locals>.run_gen.<locals>.<genexpr>�s!�����>�>�1�2�v�5�1�q�5�5�>�s �/�,�*�,�/�/�,�/r(rs  �rr	�*CoroutineTest.test_comp_4.<locals>.run_gen�s8����>��2�r�(��>�C�+.�/�3�/�/�a��G�G�/�/��/�rr�rs&    @r�test_comp_4�CoroutineTest.test_comp_4�s����	�	@�����h�j�!�
�"��J�	�	@�����g�i� �
�"��J�	�	G�����h�j�!�
�"�b��N�	�	0�	
����g�i� �
�#��K�	rc
�h`�QnU1QkoUO[U22,,QN12U1QkoUO[U22,.Ql12U1QkoUO[U22,]]e]]f]
]g-12U1QkoUO[U22,,QN12P!)c�0 �SFD	oU3w�	J	P!3hr
r(r�s& rr��&CoroutineTest.test_comp_4_2.<locals>.f�r�r,c��: �R[]22Tt,tPiw�K
o]St96c
]6fJLJ U]
*MJ+K$B%to!ttoh3h��r�r�s �rr��-CoroutineTest.test_comp_4_2.<locals>.run_list��@����*+�E�!�H�+�C�+�C�C�Q��Q����F��F�A��F�F�C�C��C��?�A�A�A�A�A�	A�A�A�A�A�A�Ac��: �R[]22Tt.tPiw�K
o]St96c
]6fJLJ U]
*jJ+K$B%to!ttoh3hr$r�r�s �rr��,CoroutineTest.test_comp_4_2.<locals>.run_set�r'r(c��: �R[]22Tt-tPiw�K
o]St96c
]6fJLJ U]
*U]d*aJ3K,B-to!ttoh3hr$r�r�s �rr�-CoroutineTest.test_comp_4_2.<locals>.run_dict�sF����34�U�1�X�;�L�;�L�L�a�!�a�)�!�)�O�)�O�A��F�A��G�O�L�L��L�s?�A�A�A�A
�A�	A�A�A�A�
A�A�Ac��: �QR[]222oUTt,tPiw�K
p]d*MJKBto!ttoh3h)c�|�U �Piw�K
o]St96c
]6fJLJ U]
*3w�	J/K(B)P!3hr
r(rs& rr�?CoroutineTest.test_comp_4_2.<locals>.run_gen.<locals>.<genexpr>�s+�����B�B�A��A�	��	�6�	�6�1�r�6�6�B�s(�<�9�7�9�	<�<�<�<�9�<r�rs  �rr	�,CoroutineTest.test_comp_4_2.<locals>.run_gen�s8����B��5��8��B�C�+.�/�3�/�/�a��G�G�/�/��/�s&�A�=�9�7�9�=�9�=�A)���
>r1r2r3)�o�p�qr�rs&    @r�
test_comp_4_2�CoroutineTest.test_comp_4_2�s����	�	D�����h�j�!�
���	 �	D�����g�i� �
���	 �	M�����h�j�!�
�"�c�2�s�B��,�-�	/�	0�	
����g�i� �
��!�	#rc�b`�QnU1QkoUO[U22,]),12P!)c�0 �SFD	oU3w�	J	P!3hr
r(r�s& rr��$CoroutineTest.test_comp_5.<locals>.f�r�r,c
��: �]
],]](,1TTt,tFD6p]*]
6�fJRU2Piw�K
p]6�fJU]*MJ	too!KBJCttooh3hr�r()�pairr>r�s  �rr��+CoroutineTest.test_comp_5.<locals>.run_list�si����(*�B�x�"�b��&:�6�&:�d�1�g��l�E�#$�T�7�6�6��"�f��A��E�E�&:�6�
6�6�E��6�sA�A�A�A�A�A�A�A�
A�
A�A�A�Ar��r
r�r�s& @r�test_comp_5�CoroutineTest.test_comp_5�s0���	�	6�	
����h�j�!�
�"��J�	rc�d`�QnU1QkoUO[U22,,QN12P!)c�0 �SFD	oU3w�	J	P!3hr
r(r�s& rr��$CoroutineTest.test_comp_6.<locals>.f�r�r,c��: �RQQ,2TTt,tPiw�K
oSFDoU]*MJ	J KBtoo!ttooh3h)r�)r�r�)r�r()�seqr>r�s  �rr��+CoroutineTest.test_comp_6.<locals>.run_list�sO����+,�h��->�+?�"�+?�"�"�C� ����E�E� ��"�
"��"�s&�A�;�6�4�6�;�6�;�
A)r1��r�r?s& @r�test_comp_6�CoroutineTest.test_comp_6�s/���	�	"�	
����h�j�!�
���	 rc�`�QnU1QkoUO[Q29^tt^2[U22PPP2P!)%fhP!9h)c�: �]3w�	]3w�	[Q2g3h)r��aaa)r;r(rrr��$CoroutineTest.test_comp_7.<locals>.f�s����G��G��E�"�"�s�c��V: �R2Tt,tPiw�K
pMJKBto!ttoh3hr
r(r�s �rr��+CoroutineTest.test_comp_7.<locals>.run_list�s$����%&�S�)�S�)�)��A�)�)��)�s$�
)�$� �� �$� �$�)rN)r�r;r:r?s& @r�test_comp_7�CoroutineTest.test_comp_7�s;���	#�
	*��
#�
#�I�u�
5�
5��h�j�!�6�
5�
5�
5�s�A�A	�A	c�V�QoUO[U22,,QN12P!)c��> �,QNTt,tFDpMJ	to!ttoh3hr�r(rhs rr��$CoroutineTest.test_comp_8.<locals>.f�s���(�)�y�!�A�y�)�)��)�s���r�r��r
r�s& r�test_comp_8�CoroutineTest.test_comp_8�s'��	*�	
����a�c�N�
��O�	rc�d`�QnU1QkoUO[U22,]],12P!)c�( �]3w�	]3w�	P!3hr�r(r(rrr}�&CoroutineTest.test_comp_9.<locals>.gen�s����G��G�s�c��: �R2Tt,tPiw�K
pMJKBLttohooSTt,tFDpMJ	to!ttoh3hr
r()r>�lr}s  �rr��$CoroutineTest.test_comp_9.<locals>.f�s;����"%�%�(�%�(�(�Q��(��(�A�(� �>�q�!�A�q�>�!��>�s/�
A�"� �� �"� �"�A�;�Ar��r
r�r}s& @r�test_comp_9�CoroutineTest.test_comp_9�s1���	�	"�	
����a�c�N�
�!�Q��L�	rc
�^�QoUO[U22,]]]]]]-12P!)c��l �,QNTt.tFDpjJ	ooSTt-tFDp"UaJ	to!ttohttoh3hr�r()r>�xxr*s   rr��%CoroutineTest.test_comp_10.<locals>.fs8���&�'�Y��!�Y�B�'�"$�%�"�Q�q�D�"�%�%��(��%�s�4�*�4�
/�
4r�rWs& r�test_comp_10�CoroutineTest.test_comp_10�s5��	&�	
����a�c�N�
�!�Q��1�a��#�$�	&rc��QoUO[U22,]],]],,12QoUO[U22,]].]].,12QoUO[U22,]]
.12QoUO[U22,]
]]]]-]]]]]--12QoUO[U22,]],]],,12QoUO[U22,,QN12QoUO[U22,,QN12QoUO[U22,]o]p,]y]z,,]�]�,]�]�,,,12P!)	c�� �]
],TTt,tFD'o[]],2Tt,tPiw�K
pU*MJ	too!KBLttohtoMJ=ttooh3hr��r+��jr>s  r�run_list_inside_list�<CoroutineTest.test_nested_comp.<locals>.run_list_inside_list	�E���GI�2�h�O�h��)�Q��F�*;�<�*;�<�<�Q��U�U�h�O�O�<��<��O��?�A�A�A�?�=�?�A�A�A�?�A�A�Ac�� �]
],TTt,tFD'o[]],2Tt.tPiw�K
pU*jJ	too!KBLttohtoMJ=ttooh3hr�rkrls  r�run_set_inside_list�;CoroutineTest.test_nested_comp.<locals>.run_set_inside_listrprqc�� �]],TTt.tFD,o[[[U22Tt,tPiw�K
pMJ	too!K
BLttohto2jJFttooh3h)r�)r�r+rmrls  r�run_list_inside_set�;CoroutineTest.test_nested_comp.<locals>.run_list_inside_setsF���JK�Q��P��A�C�)�E�!�H�*=�>�*=�>�>�Q���P�P�>��>�?��P�sE�A�!A�A�A�A�A�A�A�A�A�A�A�Ac
�� �]
],TTt-tFD'p[]],2Tt-tPiw�K
pV*aJ	too!KBLttohtoaJ=ttooh3hr�rkrls  r�run_dict_inside_dict�<CoroutineTest.test_nested_comp.<locals>.run_dict_inside_dictsI���MO�QS�H�U�H�q�	�1�a�&�0A�B�0A�B�B�1�1�5��H�U�U�B��B�B��U�s?�A�A�A�?�=�?�A�A�A�?�A�A�Ac��^ �Q]
],2oUTt,tPiw�K
pMJKBto!ttoh3h)c	��SF �D'o[]],2Tt,tPiw�K
p"U*MJ	P!KBLttohto3w�	J?3hr�rk)rrmr>s&  rr�NCoroutineTest.test_nested_comp.<locals>.run_list_inside_gen.<locals>.<genexpr>"s7��X���X���A�q�6�):�;�):�;�;�A��E�E�X�;��;�;�s+�A�:�8
�6�8
�:�A�8
�:�Ar()r}r*s  r�run_list_inside_gen�;CoroutineTest.test_nested_comp.<locals>.run_list_inside_gen!s/���N�b�"�X�N�C�%(�)�S�)�)��A�)�)��)�s$�-�(�$�"�$�(�$�(�-c
��� �]],Tt,tFDoQ[[U222MJ	ooSTTt,tFDp"Piw�K
p3MJ	too!ttohKBJ"ttooh3h)r�c�B�U �Piw�K
p3w�	JKBP!3hr
r(rs& rr�NCoroutineTest.test_nested_comp.<locals>.run_gen_inside_list.<locals>.<genexpr>)���&9���:�:��Q�:����������r+rm)rm�gensrr*s    r�run_gen_inside_list�;CoroutineTest.test_nested_comp.<locals>.run_gen_inside_list(sY���EF��F�K�F�q�:�i��a��&9�:�F�D�K�#�5�t�!�1�5�5�a�A�t�5�5��L�5�A��5�sC�A �%A�A �A�A�A�A�A�	A �A�A�A c
��v �Q]],2oSTTt,tFDpPiw�K
p"MJ	too!K
BJttooh3h)c3�b�SF �D oQ[[U222w�	J"	P!3h)c�B�U �Piw�K
p3w�	JKBP!3hr
r(rs& rr�WCoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen.<locals>.<genexpr>.<genexpr>0r�r�r�)rrms& rr�MCoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen.<locals>.<genexpr>0s"��F���F�q�:�i��a��&9�:�:�F�s�(/r()r�rr*s   r�run_gen_inside_gen�:CoroutineTest.test_nested_comp.<locals>.run_gen_inside_gen/s:���K�Q��F�K�D�#�5�t�!�1�5�5�a�A�t�5�5�5�A��5�s(�9�3�0�.�0�3�9�0�3�9c��� �]d]�,TTTt,tFDCo]
],TTt,tFD.o[]],2Tt,tPiw�K
p"U*U*MJ	tooMJE	tooo!K$B%LttohtoMJMttoohttoooh3h)�drk)�krmr>s   r� run_list_inside_list_inside_list�HCoroutineTest.test_nested_comp.<locals>.run_list_inside_list_inside_list6sy���"�3�Z�)�'�� "�2�h�(�&��09�!�Q��/@�A�/@�A�A�!�!�e�a�i�i�&�(�'�)�
)�A��A��(��)�sX�	A6�
A/�A)�A�A�A"�A�A�A)�A/�A6�A�A�A)�)A/�/A6)rr�r�rr�r�r��r�)	r
rnrsrvryr~r�r�r�s	&        r�test_nested_comp�CoroutineTest.test_nested_comps���	P�����*�,�-�
�2�r�(�R��H�%�&�	(�	P�����)�+�,�
�2�r�(�R��H�%�&�	(�	Q�����)�+�,�
�!�R��M�	�	V�����*�,�-�
�"�q�"�a��n�b�1�b�!�R�.�9�:�	<�	*�	
����)�+�,�
�2�r�(�R��H�%�&�	(�	6�	
����)�+�,�
�)�*�	,�	6�	
����(�*�+�
�)�*�	,�	)�	
����6�8�9�
�C��:��S�z�*�c�3�Z�#�s��,D�E�F�	Hrc���QoU2oUO[29^tt^2[OU2PPP2UO2oUO[29^tt^2[OU2PPP2UO	2P!)%fhKo9h)%fhK59hSO	2h9h)c�� �P!3hr
r(r(rrr�%CoroutineTest.test_copy.<locals>.func?rr�)rPr��copyrr�)r
rr6r=s&   r�	test_copy�CoroutineTest.test_copy>s�����v��
�
�
�y�
)�
)��I�I�d�O�*��^�^�
��	��"�"�9�-�-��	�	�"�
�.�
�H�H�J�*�
)��
.�-��
�H�H�J�s;�B'�C
�6B:�
C
�'B7	�0B7	�:C
	�C
	�C
�
Cc	��QoU2o[[O]*2FDOoUO[[O
129^tt^2[OV#2PPP2JQ	UO2o[[O]*2FDOoUO[[O
129^tt^2[OVC2PPP2JQ	UO2P!)%fhJ�9h)%fhJ�9hSO2h9h)c�� �P!3hr
r(r(rrr�'CoroutineTest.test_pickle.<locals>.funcLrr�)	rm�pickle�HIGHEST_PROTOCOLrPr��
PicklingError�dumpsrr�)r
rr6�protor=s&    r�test_pickle�CoroutineTest.test_pickleKs�����v���6�2�2�Q�6�7�E��"�"�I�v�/C�/C�#D�E�E����T�)�F�E�8��^�^�
��	��v�6�6��:�;���&�&�	�6�3G�3G�'H�I�I��L�L��+�J�I�<�
�H�H�J�F�E�E��J�I�I��
�H�H�J�s=�D	�AD?�"D+	�9D?�D(
� D(
�+D<
�4D<
�6	D?�?Ec
�"�Qo[O29^tt^2[O29^tt^2o[OQ2U2o[U2oPo[O2UOUOOQU02UOQ[UOO22PPP2PPP2P!)%fhK9h)%fhP!9h)c�� �P!3hr
r(r(rrr�3CoroutineTest.test_fatal_coro_warning.<locals>.func\rr�rt�-Exception ignored while finalizing coroutine zwas never awaited)
rBrCr�catch_unraisable_exception�filterwarningsr�rErp�
unraisable�err_msgr�str�	exc_value)r
rrr6�	coro_reprs&    r�test_fatal_coro_warning�%CoroutineTest.test_fatal_coro_warningZs����
�
$�
$�
&�
&�
�
/�
/�
1�
1�R��#�#�G�,��6�D��T�
�I��D���� ����R�]�]�2�2� *�*3��6�
7�
�M�M�-�s�2�=�=�3J�3J�/K�L�2�'�
&�
1�
1��'�
&�
&�s0�C=�BC*	�C=�*C:
�3C:
�5C=�=D	�D	c�2```�QQ2oU2nQnUUU1QkoRO[U22,Q12UUU1QkoRO[U22,Q12UUU1QkoRO[U22,Q12P!)c�(`�\sQsQsnQsQsUsP!)�MCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.BadTargetilc��[]*2gr�r>)r
�keyr#s&&&r�__setitem__�YCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.BadTarget.__setitem__m�
��(��,�,rr()rrrrr�rrrs@r�	BadTargetr�l�����
-�
-rr�c� �]
3w�	P!3hr�r(r(rr�source�JCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.sourceps
����H�s�
c��
: �RO[29^tt^2oR2Piw�K
R]$JK
BPPP2L)%fhL9hROWOOQ2Q!3h�Nr+r��rPr?rpr�r5�rr
r��tgts ���r�run_for�KCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_forssg�����"�"�#5�6�6�"�$*�H���#�a�&���H�7�6�6�6��
���R�\�\�.�.��6��s;�B�A�=�;�=�A�=�A�	B�A	�A	�0Br+c��: �RO[29^tt^2oR2,tPiw�K
R]$]MJKBttPPP2!)%fhL9hROWOOQ2Q!3hr�r�r�s ���rr��LCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_list{sa�����"�"�#5�6�6�"�.4�h�7�h�7�7�C��F��7�7�6�6�6�����R�\�\�.�.��6��s@�B�
A�A�>�A�A�A�A�B�A	�A	�0Bc��: �U1QkR22oUOP2oRO[29^tt^2oUEPiw�K
PPP2ROWOO
[2ROUOO
OQ2Q!Kh)%fhKn9h3h)c�L:�U �Piw�K
R]$]3w�	JKBP!3hr
r()rr�s&�rr�^CoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_gen.<locals>.<genexpr>�s�����2�2�s�1�v�1�2�s�$�!��!�$�!�$r+r��	�asendrPr�r�r�r�r?rpr5)r}r�rr
r�r�s   ���rr	�KCoroutineTest.test_for_assign_raising_stop_async_iteration.<locals>.run_gen�s�����2���2�C��	�	�$��A��"�"�<�0�0�B����1��!�!�"�,�,�"8�"8�:L�M����R�\�\�3�3�8�8�%�@���1�0�s7�AC	�B6�
B4
�B6�A$C	�4B6�6C	�?C	�C	r�)r
r�r�r�r	r�r�sf    @@r�,test_for_assign_raising_stop_async_iteration�:CoroutineTest.test_for_assign_raising_stop_async_iterationks����	-�	-��k��	�	�	
����7�9�-��E�{�;�	�
	
����8�:�.��U��<�	�	
����7�9�-��E�{�;rc�$```�QQ2nU1QknUU1QkoRO[U22,Q12UU1QkoRO[U22,Q12UU1QkoRO[U22,Q12P!)c�(`�\sQsQsnQsQsUsP!)�QCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.BadIterablei�c��[]*2gr�r>rs&rr�ZCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.BadIterable.__iter__�r�rr()rrrrrrrrs@r�BadIterabler��r�rr�c�(: �R23w�	P!3hr
r()r�s�r�badpairs�NCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.badpairs�s�����-��s�c��: �RO[29^tt^2oR2Piw�K
vqJK	B
PPP2L)%fhL9hROWOOQ2Q!3hr�r��rr>rmr�r
s   ��rr��MCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_for�se�����"�"�#5�6�6�"�"*�*���$�!���*�7�6�6�6��
���R�\�\�.�.��6��s;�B�A�<�:�<�A�<�A�	B�A	�A	�0Br+c
��*: �RO[29^tt^2oR2TTt,tPiw�K
vq]MJK
BLttoohtoottPPP2!)%fhL9hROWOOQ2Q!3hr�r�r�s   ��rr��NCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_list�sc�����"�"�#5�6�6�"�,4�J�7�J�7�7�D�A��7��7�7�6�6�6�����R�\�\�.�.��6��sM�B�
A�A
�A�A�A�A
�A�A
�
A�
B�A(	�!A(	�#0Bc��: �QR22oUOP2oRO[29^tt^2oUEPiw�K
PPP2ROWOO
[2ROUOO
OQ2Q!Kh)%fhKn9h3h)c�H�U �Piw�K
vq]3w�	JKBP!3hr
r()rr>rms&  rr�`CoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_gen.<locals>.<genexpr>�s��z���2�2�t�q�1�2�s�"����"��"r+r�r�)r}r�rr�r
s   ��rr	�MCoroutineTest.test_for_assign_raising_stop_async_iteration_2.<locals>.run_gen�s�����2�x�z�2�C��	�	�$��A��"�"�<�0�0�B����1��!�!�"�,�,�"8�"8�:L�M����R�\�\�3�3�8�8�%�@���1�0�s6�=C�B3�B1
�B3�
A$C�1B3�3C	�<C	�>Cr�)r
r�r�r	r�r�sf   @@r�.test_for_assign_raising_stop_async_iteration_2�<CoroutineTest.test_for_assign_raising_stop_async_iteration_2�sx���	-�	-�	 �	�	
����7�9�-��E�{�;�	�
	
����8�:�.��U��<�	�	
����7�9�-��E�{�;rc���QoUO[29^tt^2U2OoPPP2WO2P!)%fhK"9h)�*This would crash the interpreter in 3.11a2c�� �P!3hr
r(r(rrr��)CoroutineTest.test_bpo_45813_1.<locals>.f�r�r�)r�r��cr_frame�clear)r
r��frames&  r�test_bpo_45813_1�CoroutineTest.test_bpo_45813_1�s:��	�
�
�
�n�
-�
-��C�L�L�E�.�
���
�.�
-�s�A�A	�A	c���QoU2oUO[29^tt^2UOO2PPP2UO	2P!)%fhK"9h)r�c�� �P!3hr
r(r(rrr��)CoroutineTest.test_bpo_45813_2.<locals>.f�r�r�)r�r�r�r�r�r`s&  r�test_bpo_45813_2�CoroutineTest.test_bpo_45813_2�sF��	��c��
�
�
�n�
-�
-��L�L��� �.��	�	��.�
-�s�A�A.	�'A.	c��QoU2oUOUO2UO2UOUO2P!)c�� �P!3hr
r(r(rrr��2CoroutineTest.test_cr_frame_after_close.<locals>.f�r�r�)�assertIsNotNoner�r�rbr`s&  r�test_cr_frame_after_close�'CoroutineTest.test_cr_frame_after_close�s;��	��c�����S�\�\�*��	�	�����#�,�,�'rc��``�U1QkoU1Qkn[OQ2nU2oUOP2oUO[2oUOV42P!)c��4: �R2EPiw�K
!K3hr
r(r�s�rr��6CoroutineTest.test_stack_in_coroutine_throw.<locals>.a��������9�9��9�r�c��4: �R2EPiw�K
!K3hr
r()r!s�rri�6CoroutineTest.test_stack_in_coroutine_throw.<locals>.b�r�r�c3� �[[O22w�P![c&[[O22w�P!h9h3hr
)r��	traceback�
extract_stackr�r(rrr!�6CoroutineTest.test_stack_in_coroutine_throw.<locals>.c�s@���
5��)�1�1�3�4�4��$�
5��)�1�1�3�4�4�
5�s*�A�!(�A�	A�"A�A�A�A)r/r�r3r�r�rp)r
r�r6�len_send�	len_throwrir!s&    @@r�test_stack_in_coroutine_throw�+CoroutineTest.test_stack_in_coroutine_throw�sX���	�	�
���	5�
�	5��s���9�9�T�?���J�J�0�1�	�����-rc�`�QQ2nU1Qko[U22vq#UOU,2UOU]*2P!)c�(`�\sQsQsnQsQsUsP!)�PCoroutineTest.test_call_generator_in_frame_clear.<locals>.CallGeneratorOnDealloci�c�,�[Q],22P!)c3�0�SF �Dpw�	J		P!3hr
r()rr*s& rr�kCoroutineTest.test_call_generator_in_frame_clear.<locals>.CallGeneratorOnDealloc.__del__.<locals>.<genexpr>�s������1�Q��s�)r<rs&r�__del__�XCoroutineTest.test_call_generator_in_frame_clear.<locals>.CallGeneratorOnDealloc.__del__�s���$���$�$rr()rrrrrrrrs@r�CallGeneratorOnDeallocr�s����
%�
%rrc�� : �R2o]*!3hr�r()rrs �rr6�>CoroutineTest.test_call_generator_in_frame_clear.<locals>.coro�s����(�*�C��s�)r:rp)r
r6r2r8rs&   @r�"test_call_generator_in_frame_clear�0CoroutineTest.test_call_generator_in_frame_clear�sB���	%�	%�	�$�D�F�+�������"�%������$rr()\rrrrr�r�r�r�r�r�r�r�r�r�r�r
rrr"r-r<rArHrPrVr\rpryr�r�r�r�r�r�r�r�r�r�r�rr
r%r/r8rJrcrvr�r�r�r�r�r�r�r�r�rrr3rArPr\rzr�r�r�r�r�r�r�r
rr7r@rJrRrXrargr�r�r�r�r�r�r�r�r�rrrrrs@rryrys�����0�M�"���:/�0
�� 
�!�,(G�T��
�
�,�"+�>�.&�P%�<.�.�+�<
���G�5��9�	8�	�7�,
5�
C��$� '�D$�$
.�	C�&�P,� ,� 
,��&�&K�4=!�@!�(D�4E�,�$!�*F3�P
<�>�(>�.Z&�x!�!�$@�('�.'�.F�*�@�<�<#�<
� �
"��
�&�4H�l�
�M�"<�B<�@��(�.�.
%�
%rryz0asyncio does not work under Emscripten/WASI yet.c�(`�\sQsQsnQsQsUsP!)�CoroAsyncIOCompatTesti�c��````�[OQ2nQQ[2n,nUU1QkQ2nUUUU1QkoRO2oRO	U2UOU22UO
2ROOP2UOR,QN2P!RcKJh9hSO
2ROOP2h9h)�asyncioc��\sQsQsQsP!)�9CoroAsyncIOCompatTest.test_asyncio_1.<locals>.MyExceptioni�r(r�r(rr�MyExceptionr�r�rrc�@:`�\sQsQsnUU1QksUU1QksQsUsP!)�0CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CMi�c��: �RO]2ROQ2EPiw�K
RO]2U!K3h)r��{�G�z�?)r2�sleep)r
rr7s&��rrU�;CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CM.__aenter__�s:�����
�
�a� ��m�m�D�)�)�)��
�
�a� ���*�s�(A�A�Ac��: �ROQ2EPiw�K
ROUO2P!K!3h)r )r!r2r)r
�exc_type�exc_val�exc_tbrr7s&&&&��rrY�:CoroAsyncIOCompatTest.test_asyncio_1.<locals>.CM.__aexit__	s/�����m�m�D�)�)�)��
�
�h�/�/�0�*�s�?�=�#?r(r�)rrr7s@��rrkr�s����
�
1�
1rrkc	���: �R29^tt^2EPiw�K
ROQ2EPiw�K
RgK!K)EPiw�K
%fhL9hROQ2P!3h)Nr �unreachable)r!r2)rkrrr7s����rr��/CoroAsyncIOCompatTest.test_asyncio_1.<locals>.f	sI�����t�t�t��m�m�D�)�)�)�!�!��)��t�t�t��
�M�M�-�(�sD�A1�<
�A1�A�>
�A�A1�A�A	�A�A	�A	�A1)r�r�r)
r�
import_moduler;�new_event_loop�set_event_loop�run_until_completer��events�_set_event_loop_policyrp)r
r��looprkrrr7s&  @@@@r�test_asyncio_1�$CoroAsyncIOCompatTest.test_asyncio_1�s���� �-�-�i�8��	�)�	���		1�		1�	)�	)��%�%�'�����t�$�	8��#�#�A�C�(�
�J�J�L��N�N�1�1�$�7�����!6�7��
�	��	��
�J�J�L��N�N�1�1�$�7�s*�&B=�=C�C�C
�C�C
�
-C7r()rrrrr2rrrs@rrr�s����%8�%8rrc�:`�\sQsQsnQsQsQsQsQsUs	P!)�OriginTrackingTesti	c��[O[O2O2oUOUO
1!r
)rr�getframeinfo�currentframe�f_back�filename�lineno)r
�infos& r�here�OriginTrackingTest.here	s4���#�#�G�$8�$8�$:�$A�$A�B���
�
�t�{�{�+�+rc	�``�[O2oQn[O]2RO[O2]2[O
R229^tt^2oRO
UO2PPP2[O]2RO[O2]2RO2vq4[O
R229^tt^2oROUOV4]*Q112PPP2[O]2RO[O2]2UU1QkoRO2vq4U2vvqgo[O
U29^tt^2ROUOVgQ1V4]*Q112PPP2[OQ2[O
R229^tt^2oRO][UO2t969%cQ6Lt2PPP2RO[29^tt^2[OP2PPP2RO[O2Q2[OU2P!)%fhCKS9h)%fhCK�9h)%fhCK,9h)%fhK�9h)%fhK�9h[OS2h9h)c�� �P!3hr
r(r(rr�corofn�7OriginTrackingTest.test_origin_tracking.<locals>.corofn!	r�r��test_origin_trackingc�4:�RO2R21!r
)r=)rAr
s��r�nested�7OriginTrackingTest.test_origin_tracking.<locals>.nested5	s����	�	��V�X�.�.rrEr�)
r>�#get_coroutine_origin_tracking_depth�#set_coroutine_origin_tracking_depthrprFrGrb�	cr_originr=rqr�rPr)	r
�
orig_depthr6�fnamer;rE�nested_fname�
nested_linenorAs	f       @rrC�'OriginTrackingTest.test_origin_tracking	s[����<�<�>�
�*	@�
�
�3�3�A�6����S�D�D�F��J��#�#�F�H�-�-���!�!�$�.�.�1�.�
�3�3�A�6����S�D�D�F��J� �I�I�K�M�E��#�#�F�H�-�-��� � ����#(�1�*�6L�"M�!O�Q�.�
�3�3�A�6����S�D�D�F��J�
/� �I�I�K�M�E�4:�H�1�
*�l�D��#�#�D�)�)�� � ����#/��"I�#(�1�*�6L�"M�"O�P�*�
�3�3�D�9��#�#�F�H�-�-������C����$7� >� >�$� >�?�.��"�"�:�.�.��7�7��;�/�
���S�D�D�F��M�
�3�3�J�?�G.�-�-��.�-�-��*�)�)��.�-��/�.��
�3�3�J�?�s��A!M�;K!�A8M�'K5�6BM�<*L	�&AM�',L�L� %M�L0�-M�!K2	�*K2	�,	M�5L	�>L	�	M�	L	�L	�	M�L-	�&L-	�(M�0M	�9M	�;M�Mc�:````	�Qn	RO2vqU	1QknU]*
oRO2vq4U1QknU]*
oUU1Qko[O2oU]QR	OQ02U]PO	QR	OQ0QQUQ	UQ
0Q,22U]PO	QR	OQ0QQUQ	UQ0Q
QUQ	UQ
0Q,22[O
U2P![O
S2h9h)c�� �P!3hr
r(r(rrrA�?OriginTrackingTest.test_origin_tracking_warning.<locals>.corofnM	r�r�c�:�R2!r
r()rAs�r�a1�;OriginTrackingTest.test_origin_tracking_warning.<locals>.a1Q	s
����8�Orc�:�R2!r
r()rSs�r�a2�;OriginTrackingTest.test_origin_tracking_warning.<locals>.a2V	s
����4�Krc�*:�[OU2RO[29^tt^2oR2[O
2PPP2RO
U[WO22P!)%fhK79hr
)	r>rHr�r�rrErpr��warning)�depth�msgrrVr
s&& ��rr��>OriginTrackingTest.test_origin_tracking_warning.<locals>.checkZ	s]����3�3�E�:��!�!�.�1�1�R����"�"�$�2�
���S�#�b�j�j�/�2�2�1�s�B�B	�B	zcoroutine 'z' was never awaitedz' 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
)r=r>rGrrorH)
r
�a1_filename�	a1_lineno�a2_filename�	a2_linenor�rJrSrVrAs
f      @@@r�test_origin_tracking_warning�/OriginTrackingTest.test_origin_tracking_warningL	s:���	�"&������	��Q��	�!%������	��Q��	�	3��<�<�>�
�	@��!�{�6�#6�#6�"7�7J�K�L��!�R�W�W��f�1�1�2�2G�H�@��;�-�x�	�{�)�D�6�	��
�
�!�R�W�W��f�1�1�2�2G�H�@��;�-�x�	�{�)�D�4��;�-�x�	�{�)�D�6�
��
�
�3�3�J�?��C�3�3�J�?�s
�(BD�Dc	�*�Qo[OoQ[m[O29^tt^2o[O
Q[129^tt^2U2o[U2o=[O2UOUOOQU02UOUOO[2PPP2PPP2[;[O
Q[129^tt^2U2[O2PPP2U[mP!)%fhKt9h)%fhK9h)%fhKC9hS[mh9h)c�� �P!3hr
r(r(rrrA�LOriginTrackingTest.test_unawaited_warning_when_module_broken.<locals>.corofnz	r�r�c��]]*!r�r(r�s&rr��NOriginTrackingTest.test_unawaited_warning_when_module_broken.<locals>.<lambda>	s��a��crzcoroutine .* was never awaitedr�)rB�_warn_unawaited_coroutinerr�r�check_warningsr�r�rErpr�r�r$r�)r
rA�orig_wucrr6r�s&     r�)test_unawaited_warning_when_module_broken�<OriginTrackingTest.test_unawaited_warning_when_module_brokenv	s5��	��5�5��	:�1A�H�.��3�3�5�5�� �/�/�;�(�*�+�+��x�� ��J�	���"�"�$�� � ����!6�!6�$.�.7�[�":�;�� � ����!7�!7�9J�K�+�6�"�2� �/�/�6��G�I�I����"�"�$�I�2:�H�.�/+�+��6�5��$I�I��2:�H�.�se�)F�%E�$A<E	� E�(2F�E2�7F�E
�E
�E�E/	�(E/	�*F�2F	�;F	�=F�
Fr()
rrrrr=rCrarkrrrs@rr5r5	s"����,�,@�\(@�T":�":rr5c�(`�\sQsQsnQsQsUsP!)�"UnawaitedWarningDuringShutdownTesti�	c�\�Qo[QU2Qo[QU2Qo[QU2P!)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)
r)r
rKs& r�&test_unawaited_warning_during_shutdown�IUnawaitedWarningDuringShutdownTest.test_unawaited_warning_during_shutdown�	s;��%��	��t�$�#��	��t�$�8��	��t�$rr()rrrrrprrrs@rrnrn�	s����%�%rrnzrequires _testcapic�4`�\sQsQsnQsQsQsQsUsP!)�CAPITesti�	c�n`�]QHGnU1QkoUOU2OP2]2P!)r��	awaitTypec��N: �R[],22oUEPiw�K
!K3hr�r���future�ats �rrl�%CAPITest.test_tp_await_1.<locals>.foo�	s!������a�S�	�]�F� �L�L�!�L�s�%�#�%)�	_testcapirvrpr3�r
rlrzs& @r�test_tp_await_1�CAPITest.test_tp_await_1�	s(���-�	"�	
�������D�)�1�-rc��]QHGoU[],22oUO[	UO22]2P!)rru)r|rvr�rpr<r)r
rzrys&  r�test_tp_await_2�CAPITest.test_tp_await_2�	s2��-��D�!��I�������f�.�.�0�1�1�5rc��`�]QHGnU1QkoUO[Q29^tt^2UO	U2OP2]2PPP2P!)%fhP!9h)rruc��:: �R]2oUEPiw�K
!K3hr�r(rxs �rrl�%CAPITest.test_tp_await_3.<locals>.foo�	s������U�F� �L�L�!�L�s���z+__await__.*must return an iterator, not int)r|rvr�r�rpr3r}s& @r�test_tp_await_3�CAPITest.test_tp_await_3�	s\���-�	"��
#�
#��H�J�J����S�U�Z�Z��-�q�1�J�J�J�J�s�'A�A/	�'A/	r()	rrrrr~r�r�rrrs@rrsrs�	s����.�6�	2�	2rrs�__main__)'rFr�rrr�r>r/r�unittestrB�testr�test.supportrr�test.support.script_helperrr|�ImportErrorrr r+r:r?�contextmanagerrF�TestCaserHrdry�skipIf�
is_emscripten�is_wasirr5rn�cpython_onlyrsrrrr(rr�<module>r�s������
�
������&�(�7���
�������&������b0��*�*�b0�J
@��)�)�@�,[%�H�%�%�[%�z6
������,�,�W�_�_�6��'8�H�-�-�'8�	�'8�T:��*�*�:�D%��):�):�%�*	���	����d�"�$8�9�2�x� � �2�:��2�:�Z���M�M�O���M���I��s�E<�<F	�F	�F	

Youez - 2016 - github.com/yon3zu
LinuXploit