403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/test/test_asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/test_asyncio/__pycache__/test_tasks.cpython-315.pyc
R
>lqj��c��Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]QH,Gs]QH(G
s
]PH8s]QH8Gs]QH8Gs]QHDGs]QHPGs]QHXGs]QH`GsQ	sQ
sQHQksQsQ
Q2sQQ2sQQ2s Qs!QQ2s"\OF\$\Q29%c
\$\Q2Q2QQ\ \"\OJ22s&\OF\$\Q29%c
\$\Q2Q2\!QQ\ \OJ222s'\OF\$\Q2Q2\!QQ\ \OJ222s(\OF\$\Q2Q2\!QQ \ \OJ222s)\OF\$\Q2Q2Q!Q"\ \OJ22s*\OF\$\Q2Q2Q#Q$\ \OJ22s+Q%Q&\ \"\OJ2s,\!Q'Q(\ \OJ22s-\OF\$\Q2Q2Q)Q*\OJ22s.Q+Q,2s/Q-Q.\OJ\/2s0\OF\$\Q/2Q2Q0Q1\OJ\/22s1Q2Q32s2Q4Q5\2\OJ2s3\OF\$\Q29%c
\$\Q62Q2Q7Q8\2\OJ22s4Q9Q:\OJ2s5Q;Q<2s6Q=Q>\6\OJ2s7Q?Q@\6\OJ2s8QAQB\OJ2s9QCQD\OJ2s:QEQF\OJ2s;\<QG6Xc\Oz2P!P!)IzTests for tasks.py.)�mock)�GenericAlias)�futures)�tasks)�utils)�support)�assert_python_ok)�ignore_warningsc�F�[OOP2P!�N)�asyncio�events�_set_event_loop_policy���1C:\Python315\\Lib\test\test_asyncio\test_tasks.py�tearDownModulers���N�N�)�)�$�/rc�� �P!3hr
rrrr�coroutine_functionrs������c��U%cQU*oL	QU*oUd.UP*oQU8QU8QU8QU]*8QU]*80
!QU8QU8QU8Q0!)z%sz%s, definedzcoro=<z() z at z
> created at �:�>r)�qualname�state�src�source_traceback�	generator�frames&&&&& r�format_coroutiner"s[����u�����%���#� ��$���U�C��q���5��8�=�	>�$�
*2�5�#�>�>rc�v�]oUOoUeL
SoU]*
oJ[U2UOU1!)zH
Return information about the innermost exception context in the chain.
)�__context__�type�args)�exc�depth�contexts&  r�get_innermost_contextr&/s@��
�E�
��/�/���?����
��
����I�s�x�x��'�'rc�.`�\sQs]?snQsQsQsUsP!)�Dummyc��Q!)z<Dummy>r��selfs&r�__repr__�Dummy.__repr__As��rc��P!r
r)r+r"s&*r�__call__�Dummy.__call__D���rr)�__name__�
__module__�__qualname__�__firstlineno__r,r/�__static_attributes__�__classdictcell__��
__classdict__s@rr(r(?s�����
�
rr(c�:`�\sQs]HsnQsQsQsQsQsUs	P!)�CoroLikeObjectc��[]*2g��*)�
StopIteration)r+�vs&&r�send�CoroLikeObject.sendIs
���B��rc��P!r
r)r+r#s&*r�throw�CoroLikeObject.throwLr1rc��P!r
rr*s&r�close�CoroLikeObject.closeOr1rc��U!r
rr*s&r�	__await__�CoroLikeObject.__await__Rs���rr)
r2r3r4r5rArDrGrJr6r7r8s@rr;r;Hs���� �
�
��rr;c�``�\sQs]VsnPsPsPsQ�QksQsU1Qks	Qs
QsQsQs
QsQ	sQ
sQsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Qs%Q s&Q!s'Q"s(Q#s)Q$s*Q%s+Q&s,Q's-Q(s.Q)s/Q*s0Q+s1Q,s2Q-s3Q.s4Q/s5Q0s6Q1s7Q2s8Q3s9Q4s:Q5s;Q6s<Q7s=Q8s>Q9s?Q:s@Q;sAQ<sBQ=sCQ>sDQ?sEQ@sFQAsGQBsHQCsIQDsJQEsKQFsLQGsMQHsNQIsOQJsPQKsQQLsRQMsSQNsTQOsU\V\WQP5QQ2sX\V\WQP5QR2sYQSsZQTs[QUs\QVs]QWs^QXs_QYs`QZsaQ[sbQ\scQ]sdQ^seQ_sfQ`sgQashQbsiQcsjQdskQeslQfsmQgsnQhsoQisp\qO�Qj2Qk2ssQlstQmsuQnsvQosw\qO�Qj2Qp2sxQqsyQrszQss{Qts|Qus}Qvs~QwsQxs�Qys�Qzs�Q{s�Q|s�Q}s�Q~s�Qs�Q�s�Q�s�Q�s�Us�U9s�!)��
BaseTaskTestsc�@�UOOV!V4UQ5!))�loop�namer%�eager_start)�	__class__�Task)r+rO�cororPr%rQs&&&&&&r�new_task�BaseTaskTests.new_task\s���~�~�"�"�4��\g�"�h�hrc�<�UOOUQ5!��rO)rR�Future�r+rOs&&r�
new_future�BaseTaskTests.new_future_s���~�~�$�$�$�$�/�/rc��:`�[RR_2RO2RmROO	RO
2U1QkROmP!)c�<:�RORO2!r
)r\rOr*s�r�<lambda>�%BaseTaskTests.setUp.<locals>.<lambda>fs���$�/�/�$�)�)�*Dr)�super�setUp�
new_test_looprO�set_task_factoryrU�
create_future�r+rRsf�rrc�BaseTaskTests.setUpbs>���
��
���&�&�(��	��	�	�"�"�4�=�=�1�"D��	�	�rc��UOO[*oUOUO[12UOU[2P!r
)rRrS�str�assertEqual�__args__�assertIsInstancer�r+�tasks& r�test_generic_alias� BaseTaskTests.test_generic_aliashs<���~�~�"�"�3�'����������/����d�L�1rc��QoUOUOU22oUOUQ2UOUOP2UOQ2UOUOQ2UO
[O29^tt^2oUOOU2PPP2UOQWOO]*2P!)%fhK?9h)c�� �P!3hr
rrrrrT�;BaseTaskTests.test_task_cancel_message_getter.<locals>.coron�����r�_cancel_message�
my message)rUrO�
assertHasAttrrkrv�cancel�assertRaisesr�CancelledError�run_until_complete�	exceptionr"�r+rT�t�cms&   r�test_task_cancel_message_getter�-BaseTaskTests.test_task_cancel_message_getterms���	��M�M�$�)�)�T�V�,�����1�/�0�����*�*�D�1�	���������*�*�L�9�
�
�
�w�5�5�
6�
6�"��I�I�(�(��+�7�	
����r�|�|�'8�'8��';�<�7�
6�s�(C;�;D	�D	c���QoUOUOU22oUOQ2QUmUO	UOQ2UO[O29^tt^2oUOOU2PPP2UO	QWOO]*2P!)%fhK?9h)c�� �P!3hr
rrrrrT�;BaseTaskTests.test_task_cancel_message_setter.<locals>.coro}rurrwzmy new message)rUrOryrvrkrzrr{r|r}r"r~s&   r�test_task_cancel_message_setter�-BaseTaskTests.test_task_cancel_message_setter|s���	��M�M�$�)�)�T�V�,��	�����,�������*�*�,<�=�
�
�
�w�5�5�
6�
6�"��I�I�(�(��+�7�	
���)�2�<�<�+<�+<�Q�+?�@�7�
6�s�C�C$	�C$	c
�`�QQ2nU1QkoUOO[O[	]d2Tt,tFD#p OUOU22MJ%	to2P!ttoh)c�(`�\sQs]�snQsQsUsP!)�1BaseTaskTests.test_task_del_collect.<locals>.Evilc�2�[O2P!r
)�gc�collectr*s&r�__del__�9BaseTaskTests.test_task_del_collect.<locals>.Evil.__del__�s���
�
�rr�r2r3r4r5r�r6r7r8s@r�Evilr��s����
�
rr�c��: �R2!3hr
r)r�s�r�run�0BaseTaskTests.test_task_del_collect.<locals>.run�s
�����6�M�s�	)rOr|r�gather�rangerU)r+r��_r�s&  @r�test_task_del_collect�#BaseTaskTests.test_task_del_collect�sa���	�	�	�	
�	�	�$�$��N�N�9>�s���9C�A�
�
�d�i�i���/���
�	��s�+A;c�\�[O2oUOU2oQoUO[Q29^tt^2UO
O
UU22PPP2UO2P!)%fhK"9hSO2h9h)c��, �UEPiw�K
P!K3hr
r��futs&rr��1BaseTaskTests.test_other_loop_future.<locals>.run�s����I�I�s���zTask .* got Future .* attached)r�new_event_loopr\�assertRaisesRegex�RuntimeErrorrOr|rG)r+�
other_loopr�r�s&   r�test_other_loop_future�$BaseTaskTests.test_other_loop_future�s����+�+�-�
��o�o�j�)��	�	��'�'��(I�K�K��	�	�,�,�S��X�6�K�
����	K�K��
����s)�B�
"B�,B�B	�B	�B�B+c�`�U1Qko[OU2UOQ5nUO[Q29^tt^2UOOR2PPP2P!)%fhP!9h)c��.: �REPiw�K
P!K3hr
r�ros�r�test�6BaseTaskTests.test_task_awaits_on_itself.<locals>.test�s
�����J�J�����rYzTask cannot await on itself)r�
ensure_futurerOr�r�r|)r+r�ros& @r�test_task_awaits_on_itself�(BaseTaskTests.test_task_awaits_on_itself�sg���	��$�$�T�V�$�)�)�<��
�
#�
#�L�$A�C�C��I�I�(�(��.�C�C�C�C�s�A4�4B	�=B	c��QoUOUOU22oUOOU2UOUO	22UOUO
2Q2UOUOUO2UOUO2UO2[O2oUOU2UOV122oUOUOU2UOU2UO2P!)c�� �Q!3h��okrrrr�notmuch�.BaseTaskTests.test_task_class.<locals>.notmuch������rr�)rUrOr|�
assertTrue�donerk�result�assertIs�_loop�get_looprr��set_event_looprG)r+r�rrOs&   r�test_task_class�BaseTaskTests.test_task_class�s���	��M�M�$�)�)�W�Y�/���	�	�$�$�Q�'��������!��������T�*��
�
�a�g�g�t�y�y�)��
�
�a�j�j�l�D�I�I�.��%�%�'�����D�!��M�M�$��	�*���
�
�a�g�g�t�$�����"��
�
�rc�F`�Qn[OR2UOQ5oUOUOUO2UOOU2UO
UO22UOUO2Q2R2oUOUO2UO[Q29^tt^2[OU2PPP2U1QkoUOOU22oUOUOUO2UOOU2UO
UO22UOUO2Q2[OUO2UO[OP2[OR22oUOUOUO2UOOU2UO
UO22UOUO2Q2P!)%fhCK�9h)c�� �Q!3hr�rrrrr��;BaseTaskTests.test_ensure_future_coroutine.<locals>.notmuch�r�rrYr��no current event loopc��D: �[OR22!3hr
)rr�)r�s�rr��8BaseTaskTests.test_ensure_future_coroutine.<locals>.test�s�����(�(���3�3��� )rr�rOr�r�r|r�r�rkr��
addCleanuprGr�r�r�)r+r�ar�r�s&   @r�test_ensure_future_coroutine�*BaseTaskTests.test_ensure_future_coroutine�s����	��!�!�'�)�$�)�)�<���
�
�a�g�g�t�y�y�)��	�	�$�$�Q�'��������!��������T�*��I�������� �
�
#�
#�L�2I�
J�
J��!�!�!�$�K�	4��I�I�(�(���0���
�
�a�g�g�t�y�y�)��	�	�$�$�Q�'��������!��������T�*�	���t�y�y�)�����.�.��5��!�!�'�)�,���
�
�a�g�g�t�y�y�)��	�	�$�$�Q�'��������!��������T�*�%K�
J�
J�s�-J�J 	�J 	c���UOUO2oUOQ2[OU2oUOOU2UO
UO22UOUO2Q2UOV!2[O2oUOU2UO[29^tt^2[OVQ5oPPP2UO2[OVOQ5oUOV!2P!)%fhKT9h)�korY)r\rO�
set_resultrr�r|r�r�rkr�r�r�r�rz�
ValueErrorrG)r+�f_orig�frOs&   r�test_ensure_future_future�'BaseTaskTests.test_ensure_future_future�s���������+�����$���!�!�&�)���	�	�$�$�Q�'��������!��������T�*��
�
�a� ��%�%�'�����D�!�
�
�
�z�
*�
*��%�%�f�8�A�+�	
�
�
���!�!�&�y�y�9���
�
�a� �
+�
*�s�2E�E&	�E&	c���QoUOUOU22o[OU2oUOO	U2UOUO
22UOUO2Q2UOV22[O2oUOU2UO[29^tt^2[OV$Q5oPPP2UO2[OV OQ5oUOV22P!)%fhKT9h)c�� �Q!3hr�rrrrr��6BaseTaskTests.test_ensure_future_task.<locals>.notmuch�r�rr�rY)rUrOrr�r|r�r�rkr�r�r�r�rzr�rG)r+r��t_origrrOs&    r�test_ensure_future_task�%BaseTaskTests.test_ensure_future_task�s���	����t�y�y�'�)�4���!�!�&�)���	�	�$�$�Q�'��������!��������T�*��
�
�a� ��%�%�'�����D�!�
�
�
�z�
*�
*��%�%�f�8�A�+�	
�
�
���!�!�&�y�y�9���
�
�a� �
+�
*�s�*E�E	�E	c��QQ2oQo[O2oUOU2[OUU22UQ5oUO	U2UOUO
2Q2P!)c�.`�\sQsQsnQsQsQsUsP!)�6BaseTaskTests.test_ensure_future_awaitable.<locals>.Aw�
c��VmP!r
�rT�r+rTs&&r�__init__�?BaseTaskTests.test_ensure_future_awaitable.<locals>.Aw.__init__s�� �	rc�8�UOO2!r
)rTrJr*s&rrJ�@BaseTaskTests.test_ensure_future_awaitable.<locals>.Aw.__await__
s���y�y�*�*�,�,rr�)r2r3r4r5r�rJr6r7r8s@r�Awr�
s����
!�
-�
-rr�c�� �Q!3hr�rrrrrT�8BaseTaskTests.test_ensure_future_awaitable.<locals>.coror�rrYr�)rr�r�r�r|rkr�)r+r�rTrOr�s&    r�test_ensure_future_awaitable�*BaseTaskTests.test_ensure_future_awaitable	sk��	-�	-�	��%�%�'�����D�!��#�#�B�t�v�J�T�:������$��������t�,rc��QQ2o[O2oUOU2[OU2UQ5oUO	U2UOUO
22UOUO2Q2UOUO2[O2UO2P!)c�(`�\sQsQsnQsQsUsP!)�;BaseTaskTests.test_ensure_future_task_awaitable.<locals>.Aw�c�P�[O]QQ5O2!)�r��r�)r�sleeprJr*s&rrJ�EBaseTaskTests.test_ensure_future_task_awaitable.<locals>.Aw.__await__s���}�}�Q�t�4�>�>�@�@rr)r2r3r4r5rJr6r7r8s@rr�r�s����
A�
Arr�rYr�)rr�r�r�r|r�r�rkr�rm�get_coro�types�
CoroutineTyperG)r+r�rOros&   r�!test_ensure_future_task_awaitable�/BaseTaskTests.test_ensure_future_task_awaitables���	A�	A��%�%�'�����D�!��$�$�R�T��5������%�����	�	��$���������-����d�m�m�o�u�/B�/B�C��
�
�rc��UO[29^tt^2[OQ2PPP2P!)%fhP!9hr�)rz�	TypeErrorrr�r*s&r�test_ensure_future_neither�(BaseTaskTests.test_ensure_future_neither's0��
�
�
�y�
)�
)��!�!�$�'�*�
)�
)�
)�s�A�A	�	A	c�*�[O2oUOUO2oUO	[
Q29^tt^2[OV!Q5PPP2UO2P!)%fhK"9h)zRThe future belongs to a different loop than the one specified as the loop argumentrY)rr�r\rOr�r�r�rG)r+rOr�s&  r�test_ensure_future_error_msg�*BaseTaskTests.test_ensure_future_error_msg+sg���%�%�'���O�O�D�I�I�&��
�
#�
#�J�18�9�9�
�!�!�!�/�9�	
�
�
��	9�9�s�B�B	�B	c�~````�PnU1QknUU1QknUUU1QkoROOU22P!)Nc��8: �R2EPiw�K
P!K3hr
r)�bars�r�foo�)BaseTaskTests.test_get_stack.<locals>.foo7s�����%�K�K�s�
��c��Z: �RO]Q5oROU]*OOQ2Po[O
2oRO
]UQ5UO]2UO2oROUQ2P!Poh9h3h)�)�limitr�)r�filezfoo\(\) running)
�	get_stackrk�f_code�co_name�io�StringIO�print_stack�seek�read�assertRegex)r�r�tb�Tr+s   ��rr��)BaseTaskTests.test_get_stack.<locals>.bar:s��������!��$�A�
�� � ��1����!4�!4�e�<����;�;�=�D�
�M�M���M�-��I�I�a�L�����B����R�!3�4����s�B+�-B$�AB+�$B(�(B+c��|: �[OR2ROQ5nREPiw�K
P!K3hrX)rr�rO)rr�r+s���r�runner�,BaseTaskTests.test_get_stack.<locals>.runnerIs%�����%�%�c�e�$�)�)�<�A��G�G�s�/<�:�<�rOr|)r+rrr�r�sf @@@r�test_get_stack�BaseTaskTests.test_get_stack4s-�����	�
	5�	�
	
�	�	�$�$�V�X�.rc���UOOP
2QoUOUOQ2UO	UO
Q2UOUO[2[OU2vq#U8QU80oU2oQoUOUOQ2UOUO
U2UOUOU2oUO[22[UQUUOP	Q5oUO[U2QU*2UO2UO[U2Q	U*2UO!["O$UOO&U2[UQ
UUO2oUO[U2QU*2UOUOU22oUOO'U2[UQ
UUO2oUO[U2QU*2P!)
Fc�� �Q!3h��abcrrrrr��-BaseTaskTests.test_task_repr.<locals>.notmuchS�����rr�z#\w+.test_task_repr.<locals>.notmuchrz-BaseTaskTests.test_task_repr.<locals>.notmuch�running)rz0<Task pending name='TestTask' %s cb=[<Dummy>()]>z3<Task cancelling name='TestTask' %s cb=[<Dummy>()]>r�z#<Task cancelled name='TestTask' %s>z/<Task finished name='TestTask' %s result='abc'>)rO�	set_debugrkr2r
r4r3�
test_utils�get_function_sourcerU�add_done_callbackr(r�_source_traceback�reprryrzrr{r|)	r+r��filename�linenor�gen�
coro_qualnamerrTs	&        r�test_task_repr�BaseTaskTests.test_task_reprPs����	�	���E�"�	�	
����)�)�9�5�����-�-�?�	A�����+�+�X�6�%�9�9�'�B���!�6�*���i��G�
�������y�1�����)�)�=�9�
�M�M�$�)�)�S�)��	���E�G�$��
�y�#� !� 3� 3�t�E������a��K�d�R�	T�	
���
�����a��N�QU�U�	W�	
���'�0�0��)�)�6�6��	;��
�v�s� !� 3� 3�5������a��>��E�	G�
�M�M�$�)�)�W�Y�/���	�	�$�$�Q�'��
�v�s� !� 3� 3�5������a��J�T�Q�	Src��QoUOUOU2P2oUOUOU2P2oUO[U2[U22[O
Q[U22oUO
U2[O
Q[U22oUO
U2UO[UO]22[UO]222UOOU2UOOU2P!)c�� �]{!3h��{rrrrr��;BaseTaskTests.test_task_repr_autogenerated.<locals>.notmuch������rz ^<Task pending name='Task-(\d+)')rUrO�assertNotEqualr#�re�match�assertIsNotNone�
assertLess�int�groupr|)r+r��t1�t2�match1�match2s&     r�test_task_repr_autogenerated�*BaseTaskTests.test_task_repr_autogenerated�s���	��]�]�4�9�9�g�i��
6��
�]�]�4�9�9�g�i��
6�����D��H�d�2�h�/����=�t�B�x�H�����V�$����=�t�B�x�H�����V�$�	
����F�L�L��O�,�c�&�,�,�q�/�.B�C��	�	�$�$�R�(��	�	�$�$�R�(rc�,�QoUOUOU2QQ5oUOUO2Q2UO	Q2UOUO2Q2UOOU2P!)c�� �]{!3hr,rrrrr��8BaseTaskTests.test_task_set_name_pylong.<locals>.notmuch�r/ri�h�:�rP�	987654321i�[�	123456789)rUrOrk�get_name�set_namer|�r+r�rs&  r�test_task_set_name_pylong�'BaseTaskTests.test_task_set_name_pylong�sm��	�
�M�M�$�)�)�W�Y�Y�M�?���������{�3�	�
�
�9���������{�3��	�	�$�$�Q�'rc���QoUOUOU22oUO].2UOUO	2Q2UOOU2P!)c�� �]{!3hr,rrrrr��:BaseTaskTests.test_task_repr_name_not_str.<locals>.notmuch�r/rz{6})rUrOrDrkrCr|rEs&  r�test_task_repr_name_not_str�)BaseTaskTests.test_task_repr_name_not_str�sT��	�
�M�M�$�)�)�W�Y�/��	�
�
�A�3���������u�-��	�	�$�$�Q�'rc	���UOOP
2QoUOUO2oUOUOUU22o[O
UO2UO
[U2Q[O[U22*2UOP2UOOU2P!)Fc��( �UEPiw�K
!K3hr
rr�s&r�wait_for�7BaseTaskTests.test_task_repr_wait_for.<locals>.wait_for�s����9�9��9�����z<Task .* wait_for=%s>)rOrr\rUr�run_brieflyr
r#r1�escaper�r|)r+rOr�ros&   r�test_task_repr_wait_for�%BaseTaskTests.test_task_repr_wait_for�s����	�	���E�"�	��o�o�d�i�i�(���}�}�T�Y�Y���
�6�����t�y�y�)�����d��0�2�9�9�T�#�Y�3G�G�	I�	���t���	�	�$�$�T�*rc�``�UU1QkoQnQnU2oUOUOOU2Q2P!)c��j: �R2EPiw�K
oR2EPiw�K
oV*!KK3hr
r)r��b�inner1�inner2s  ��r�outer�-BaseTaskTests.test_task_basics.<locals>.outer�s+�����h���A��h���A��3�J���s�
3�/�3�1�3�3c�� �]*!3hr=rrrrrY�.BaseTaskTests.test_task_basics.<locals>.inner1������rc�� �Q!3h)��rrrrrZ�.BaseTaskTests.test_task_basics.<locals>.inner2�r�ri)rkrOr|)r+r[rrYrZs&  @@r�test_task_basics�BaseTaskTests.test_task_basics�s:���	�
	�	�
�G��������5�5�a�8�$�?rc�```�[O2nROR2QnUUU1QkoRORU22oRO	U2RO2P!RO2h9h)c�� �[g3hr
�r�rrr�raise_error�FBaseTaskTests.test_exception_chaining_after_await.<locals>.raise_error�s�������
c��: �[]2g[c�oRORR22oSEPiw�K
Po=P![choRO[	S2[
2SOoRO[	S2SO1[Q12Po=Po=P!Po=hh9hPo=hh9h3h)��rl)�KeyError�	ExceptionrUrkr!r�r r")r#ro�chainedrOrhr+s   ���rr��>BaseTaskTests.test_exception_chaining_after_await.<locals>.run�s�����

*��q�k�!���
*��}�}�T�;�=�9��*��J�J�J�� �*��$�$�T�#�Y�
�;�!�o�o�G��$�$�d�7�m�W�\�\�%B�!�4�(�*�*��*��	
*�sc�C��	C�C�B<�A�>�A�C�	B9�B9�AB4�*B<�.C�4B9�9B<�<C�C)rr�r�rUr|rG)r+r�rorOrhsf  @@r�#test_exception_chaining_after_await�1BaseTaskTests.test_exception_chaining_after_await�sc����%�%�'�����D�!�	�	*�	��=�=��s�u�-�D��#�#�D�)��J�J�L��D�J�J�L�s�(A1�1Bc�8````�Pn[O2nROR2QnUUUU1QkoRORU22oRO	U2RO2RO
RP
2P!RO2h9h)Nc�� �Ug3hr
r)r#s&r�process_exc�YBaseTaskTests.test_exception_chaining_after_await_with_context_cycle.<locals>.process_exc�s
����I�rc��: �[Q2g[ccoRORRS22oSEPiw�K
Po=P![c$oXOInPSmPo=Po=P!Po=hh9hPo=hh9h3h�r�)rnrorU�
BaseExceptionr )r#ro�	has_cyclerOrvr+s  ����rr��QBaseTaskTests.test_exception_chaining_after_await_with_context_cycle.<locals>.run�sk����	
+��s�m�#���
+��}�}�T�;�s�+;�<��+��J�J�J��$�+�!$���!7�I�&*�C�O�O��+��	
+�sb�B��	A>�A>�A9�A�?�A�B�	A6�A6�A1�'A9�+B�1A6�6A9�9A>�>B)rr�r�rUr|rGrk)r+r�ror{rOrvsf  @@@r�6test_exception_chaining_after_await_with_context_cycle�DBaseTaskTests.test_exception_chaining_after_await_with_context_cycle�s�����	��%�%�'�����D�!�	�	+�	+�	��=�=��s�u�-�D��#�#�D�)��J�J�L�����E�*��
�J�J�L�s�(B�Bc��[O2oQoUOV22oUOUO	22UOQ[
U22UOUO22UOUO	22UOQ[
U22UOUO22UO[O29^tt^2UOU2PPP2UO2P!)%fhK"9hSO2h9h)c��T �[O]
2EPiw�K
P!K3h��
�rr�rrrro�+BaseTaskTests.test_cancelling.<locals>.task	�����-�-��#�#�#���(�&�(� cancelling )rr�rU�assertFalse�
cancelling�assertNotInr#r�ry�assertInrzr{r|rG�r+rOrors&   r�test_cancelling�BaseTaskTests.test_cancellings����%�%�'��	$�	��
�
�d�D�F�+�A����Q�\�\�^�,����^�T�!�W�5��O�O�A�H�H�J�'��O�O�A�L�L�N�+��M�M�.�$�q�'�2�

�O�O�A�H�H�J�'��"�"�7�#9�#9�:�:��'�'��*�;�
�J�J�L�;�:��
�J�J�L�s*�C/E	�
D6�E	�6E	�?E	�E	�	Ec�n`�[O2oU1QkoROV22oUO[OQ22ROUO
22ROQ[U22ROUO2]2ROUO22UO[OQ22ROQ[U22ROUO2]2ROUO22ROUO
22ROUO2]2ROUO22RO[O29^tt^2UOU2PPP2ROUO22ROUO!22UO#2ROUO22ROUO!22UO%2P!)%fhK�9hSO%2h9h)c��: �[O]
2EPiw�K
P!K[OcDRO2O	2[O]
2EPiw�K
P!h9h3hr�)rr�r{�current_task�uncancelr*s�rro�/BaseTaskTests.test_uncancel_basic.<locals>.task!sX����
(��m�m�B�'�'�'���)�)�
(��!�!�#�,�,�.��m�m�B�'�'�'�
(�sB�B�*�(�*�B�*�B�9B�7A;�8B�>B�B�B�{�G�z�?r�)rr�rUr|r�r�ryr�r#rkr�r��	cancelledr�rzr{r�r�rGr�sf   r�test_uncancel_basic�!BaseTaskTests.test_uncancel_basics�����%�%�'��	(�	��
�
�d�D�F�+�A��#�#�G�M�M�$�$7�8�
�O�O�A�H�H�J�'��M�M�.�$�q�'�2����Q�\�\�^�Q�/����Q�[�[�]�+��#�#�G�M�M�$�$7�8�
���^�T�!�W�5����Q�\�\�^�Q�/����Q�[�[�]�+�
�O�O�A�H�H�J�'����Q�\�\�^�Q�/����Q�[�[�]�+��"�"�7�#9�#9�:�:��'�'��*�;��O�O�A�K�K�M�*��O�O�A�F�F�H�%�
�J�J�L��O�O�A�K�K�M�*��O�O�A�F�F�H�%��J�J�L�;�:��
�J�J�L�s+�F8J"�J�)BJ"�J	�J	�J"�"J4c�`�[O2oQU1QkkoROVQQQ52oUOU2vqEoRO	U2ROU2RO	U2RO
UO2]2ROV]QQ52oUOU2vqEoROU2RO	U2RO	U2RO
UO2]2UO2P!SO2h9h)c�2�U]6�cPgQ[Q[-!)�r��timeout)�float)�formats"r�__annotate__�]BaseTaskTests.test_uncancel_structured_blocks.<locals>.make_request_with_timeout.__annotate__Xs��>	L�>	L�e�>	L�e�>	Lrc��:`` �R	O2nRO2oP
nP
oP
oUU1QkoUOV2o[OU2EPiw�K
P	oUO2R%cLRO
2]6Xc7[[O22[OIc[gP	o[O]2EPiw�K
RV41!K�SO2R%cNRO
2]6Xc8[[O22[OIc[ghhh9h[cR	OR2K�h9hK�3h)Fc�.:�P	nRO2P!�T�ry)ro�	timed_outs��r�
on_timeout�dBaseTaskTests.test_uncancel_structured_blocks.<locals>.make_request_with_timeout.<locals>.on_timeout`s��� �	����
r)
r�r��
call_laterrr�ryr�r!�sysr}r{�TimeoutErrorr�)
r�r�rO�structured_block_finished�outer_code_reachedr��timeout_handleror�r+s
$$     @@�r�make_request_with_timeout�PBaseTaskTests.test_uncancel_structured_blocks.<locals>.make_request_with_timeoutXsE�����$�$�&�D��=�=�?�D��I�(-�%�!&��
�
"�_�_�W�A�N�+
+�(+�!�-�-��.�.�.�04�-�"�)�)�+�!� �M�M�O�q�0� �����1�W�5K�5K�K�>+�*�
"&���-�-��"�"�"��7�K�K�[/��#�)�)�+�!� �M�M�O�q�0� �����1�W�5K�5K�K�>+�*�?L�1�"��D �
+����	�*�
+��

#�s��AF�C4�!C2�"C4�)E�E�/E�E�F�(F�)	F�2C4�4E�
E�"/E�	E�E�	E=�(E=�:F�<E=�=F�$@皙�����?)r�r�)	rr�rUr|r�r�rkr�rG)r+rOr�r7r�r�r�r8sf       r�test_uncancel_structured_blocks�-BaseTaskTests.test_uncancel_structured_blocksHs ����%�%�'��>	L�>	L�@	����t�%>�T�SV�%W�X�B��'�'��+�
E�I�2D�
�O�O�I�&����6�7��O�O�.�/�
���R�]�]�_�a�0����t�%>�Q�PT�%U�V�B��'�'��+�
E�I�2D�
���Y�'��O�O�5�6��O�O�.�/����R�]�]�_�a�0��J�J�L��D�J�J�L�s�DD4�4Ec�
`�U1Qko[O2o[OUQ5nUOV!22oUO	[O
]22RO
P2UO2UOUO2]2UOUO2UO2UOUO2]2UOUO2UO	U2oUOU]*2UO2P!SO	S2oSOS]*2SO2h9h)c��.: �REPiw�K
]*!K3hr
rr�s�rrT�<BaseTaskTests.test_uncancel_resets_must_cancel.<locals>.coro�s�����I�I��
�r�rY)rr�rZrUr|r�r�ryrkr�r��_must_cancelr�r�rG)r+rTrOro�resr�s&    @r� test_uncancel_resets_must_cancel�.BaseTaskTests.test_uncancel_resets_must_cancel�s���	��%�%�'���n�n�$�'���}�}�T�4�6�*������
�
�a� 0�1����t��	��K�K�M����T�_�_�.��2��O�O�D�-�-�.��M�M�O����T�_�_�.��2����T�.�.�/��)�)�$�/�C����S�"�%��J�J�L���)�)�$�/�C����S�"�%��J�J�L�s
�BE
�
5Fc�`�U1QkoROU2oQoROV#22oUOUO2RO	[
O29^tt^2UOU2PPP2ROUO22ROUO22ROUO22P!)%fhKo9h)c3�J: �Pw�	oROQU2]w�	P!3h�Nr���assertAlmostEqual��whenr+s �rr&�&BaseTaskTests.test_cancel.<locals>.gen�� �����D��"�"�4��.��G��� #c��T �[OQ2EPiw�K
]!K3h)r�r�rrrro�'BaseTaskTests.test_cancel.<locals>.task�s����-�-��%�%�%��
&�r�)rdrU�	call_soonryrzrr{r|r�r�r�r�)r+r&rOrorsf    r�test_cancel�BaseTaskTests.test_cancel�s����	�
�!�!�#�&��	�
�M�M�$���'�����q�x�x� �
�
�
�w�5�5�
6�
6��#�#�A�&�7��������!�������
�&��������$�	7�
6�s�5C.�.C>	�7C>	c�```	`
�,QNoSFCD
vnoRORQ59^tt^2[O2n	ROR	2Qn
UU	UU
1QkoRO	R	U22oRO[O29^tt^2oR	OU2PPP2WOoROUOU2[U2oROU[OU]12PPP2CJ
	P!)%fhKu9h)%fhCJ69h)N��cancel_argsc��T �[O]
2EPiw�K
P!K3hr�r�rrrr��HBaseTaskTests.test_cancel_with_message_then_future_result.<locals>.sleep�����!�-�-��+�+�+�r�c��: �RORR22o[O]2EPiw�K
UOR[OU,2EPiw�K
vqUO2P!KJK3h�r�)rUrr�ry�waitr��ror��pendingr�rOr+r�s   ����rrT�GBaseTaskTests.test_cancel_with_message_then_future_result.<locals>.coro�s_�����=�=��u�w�7�D�!�-�-��*�*�*��K�K��-�*1�,�,��v�*>�$>�$>�M�D��K�K�M�+�$>��!�3B�B�1B�(B�)B�B�)rr)r
r)�rwr�)��r���subTestrr�r�rUrzr{r|r}rkr"r&�r+�cases�
expected_argsrTror�r#�actualr�rOr�sf       @@@r�+test_cancel_with_message_then_future_result�9BaseTaskTests.test_cancel_with_message_then_future_result�s����
��+0�&�K�����+��6�6��-�-�/���#�#�D�)�,�"�"��}�}�T�4�6�2���&�&�w�'=�'=�>�>�"��+�+�D�1�?��l�l��� � ����=�9�.�s�3��� � ���+�+�]�A�>�@�+7�6�+0� ?�>��7�6�6��1�A1D1	�D
�1AD1	�D.�'D.�)D1	�1E
�:E
c�```	`
�,QNoSFCD
vnoRORQ59^tt^2[O2n	ROR	2Qn
UU	UU
1QkoRO	R	U22oRO[O29^tt^2oR	OU2PPP2WOoROUOU2[U2oROU[OU]12PPP2CJ
	P!)%fhKu9h)%fhCJ69h)Nr�c��T �[O]
2EPiw�K
P!K3hr�r�rrrr��KBaseTaskTests.test_cancel_with_message_then_future_exception.<locals>.sleepr�r�c��: �RORR22o[O]2EPiw�K
UOR[OU,2EPiw�K
vqUO2P!KJK3hr��rUrr�ryr�r}r�s   ����rrT�JBaseTaskTests.test_cancel_with_message_then_future_exception.<locals>.coros`�����=�=��u�w�7�D�!�-�-��*�*�*��K�K��-�*1�,�,��v�*>�$>�$>�M�D��N�N�$�+�$>�r�r�r�r�sf       @@@r�.test_cancel_with_message_then_future_exception�<BaseTaskTests.test_cancel_with_message_then_future_exceptions����
��+0�&�K�����+��6�6��-�-�/���#�#�D�)�,�%�%��}�}�T�4�6�2���&�&�w�'=�'=�>�>�"��+�+�D�1�?��l�l��� � ����=�9�.�s�3��� � ���+�+�]�A�>�@�+7�6�+0� ?�>��7�6�6�r�c�````�[O2nROR2RO2nU1QknUUUU1QkoRO	RU22oRO[29^tt^2oROU2PPP2WOoROUOQ2[U2oROU[OQ]12P!)%fhKh9h)c��x: �ROP2[O]
2EPiw�K
P!K3hr
)r�rr�r�s�rr��@BaseTaskTests.test_cancellation_exception_context.<locals>.sleep's$�����N�N�4� ��-�-��#�#�#�s�-:�8�:c��: �RORR22oREPiw�K
ROUOQ2UEPiw�K
P!K/K[Oco[Q2SgPo=hh9h3h)N�msgr�)rUr�ryrr{r�)�
inner_task�exr�rOr+r�s  ����rrT�?BaseTaskTests.test_cancellation_exception_context.<locals>.coro+sm�������t�U�W�5�J��I�I��N�N�:�,�,�e�4�
6� � � �
�!���)�)�
6� ��-�2�5��
6�sK�B�A�!B�A�A�A�B�A�A=�+A=�,A8�8A=�=B)r��r�)
rr�r�rfrUrzr�r|r}rkr"r&r{)	r+rTror�r#r�r�rOr�s	f     @@@r�#test_cancellation_exception_context�1BaseTaskTests.test_cancellation_exception_context"s�����%�%�'�����D�!�� � �"��	$�	6�	6��}�}�T�4�6�*��
�
�
�z�
*�
*�b��#�#�D�)�+��l�l��������>�2�&�s�+������
�
#�
#�X�q�1�	3�
+�
*�s�?C1�1D	�:D	c��```�[O2nROR2QnUUU1QkoRORU22oRO	[O
29^tt^2oRO
U2PPP2WOoROUOQ2[U2oROU[O
Q]12P!)%fhKh9h)c��T �[O]
2EPiw�K
P!K3hr�r�rrrr��JBaseTaskTests.test_cancel_with_message_before_starting_task.<locals>.sleepBr�r�c���: �RORR22oUOQ2[OU,2EPiw�K
vqUO	2P!K3hr�)rUryrr�r})ror�r�rOr+r�s   ���rrT�IBaseTaskTests.test_cancel_with_message_before_starting_task.<locals>.coroEsK�����=�=��u�w�/�D��K�K��%�")�,�,��v�"6�6�6�M�D��N�N��7�s�AA$�A"�	A$r�)rr�r�rUrzr{r|r}rkr"r&)r+rTror�r#r�rOr�sf     @@r�-test_cancel_with_message_before_starting_task�;BaseTaskTests.test_cancel_with_message_before_starting_task>s�����%�%�'�����D�!�	$�	��}�}�T�4�6�*��
�
�
�w�5�5�
6�
6�"��#�#�D�)�7��l�l��������?�3�&�s�+������
�
#�
#�_�a�8�	:�
7�
6�s�4C&�&C6	�/C6	c���QoUOUOU22o[OUO2UO	2UO[OUOOU2UOUO22UOUO22UOUO	22P!)c�� �[O]2EPiw�K
[O]2EPiw�K
]!K&K3hr�r�rrrro�-BaseTaskTests.test_cancel_yield.<locals>.taskWs4����-�-��"�"�"��-�-��"�"�"��
#�"���A
�A�A
�A�A
�A
)
rUrOrrRryrzrr{r|r�r�r�r�)r+rors&  r�test_cancel_yield�BaseTaskTests.test_cancel_yieldVs���	�

�M�M�$�)�)�T�V�,�����t�y�y�)�	���
�����"�"�D�I�I�$@�$@�!�	E��������!�������
�&��������$rc�&`�UOUO2nU1QkoUOUOU22o[OUO2RO2UO
[O29^tt^2UOOU2PPP2UORO22UOUO22P!)%fhKP9h)c��.: �REPiw�K
]!K3hr
r�r�s�rro�4BaseTaskTests.test_cancel_inner_future.<locals>.taskh������G�G��
�r�)r\rOrUrrRryrzrr{r|r�r��r+rorr�s&  @r�test_cancel_inner_future�&BaseTaskTests.test_cancel_inner_futurees�����O�O�D�I�I�&��	�
�M�M�$�)�)�T�V�,�����t�y�y�)�	���
�
�
�
�w�5�5�
6�
6��I�I�(�(��+�7�������
�&�������
�&�7�
6�s�D�D	�	D	c�`�UOUO2nU1QkoUOUOU22o[OUO2RO2UO2UO
[O29^tt^2UOOU2PPP2UOUO22UORO22UOUO22P!)%fhKo9h)c��.: �REPiw�K
]!K3hr
rrs�rro�BBaseTaskTests.test_cancel_both_task_and_inner_future.<locals>.taskwrr�)
r\rOrUrrRryrzrr{r|r�r�r�rs&  @r�&test_cancel_both_task_and_inner_future�4BaseTaskTests.test_cancel_both_task_and_inner_futurets�����O�O�D�I�I�&��	�
�M�M�$�)�)�T�V�,�����t�y�y�)�	���
�	���
�
�
�
�w�5�5�
6�
6��I�I�(�(��+�7�	
�������!�������
�&�������
�&�7�
6�s�,D/�/D?	�8D?	c��``�UOUO2nUOUO2nUU1QkoUOUOU22o[OUO2UOUOR2ROP2[OUO2UOUOR2UO2UORO22UOOU2oUOU]*2UOUO22P!)c��: �REPiw�K
REPiw�K
P!KK[Oc]*!h9h3hr
�rr{)�fut1�fut2s��rro�5BaseTaskTests.test_cancel_task_catching.<locals>.task�s8�����J�J�
��
�
�
����)�)�
��
�s9�A� �A�$�"�$�A�$�=�=�A�=�A�r\rOrUrrRr��_fut_waiterr�ryr�r�r|rkr�)r+rorr�rrs&   @@r�test_cancel_task_catching�'BaseTaskTests.test_cancel_task_catching�s�������t�y�y�)�����t�y�y�)��	�
�M�M�$�)�)�T�V�,�����t�y�y�)��
�
�a�m�m�T�*���������t�y�y�)��
�
�a�m�m�T�*�	���
�������(�)��i�i�*�*�1�-������b�!��������'rc��```�UOUO2nUOUO2nUOUO2nUUU1QkoUOUOU22o[OUO2UOUOR2ROP2[OUO2UOUOR2UO2UORO22[OUO2UOUOR2RO]*2UOOU2oUOU]*2UORO22UOUO22P!)c��: �REPiw�K
REPiw�K
REPiw�K
oU!KK[OcK)h9hK%3hr
r)r�rr�fut3s ���rro�5BaseTaskTests.test_cancel_task_ignoring.<locals>.task�sL�����J�J�
��
�
��*�*�C��J�

����)�)�
��
���sJ�A
�,�A
�0�.�0�A
�A�A
�0�A�A�A
�A�A
r)r+rorr�rrrs&   @@@r�test_cancel_task_ignoring�'BaseTaskTests.test_cancel_task_ignoring�sC������t�y�y�)�����t�y�y�)�����t�y�y�)��	�
�M�M�$�)�)�T�V�,�����t�y�y�)��
�
�a�m�m�T�*���������t�y�y�)��
�
�a�m�m�T�*�	���
�������(�)����t�y�y�)��
�
�a�m�m�T�*�������i�i�*�*�1�-������b�!�������)�*��������'rc�``�[O2oROU2UU1QkoROV22nRO	RO22RO
[OUOR2RORO22RORO22RO	RO2RO	RO22P!)c��: �RO2RORO2[O]d2EPiw�K
]!K3h��d)ryr�r�rr��r+rs��rro�4BaseTaskTests.test_cancel_current_task.<locals>.task�s9����
�H�H�J��O�O�A�N�N�+��-�-��$�$�$��
%�s�AA�
A�A�
rr�r�rUr�r�rzr{r|r�r�r�ryr�sf  @r�test_cancel_current_task�&BaseTaskTests.test_cancel_current_task�s�����%�%�'�����D�!�	�
�M�M�$���'���������'�����"�"�D�$;�$;�Q�	@��������!�������
�&�������(��������$rc�``�[O2oROU2UU1QkoROV22nRO	RO22RO
[OUOR2RORO22RORO22RO	RO2RO	RO22P!)z+coroutine end right after task is cancelledc��h: �RO2RORO2]!3h)�)ryr�r�r$s��rro�.BaseTaskTests.test_cancel_at_end.<locals>.task�s"����
�H�H�J��O�O�A�N�N�+��s�/2r&r�sf  @r�test_cancel_at_end� BaseTaskTests.test_cancel_at_end�s�����%�%�'�����D�!�	�

�M�M�$���'���������'�����"�"�D�$;�$;�Q�	@��������!�������
�&�������(��������$rc�B``````�[O2nROU1Qk2P9nnROR2nU1QknUUUUU1QkoRO	RU22nRO[O29^tt^2ROR2PPP2RORO22RORO22RORO22P!)%fhKo9h)c�&:�RO2!r
)rGrYs�rr`�8BaseTaskTests.test_cancel_awaited_task.<locals>.<lambda>�s����
�
�rc��.: �REPiw�K
P!K3hr
rr�s�r�nested�6BaseTaskTests.test_cancel_awaited_task.<locals>.nested��
�����I�I�r�c��: �RORR22n[O]2EPiw�K
RO2REPiw�K
P!K"K3hr��rUrr�ry)rOr3�nested_taskr+ros�����rrT�4BaseTaskTests.test_cancel_awaited_task.<locals>.coro�sL�����-�-��f�h�7�K��-�-��"�"�"�
�K�K�M����

#�
��!�3A�A�A�A�A�A)
rr�r�r\rUrzr{r|r�r�)r+rTr�rOr3r8rosf @@@@@r�test_cancel_awaited_task�&BaseTaskTests.test_cancel_awaited_task�s�����%�%�'�����,�-�!�!��{��o�o�d�#��	�
	�
	��}�}�T�4�6�*��
�
�
�w�5�5�
6�
6��#�#�D�)�7�	
������(�)�����-�-�/�0�����
�
��(�7�
6�s�D�D	�D	c�:�V!7c[QU8QUQ02gP!)ztext z not found in:
>>>z<<<�r�)r+�text�substrs&&&r�assert_text_contains�"BaseTaskTests.assert_text_containss(������v�j�0C�D�6��M�N�N�rc�```�[O2nROR2QnUUU1QkoRORU22oRO	U2ROQ2P![Oc>[O2oROSQ2ROSQ2P!h9h)c��T �[O]
2EPiw�K
P!K3hr�r�rrrr3�EBaseTaskTests.test_cancel_traceback_for_future_result.<locals>.nested�����-�-��#�#�#�r�c��: �RORR22o[O]2EPiw�K
UO2UEPiw�K
P!K"K3hr�r7)rorOr3r+s ���rrT�CBaseTaskTests.test_cancel_traceback_for_future_result.<locals>.corosB�����=�=��v�x�0�D��-�-��"�"�"��K�K�M��J�J�
#��r:�CancelledError did not occur�await asyncio.sleep(10)zawait task  # search target�
rr�r�rUr|�failr{�	traceback�
format_excrA�r+rTrorrOr3sf   @@r�'test_cancel_traceback_for_future_result�5BaseTaskTests.test_cancel_traceback_for_future_results�����%�%�'�����D�!�	$�	��}�}�T�4�6�*��	6��#�#�D�)�
�I�I�4�5��
�%�%�	I��%�%�'�B��%�%�b�*C�D��%�%�b�*G�H�		I���A2�2C�:C�Cc�```�[O2nROR2QnUUU1QkoRORU22oRO	U2ROQ2P![Oc>[O2oROSQ2ROSQ2P!h9h)c��T �[O]
2EPiw�K
P!K3hr�r�rrrr3�HBaseTaskTests.test_cancel_traceback_for_future_exception.<locals>.nested-rFr�c��: �RORR22o[O]2EPiw�K
UO2[OU,2EPiw�K
vqUO2P!KIK3hr�r�)ror�r�rOr3r+s   ���rrT�FBaseTaskTests.test_cancel_traceback_for_future_exception.<locals>.coro1s]�����=�=��v�x�0�D��-�-��"�"�"��K�K�M�")�,�,��v�"6�6�6�M�D��N�N��
#�6�s!�3B�B�0B�'B�(B�BrIrJz!task.exception()  # search targetrKrOsf   @@r�*test_cancel_traceback_for_future_exception�8BaseTaskTests.test_cancel_traceback_for_future_exception's�����%�%�'�����D�!�	$�	��}�}�T�4�6�*��		6��#�#�D�)�
�I�I�4�5���%�%�	5��%�%�'�B��%�%�b�*C�D��%�%�b�3�
5�		5�rRc�r```�U1QkoROU2n]nUU1QkoRORU22oRO[29^tt^2oRO	U2PPP2RO[
WO2Q2ROUO22ROR]2ROQRO22UO2RO[OROU2P!)%fhK�9h)c3�: �Pw�	oROQU2Qw�	oROQU2Qw�	oROQU2Qw�	P!3h)Nr�皙�����?�333333�?r�r�s �rr&�:BaseTaskTests.test_stop_while_run_in_complete.<locals>.genFsN�����D��"�"�3��-��9�D��"�"�3��-��9�D��"�"�3��-��I���AAc��: �R]
6cE[OQ2EPiw�K
R]*
nR]6XfJ9RO2JKP!K*3h)r�r�)rr��stop)rO�xs��rro�;BaseTaskTests.test_stop_while_run_in_complete.<locals>.taskSs@�����b�&��m�m�C�(�(�(��Q�����6��I�I�K�	�(�s�A�A�A�A�Az+Event loop stopped before Future completed.r])rdrUrzr�r|rkrjr}r�r�r��timeryrr{)r+r&rorr�rOrbsf    @@r�test_stop_while_run_in_complete�-BaseTaskTests.test_stop_while_run_in_completeDs����	��!�!�#�&��
��	 �
�M�M�$���'��
�
�
�|�
,�
,���#�#�A�&�-�����R�\�\�*�F�	H��������"�����A�����s�D�I�I�K�0�	���
����'�0�0�$�2I�2I�1�M�-�
,�s�D&�&D6	�/D6	c��QoUOUOU22oUO[Q29^tt^2P	UmPPP2UOOU2P!)%fhK-9h)c�� �P!3hr
rrrrrT�.BaseTaskTests.test_log_traceback.<locals>.corohrurzcan only be set to False)rUrOr�r��_log_tracebackr|�r+rTros&  r�test_log_traceback� BaseTaskTests.test_log_tracebackgs]��	��}�}�T�Y�Y���/��
�
#�
#�J�0J�
K�
K�"&�D��L��	�	�$�$�T�*�L�
K�s�A1�1B	�:B	c�@```�U1QkoROU2oROU[OQ22nROU[OQ22nUUU1QkoUO	ROV#222oROU]*2RO
QUO22UO	ROV#222oRO
QUO22ROU]*2P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3h�Nr��333333�?r�r�s �rr&�$BaseTaskTests.test_wait.<locals>.genr�7�����D��"�"�3��-��7�D��"�"�4��.��J���7:r�rqc���: �[ORR,2EPiw�K
vqROU[RR,22ROU[22]*!K?3hr
�rr�rk�set�r�r�r�rXr+s  ���rr��$BaseTaskTests.test_wait.<locals>.foo~sR����")�,�,��1�v�"6�6�6�M�D����T�3��1�v�;�/����W�c�e�,��7�s�A$�A"�AA$�rdrUrr�r|rkr�rd�r+r&rOr�r�r�rXsf    @@r�	test_wait�BaseTaskTests.test_waitps����	��!�!�#�&���M�M�$��
�
�c� 2�3���M�M�$��
�
�d� 3�4��	��%�%�d�m�m�D�#�%�&@�A������b�!����t�T�Y�Y�[�1��%�%�d�m�m�D�#�%�&@�A�����t�T�Y�Y�[�1�����b�!rc���QoUOOUQ22oUOUO[OV"UOOUQ22,22oUOOU2vqEUO
U2SO[9PIc.QU2DjJ	LQU22QQ.2P!)c�� �U!3hr
r��ss&rrT�:BaseTaskTests.test_wait_duplicate_coroutines.<locals>.coro��
����H�rr��spamc3�L�SF �DpO2w�	J	P!3hr
r���.0r�s& r�	<genexpr>�?BaseTaskTests.test_wait_duplicate_coroutines.<locals>.<genexpr>�s������A�X�X�Z�Z����$)	rO�create_taskrUrr�r|r�rkrw)r+rT�cror�r�s&     r�test_wait_duplicate_coroutines�,BaseTaskTests.test_wait_duplicate_coroutines�s���	��I�I�!�!�$�v�,�/���}�}��I�I��L�L�!��	�	� 5� 5�d�6�l� C�D�E�G���	�	�4�4�T�:�
������!������6��6���6��6�6���8H�Irc�j�UO[UOO[O
[
222[OQ2o[O
U,PQ5oUO[UOOU2UO2P!)r���return_when)	rzr�rOr|rr�rwr�rG)r+�
sleep_coro�	wait_coros&  r�test_wait_errors�BaseTaskTests.test_wait_errors�s}�������	�	�4�4��L�L����	!�
�]�]�4�(�
��L�L�*��2�>�	����*��)�)�6�6�	�	C�	���rc�`�U1QkoROU2oROU[OQ22oROU[OQ22oROU[OVC,[O
Q52oUO
U2vqgROU.U2ROU.U2ROUO22ROUO22ROUO22ROQUO22UO]
2UO
[OV4,22P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3h)Nr�r�r�r�s �rr&�4BaseTaskTests.test_wait_first_completed.<locals>.gen�s7�����D��"�"�4��.��7�D��"�"�3��-��I�rtr�r�r�)rdrUrr�r��FIRST_COMPLETEDr|rkr�r�r��assertIsNoner�r�rd�advance_time)r+r&rOr�rXror�r�sf       r�test_wait_first_completed�'BaseTaskTests.test_wait_first_completed�s%���	��!�!�#�&���M�M�$��
�
�d� 3�4���M�M�$��
�
�c� 2�3���}�}���L�L�!��W�-D�-D�E�G���/�/��5�
�����!��d�#����!��g�&��������"��������!����!�(�(�*�%����s�D�I�I�K�0�	
���"��������a�V� 4�5rc�`�U1QkoROOROROU222P!)c��b: �ROO2oRORO[O]22o[O
V.[OQ5EPiw�K
ROUO2UO2P!K13h)r�r�)
rOrfrUrr�r�r�r��_asyncio_awaited_byry)�immortalr�r+s  �rrT�EBaseTaskTests.test_wait_discards_awaited_by_for_pending.<locals>.coro�s������y�y�.�.�0�H��=�=����G�M�M�!�,<�=�D��,�,��/�+2�+B�+B�D�
D�
D����X�9�9�:��O�O��
D�s�A7B/�:B-�;3B/)rOr|rUr�sf r�)test_wait_discards_awaited_by_for_pending�7BaseTaskTests.test_wait_discards_awaited_by_for_pending�s-���	�	
�	�	�$�$�T�]�]�4�9�9�d�f�%E�Frc�r�QoQoUOUOU22oUOUOU22oUOUO[OVC,[OQ52oUOOU2vqgUO
V4.U2UOUO22UOUO22UOUO22UOUO22P!)c��T �[O]2EPiw�K
P!K3hr�r�rrr�coro1�2BaseTaskTests.test_wait_really_done.<locals>.coro1�s����-�-��"�"�"�r�c�� �[O]2EPiw�K
[O]2EPiw�K
P!K&K3hr�r�rrr�coro2�2BaseTaskTests.test_wait_really_done.<locals>.coro2�s1����-�-��"�"�"��-�-��"�"�"�
#�"�rr�)rUrOrr�r�r|rkr�r�r�r�)r+r�r�r�rXror�r�s&       r�test_wait_really_done�#BaseTaskTests.test_wait_really_done�s���	#�	#�
�M�M�$�)�)�U�W�-���M�M�$�)�)�U�W�-���}�}��I�I��L�L�!��W�-D�-D�E�G���	�	�4�4�T�:�
�����!���&��������!����!�(�(�*�%��������!����!�(�(�*�%rc�D`�U1QkoROU2oROU[OQ22oQoROV$22oROU[OVS,[O
Q52oUO
U2vqxROU.U2ROU.U2RO]UO22UO]
2UO
[OV5,22P!)c3�J: �Pw�	oROQU2]w�	P!3hr�r�r�s �rr&�4BaseTaskTests.test_wait_first_exception.<locals>.gen�r�r�r�c��" �[Q2g3h)�err)�ZeroDivisionErrorrrrr#�4BaseTaskTests.test_wait_first_exception.<locals>.exc�s���#�E�*�*���
r��rdrUrr�r��FIRST_EXCEPTIONr|rkr�rdr��	r+r&rOr�r#rXror�r�s	f        r�test_wait_first_exception�'BaseTaskTests.test_wait_first_exception�s����	�
�!�!�#�&��
�M�M�$��
�
�d� 3�4��	+�
�M�M�$���&���}�}���L�L�!��W�-D�-D�E�G���/�/��5�
�����!��d�#����!��g�&����q�$�)�)�+�.�	
���"��������a�V� 4�5rc�$`�U1QkoROU2oROU[OQ22oQoROV$22o[OVS,[O
Q5oUO
U2vqxROU.U2ROU.U2ROQUO22UO]
2UO
[OV5,22P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3h)Nr�r�r�r�s �rr&�<BaseTaskTests.test_wait_first_exception_in_wait.<locals>.gen	�7�����D��"�"�4��.��7�D��"�"�4��.��J�rtr�c��f �[OQ2EPiw�K
[Q2gK3h)r�r��rr�r�rrrr#�<BaseTaskTests.test_wait_first_exception_in_wait.<locals>.excs'����-�-��%�%�%�#�E�*�*�
&���1�/�1r�r�r�r�s	f        r�!test_wait_first_exception_in_wait�/BaseTaskTests.test_wait_first_exception_in_waits����	��!�!�#�&��
�M�M�$��
�
�d� 3�4��	+�
�M�M�$���&���|�|�Q�F��0G�0G�H���/�/��5�
�����!��d�#����!��g�&����t�T�Y�Y�[�1�	
���"��������a�V� 4�5rc��```�U1QkoROU2oROU[OQ22nQoROV#22nUUU1QkoUO	ROV$222ROQUO
22UO	ROV$222ROQUO
22P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3hrpr�r�s �rr&�3BaseTaskTests.test_wait_with_exception.<locals>.gen'rsrtr�c��f �[OQ2EPiw�K
[Q2gK3h)rq�reallyr�rrr�sleeper�7BaseTaskTests.test_wait_with_exception.<locals>.sleeper2s'����-�-��%�%�%�#�H�-�-�
&�r�c��R: �[ORR,2EPiw�K
vqRO[U2]2ROU[	22[9PIc.QU2DjJ	LQU22oRO[U2]2P!K�3h)Nc3�X�SF �DpO2eJUw�	J	P!3hr
)r}r�s& rr��FBaseTaskTests.test_wait_with_exception.<locals>.foo.<locals>.<genexpr><s��D���D�q�K�K�M���D�s�*�*)rr�rk�lenrw)r�r��errorsr�rXr+s   ���rr��3BaseTaskTests.test_wait_with_exception.<locals>.foo8s}����")�,�,��1�v�"6�6�6�M�D����S��Y��*����W�c�e�,��S�F�D�F�S�S�F�D�F�F�F����S��[�!�,�	7�s�B'�B%�AB'�)=B'rq)rdrUrr�r|r�rd)r+r&rOr�r�r�rXsf    @@r�test_wait_with_exception�&BaseTaskTests.test_wait_with_exception%s����	��!�!�#�&���M�M�$��
�
�c� 2�3��	.�
�M�M�$��	�*��	-�	
����
�
�d�C�E� :�;����t�T�Y�Y�[�1�����
�
�d�C�E� :�;����t�T�Y�Y�[�1rc��```�U1QkoROU2oROU[OQ22nROU[OQ22nUUU1QkoUO	ROV#222ROQUO
22UO]
2UO	[ORR,22P!)c3�: �Pw�	oROQU2]w�	oROQU2]w�	oROQU2Qw�	P!3h)Nr�rq�)\��(�?r�r�s �rr&�1BaseTaskTests.test_wait_with_timeout.<locals>.genGsN�����D��"�"�3��-��7�D��"�"�4��.��7�D��"�"�4��.��J�r_r�rqc���: �[ORR,QQ5EPiw�K
vqROU[R,22ROU[R,22P!K@3h)r��r�rvrxs  ���rr��1BaseTaskTests.test_wait_with_timeout.<locals>.fooUsT����")�,�,��1�v�t�"D�D�D�M�D����T�3��s�8�,����W�c�1�#�h�/�E�s� A'�A%�AA'r�)	rdrUrr�r|r�rdr�r�)r+r&rOr�r�rXsf   @@r�test_wait_with_timeout�$BaseTaskTests.test_wait_with_timeoutEs����	��!�!�#�&���M�M�$��
�
�c� 2�3���M�M�$��
�
�d� 3�4��	0�
	
����
�
�d�C�E� :�;����t�T�Y�Y�[�1�	
���"��������a��V� 4�5rc�B`�U1QkoROU2oROU[OQ22oROU[OQ22oUO	[O
VC,QQ52vqVRO
U[U,22RO
U[U,22ROQUO22UO]
2UO	[O
V4,22P!)c3�: �Pw�	oROQU2]w�	oROQU2]w�	oROQU2Qw�	P!3hrpr�r�s �rr&�8BaseTaskTests.test_wait_concurrent_complete.<locals>.gencsN�����D��"�"�3��-��7�D��"�"�4��.��7�D��"�"�3��-��I�r_r�rqr�)rdrUrr�r|r�rkrwr�rdr�)r+r&rOr�rXr�r�sf      r�test_wait_concurrent_complete�+BaseTaskTests.test_wait_concurrent_completeas����	��!�!�#�&���M�M�$��
�
�c� 2�3���M�M�$��
�
�d� 3�4���/�/��L�L�!���-�/�
��	
����s�A�3�x�(�����#�q�c�(�+����s�D�I�I�K�0�	
���"��������a�V� 4�5rc�```�U1QkoROU2oROU[OQ22nROU[OQ22nUUU1QkoUO	ROV#222oROU]*2RO
QUO22P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3hrpr�r�s �rr&�;BaseTaskTests.test_wait_with_iterator_of_tasks.<locals>.gen~rsrtr�rqc���: �[O[RR,22EPiw�K
vqROU[	RR,22ROU[	22]*!K?3hr
)rr��iterrkrwrxs  ���rr��;BaseTaskTests.test_wait_with_iterator_of_tasks.<locals>.foo�sV����")�,�,�t�Q��F�|�"<�<�<�M�D����T�3��1�v�;�/����W�c�e�,��=�s�'A-�A+�AA-rzr{sf    @@r� test_wait_with_iterator_of_tasks�.BaseTaskTests.test_wait_with_iterator_of_tasks|s����	��!�!�#�&���M�M�$��
�
�c� 2�3���M�M�$��
�
�d� 3�4��	��%�%�d�m�m�D�#�%�&@�A������b�!����t�T�Y�Y�[�1rc�p```�QnRO2nUUU1QkoROU22P!)c�� �U!3hr
rrys&r�func�/BaseTaskTests.test_wait_generator.<locals>.func�r�rc��: �UUU1Qk[]
22o[OU[OQ5EPiw�K
vqRO	[U2]
2RO	[U2]2P!K>3h)c3�`:�SF �DoRORRU22w�	J 	P!3hr
)rU)r��ir�rOr+s& ���rr��BBaseTaskTests.test_wait_generator.<locals>.main.<locals>.<genexpr>�s"��9���9�a�T�]�]�4��a��1�1�9�s�&.r�)r�rr��
ALL_COMPLETEDrkr�)rr�r�r�rOr+s   ���r�main�/BaseTaskTests.test_wait_generator.<locals>.main�s`����E�5��9�E�E�")�,�,�u�'�BW�BW�"X�X�X�M�D����S��Y��+����S��\�1�-�Y�s�AB�B�AB�rdr|)r+r�r�rOsf @@r�test_wait_generator�!BaseTaskTests.test_wait_generator�s/���	��!�!�#��	.�	
�����'rc�|`
``�QoU
UU1QkoQoQoV41FCDoUOUOQ59^tt^2UOU2nQRm[	2n
P
nUQQ2oUQQ2oUQ	Q
2oROUO
RUVxU,222o	UOQ	RO22UOQU	Q*72UOQU	Q*72UOU	]*Q
2PPP2CJ	P!)%fhCJ!9h)c3�8 �]w�	]w�	Qw�	]w�	P!3h)r�r�rrrrr&�,BaseTaskTests.test_as_completed.<locals>.gen�s����G��G��J��G���c���: �[OU2EPiw�K
ROU2R%f"QR7cQR7cP	nROQ2U!K@3h)Nr�rXg�Q���?)rr��addr�)�dtrb�	completedrO�time_shifteds&&���rr��0BaseTaskTests.test_as_completed.<locals>.sleeper�sR�����-�-��#�#�#��M�M�!���C�9�$4��	�9I�#���!�!�$�'��H�
$�s �A#�A!�A#�A#�A#�A#c�� �,o[OU2FDoSOUEPiw�K
2J 	U!K3hr
�r�as_completed�append��
awaitables�valuesr�s&  r�try_iterator�5BaseTaskTests.test_as_completed.<locals>.try_iterator�s9����F��)�)�*�5���
�
�A�g�g�&�6��M�&�s�/A�A�Ac�� �,o[OU2Piw�K
oSOUEPiw�K
2J)K"KB%S!3hr
rrs&  r�try_async_iterator�;BaseTaskTests.test_as_completed.<locals>.try_async_iterator�sF����F�"�/�/�
�;�
'�
'�a��
�
�A�g�g�&�
'�%�<��M�s5�A�A	�A�A	�A�A�A�A	�A�	A��methodg�?r�r�rXrqr�:Nr�N)r�r2rd�slow_callback_durationrwr|rUr�rdr�rk)
r+r&r�r	rr�r�rXr�r�r�rOrs
&         @@@r�test_as_completed�BaseTaskTests.test_as_completed�s
���	�	�	�	� �3�C����S�\�\��2�2��)�)�#�.��.1��+��E�	�$���D�#�&���D�#�&���D�#�&���-�-�d�m�m�D�#�q�Q�i�.�.Q�R���&�&�t�T�Y�Y�[�9�����s�2�w��/�����s�2�w��/�� � ��Q���-�!3�2�4�2�2�2�s�CD)	�)D;
�2D;
c
�l�QoQo[O[O229^tt^2o[	U]2U]2U]2U]212oUOUU22oVE*
U6wcUO
Q2gUQ2oUOUQ22oUQ2oUOUQ22o	[	VgV�12oUOUU22oVE*Vy.6wcUO
Q2gPPP2P!)%fhP!9h)c�� �[2o[OU2Piw�K
oUOU2JKBS!3hr
)rwrrr�)r�awaitables_out�out_aws&  rr�PBaseTaskTests.test_as_completed_same_tasks_in_as_out.<locals>.try_async_iterator�sB��� �U�N� '� 4� 4�Z� @�
+�
+�f��"�"�6�*�
+� @�!�!�s%�"A�A�A�A�A�A�Ac�� �U!3hr
r�r�s&rrT�BBaseTaskTests.test_as_completed_same_tasks_in_as_out.<locals>.coro�r�rz5Got original coroutines out of as_completed iterator.r�rXr��dz>Only tasks should be yielded from as_completed iterator as-is.)�
contextlib�closingrr��	frozensetr|�failureExceptionr�)
r+rrTrO�
awaitables_inr�
coro_obj_a�task_b�
coro_obj_c�task_ds
&         r�&test_as_completed_same_tasks_in_as_out�4BaseTaskTests.test_as_completed_same_tasks_in_as_out�s9��	"�	��
�
�� 6� 6� 8�
9�
9�T�&��a��$�q�'�4��7�D��G�4��M�"�4�4�"�=�1��N��-��>��+�+�-L�M�M��c��J��%�%�d�3�i�0�F��c��J��%�%�d�3�i�0�F�%��Z�8��M�"�4�4�"�=�1��N��-�&�1A�A��+�+�-5�6�6�B�1:�
9�
9�
9�s�AD"�BD"�D"�"D3	�+D3	c�```�QoUUU1QkoUUU1QkoV#1FCD�oUOUOQ59^tt^2UOU2nRO[O
QQ22nRO[O
QQ22nRO
UORU222oUO[U2]U2UOU]*Q	2UOU]*]*]2UOU]*]*[O2UOQRO22RO]
2RO
[ORR,22PPP2CJ�	P!)%fhCJ�9h)
c3�8 �Pw�	]w�	]w�	Qw�	P!3h)Nr�rrrrr&�9BaseTaskTests.test_as_completed_with_timeout.<locals>.gens�����G��G��I�r�c��<: �,o[ORR,QQ5FD<oU%cROQ2UEPiw�K
oUO]U12J>	U!K[OcoSO]S12Po=JrPo=hh9h3h����Q��?r�g{�G�z�?)rrr�rr��rr�r@r#r�rXrOs    ���rr	�BBaseTaskTests.test_as_completed_with_timeout.<locals>.try_iterators������F��)�)�1�a�&�$�?�?����%�%�d�+�,����A��M�M�1�a�&�)�@��M�	 ���+�+�,��M�M�1�c�(�+�+��,�sK�)B�B�A&�A$
�A&�B�$A&�&B�:B�;B�B�B�Bc��@: �,o[ORR,QQ5Piw�K
oUEPiw�K
oUO]U12ROQ2J>K7K,B:S![OcoSO]S12Po=S!Po=hh9h3hr+)rrrr�r�r-s    ���rr�HBaseTaskTests.test_as_completed_with_timeout.<locals>.try_async_iterators������F�
(�&�3�3�Q��F�D�I�,�,�!����A��M�M�1�a�&�)��%�%�d�+�,�� J��M���'�'�
(��
�
�q�#�h�'�'��M��
(�sd�B�A(�A$�A �A$�A(�A"�+A(� A$�"A(�$A(�%B�(B�<B�=B�B�B�Brr�r�rqrXr,)rr�)r�r2rdr�rr�r|rUrkr�rmr�r�rdr�r�)	r+r&r	rr�r�r�rXrOs	&     @@@r�test_as_completed_with_timeout�,BaseTaskTests.test_as_completed_with_timeout�sL���	�
	�		� �3�C����S�\�\��2�2��)�)�#�.���$�$�W�]�]�3��%<�=���$�$�W�]�]�4��%=�>���-�-�d�m�m�D�#�%�.H�I��� � ��S��1�c�2�� � ��Q���2�� � ��Q����A�.��%�%�c�!�f�Q�i��1E�1E�F��&�&�t�T�Y�Y�[�9��!�!�"�%��'�'����a��V�(<�=�3�2�4�2�2�2�s�EF2	�2G
�;G
c�``�QoUU1QkoUU1QkoV#1FD�oROUOQ59^tt^2[OQQ2nRO	U2oUORO
VT222UO2PPP2J�	P!)%fhJ�9h)c3�. �Pw�	]w�	Qw�	P!3h)Nr�rrrrr&�@BaseTaskTests.test_as_completed_with_unused_timeout.<locals>.gen0s�����G��J���c��: �[OR,]Q5FD!oUEPiw�K
oROUQ2J#	P!K3h�rr�r��rrrk�r�r@r�r+s  ��rr	�IBaseTaskTests.test_as_completed_with_unused_timeout.<locals>.try_iterator5s>�����)�)�1�#�q�9�9���G�G��� � ��C�(�:��s�%A�A
�Ac��: �[OR,]Q5Piw�K
oUEPiw�K
oROUQ2J,K%KB(P!3hr8r9r:s  ��rr�OBaseTaskTests.test_as_completed_with_unused_timeout.<locals>.try_async_iterator:sK����"�/�/���Q�?�
)�
)�a��G�G��� � ��C�(�
)��@�s5�A�A�A
�A�A�A�A�
A�A�Arr�r�)r�r2rr�rdr|rUrG)r+r&r	rr�rOr�sf     @r�%test_as_completed_with_unused_timeout�3BaseTaskTests.test_as_completed_with_unused_timeout.s����	�
	)�
	)�
 �3�C����S�\�\��2�2��M�M�$��,���)�)�#�.���'�'��
�
�d�C�E�(B�C��
�
��	3�2�4�2�2�2�s�AB,	�,B=
�5B=
c��`�U1QkoU1QkoQo[O[O229^tt^2oV1FDuoRO	UO
Q59^tt^2UO
UU]2U]2U]2U]2122oROUQ2PPP2Jw	PPP2P!)%fhJ�9h)%fhP!9h)c��>: �]o[OU2o,oSFD1oSOUEPiw�K
2U]*
oU]6XfJ0L	RO[	U2]2SFDoSOUEPiw�K
2J 	U!KaK3hr��rrrrkr��r�
iterations�iterator�	collectedr�r+s&    �rr	�EBaseTaskTests.test_as_completed_resume_iterator.<locals>.try_iteratorJs������J��+�+�J�7�H��I���� � �q���)��a��
���?��	�

���S��^�Q�/���� � �q���)����")�")�s'�3B�B�B�7B�	B�
B�Bc��`: �]o[OU2o,oUPiw�K
oSOUEPiw�K
2U]*
oU]6XfJ9RO[	U2]2UPiw�K
oSOUEPiw�K
2J)KyKcB|KLK(KB+S!3hr�rBrCs&    �rr�KBaseTaskTests.test_as_completed_resume_iterator.<locals>.try_async_iteratorZs������J��+�+�J�7�H��I�#�
�
�a�� � �q���)��a��
���?�����S��^�Q�/�$�
*�
*�a�� � �q���)�
�!(�$�
*�!(�$���sq�B.�B%�B!�B%�B.�B#�B.�B.�8B+�=B'�>B+�B.�B)�B.�!B%�#B.�%B.�'B+�)B.�+B.c�� �U!3hr
rrs&rrT�=BaseTaskTests.test_as_completed_resume_iterator.<locals>.corojr�rr)r�rr�rl)rrrr�r�r2r|�assertCountEqual)r+r	rrTrOr��resultssf      r�!test_as_completed_resume_iterator�/BaseTaskTests.test_as_completed_resume_iteratorFs����	� 	� 	��
�
�� 6� 6� 8�
9�
9�T�#�7���\�\����\�6�6�"�5�5��T�!�W�d�1�g�t�A�w��Q��@�A��G��)�)�'�<�@�	7�6�8�:�
9�6�6�6��:�
9�
9�s1�,C�/AC
�5C�C�C�	C�C0	�(C0	c��```�QoROU2n[OQQ2o[OQQ2oV#.nUUU1QkoROU22P!)c3�. �]w�	Qw�	]w�	P!3h)r�皙�����?rrrrr&�9BaseTaskTests.test_as_completed_reverse_wait.<locals>.genzs����G��J��G�r6rRr�r�rXc���: �[[OR22oRO[	U2]2U]*EPiw�K
oROUQ2ROQRO
22ROQ2U]*EPiw�K
oROUQ2ROQRO
22P!K�K:3h)r�r�rRrXr�)�listrrrkr�r�rdr�)�futsrb�y�fsrOr+s   ���rr��:BaseTaskTests.test_as_completed_reverse_wait.<locals>.test�s�������,�,�R�0�1�D����S��Y��*��1�g�
�
�A����Q��$��"�"�4�����5����d�#��1�g�
�
�A����Q��$��"�"�4�����5�
��s%�A	C �C�
AC �"C�#:C �C )rdrr�r|)r+r&r�rXr�rXrOsf    @@r�test_as_completed_reverse_wait�,BaseTaskTests.test_as_completed_reverse_waitusX���
	�
�!�!�#�&���M�M�$��$���M�M�$��$���V��
	6�	
�����'rc	�~```	�U1QkoQoQoV#1FD�n	ROR	OQ59^tt^2[OQQ2o[OQQ2oVE.nUU	U1QkoRO	U2oUOU22PPP2J�	P!)%fhJ�9h)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3h)NrRr�r�s �rr&�7BaseTaskTests.test_as_completed_concurrent.<locals>.gen�r�rtc��J �[[OU22!3hr
)rUrr)rXs&rr	�@BaseTaskTests.test_as_completed_concurrent.<locals>.try_iterator�s�����,�,�R�0�1�1�s�!#c��r �[OU2Tt,tPiw�K
pMJKBto!ttoh3hr
�rr)rXr�s& rr�FBaseTaskTests.test_as_completed_concurrent.<locals>.try_async_iterator�s-���%,�%9�%9�"�%=�>�%=�>�>��A�>�>��>�s$�7�2�.�,�.�2�.�2�7rrRr�rXc	��: �RR2EPiw�K
oRO[U2]2[OSTt,tFDo[OU2MJ	to2EPiw�K
vq#RO[
9PIc.QU2DjJ	LQU22QQ.2P!K�ttohKK3h)Nc3�L�SF �DpO2w�	J	P!3hr
r�r�s& rr��KBaseTaskTests.test_as_completed_concurrent.<locals>.test.<locals>.<genexpr>�s��T���T������T�r�r�rX)rkr�rr�r�rw)rVr�r�r�rXrr+s    ���rr��8BaseTaskTests.test_as_completed_concurrent.<locals>.test�s�����!'���+�+�D��$�$�S��Y��2�*1�,�,�?C�D�t���.�.�s�3�t�D�+�%�%�M�D��$�$�S�S�(B�T�(B�S�S�(B�T�(B�%B�S�#�J�O�,��E�%�s3�C�B7�3C�!B9�&C�1B>�2C�)C�9C)r�r2rr�rdr|)
r+r&r	rr�rXr�rOrXrs
f       @@r�test_as_completed_concurrent�*BaseTaskTests.test_as_completed_concurrent�s����	�	2�	?�#�6�F����V�_�_��5�5��M�M�$��,���M�M�$��,���V��P��)�)�#�.���'�'���/�6�5�7�5�5�5�s�A!B+	�+B<
�4B<
c	��`�QnU1QkoU1QkoV1FD�oUOUOQ59^tt^2UOUOU22oUOO	U2UO2oUO
[U2QQ.2UO
[U2]2PPP2J�	P!)%fhJ�9h)c�� �U!3hr
rr�s&rrT�BBaseTaskTests.test_as_completed_duplicate_coroutines.<locals>.coro�r�rc��: �,oRQ2o[OVRQ2,2FDoSOUEPiw�K
2J 	U!K3h��hamr�r�r�r�r�rTs   �rr	�JBaseTaskTests.test_as_completed_duplicate_coroutines.<locals>.try_iterator�sM�����F��U��A��)�)�1��f��*>�?���
�
�A�g�g�&�@��M�&�s�?A�A�Ac��: �,oRQ2o[OVRQ2,2Piw�K
oSOUEPiw�K
2J)K"KB%S!3hrnrrps   �rr�PBaseTaskTests.test_as_completed_duplicate_coroutines.<locals>.try_async_iterator�sZ�����F��U��A�"�/�/��t�F�|�0D�E�
'�
'�a��
�
�A�g�g�&�
'�%�F��M�s7�*A�A�A�A�A�
A�A�A�A�Arror�)	r�r2rUrOr|r�rkrwr�)r+r	rrr�r�rTs&     @r�&test_as_completed_duplicate_coroutines�4BaseTaskTests.test_as_completed_duplicate_coroutines�s����	�	�	�#�6�F����V�_�_��5�5��m�m�D�I�I�v�x�8���	�	�,�,�S�1������� � ��V��u�f�o�>�� � ��V��a�0�6�5�7�5�5�5�s�BC	�C!
�C!
c��QoU2oUOUO2UO[Q29^tt^2[O
U,2o[
U2PPP2P!)%fhP!9h)c�� �]*!3hr=rrrrrT�DBaseTaskTests.test_as_completed_coroutine_without_loop.<locals>.coro�r_rr�)r�rGr�r�rrrU)r+rTr�rVs&   r�(test_as_completed_coroutine_without_loop�6BaseTaskTests.test_as_completed_coroutine_without_loop�s]��	�
�F�������� �
�
#�
#�L�2I�
J�
J��'�'���,�D���J�K�
J�
J�
J�s�#A2�2B	�;B	c�l``�RO2oQnUU1QkoUOU22P!)c�� �]*!3hr=rrrrrT�HBaseTaskTests.test_as_completed_coroutine_use_running_loop.<locals>.coro�r_rc���: �[[OR2,22oRO[	U2]2ROU]*EPiw�K
]*2P!K3h�r)rUrrrkr�)rVrTr+s ��rr��HBaseTaskTests.test_as_completed_coroutine_use_running_loop.<locals>.test�sM������,�,�d�f�X�6�7�D����S��Y��*����4��7�]�]�B�/�]�s�AA,�A*
�
A,r�)r+rOr�rTsf  @r�,test_as_completed_coroutine_use_running_loop�:BaseTaskTests.test_as_completed_coroutine_use_running_loop�s-����!�!�#��	�	0�
	
�����'rc�N`�U1QkoROU2oQoROV#QQ22oUOU2ROUO	22ROUO
2Q2ROQUO22P!)c3�x: �Pw�	oROQU2Qw�	oROQU2Qw�	P!3h)NrRr�r�r�s �rr&�%BaseTaskTests.test_sleep.<locals>.gen�s7�����D��"�"�4��.��:�D��"�"�3��-��J�rtc�� �[OU]*2EPiw�K
[OU]*U2EPiw�K
oU!K.K3h)r�r�)r��argr�s&& rr��)BaseTaskTests.test_sleep.<locals>.sleeper�sB����-�-��1��%�%�%��
�
�b��d�C�0�0�0�C��J�
&�0�s!�#A�A�'A�
A�A�Ar��yeah)	rdrUr|r�r�rkr�r�rd�r+r&rOr�rsf    r�
test_sleep�BaseTaskTests.test_sleep�s����	��!�!�#�&��	�

�M�M�$���V� 4�5������"��������!��������V�,����s�D�I�I�K�0rc��QoUOU2oQoUOV#22oUO[29^tt^2UO	U2PPP2P!)%fhP!9h)c3� �Pw�	P!3hr
rrrrr&�7BaseTaskTests.test_sleep_when_delay_is_nan.<locals>.gen��������	c��f �[O[Q22EPiw�K
P!K3h)�nan)rr�r�rrrr��;BaseTaskTests.test_sleep_when_delay_is_nan.<locals>.sleepers����-�-��e��-�-�-�s�%1�/�1)rdrUrzr�r|r�s&    r�test_sleep_when_delay_is_nan�*BaseTaskTests.test_sleep_when_delay_is_nan�s`��	��!�!�#�&��	.�
�M�M�$��	�*��
�
�
�z�
*�
*��#�#�A�&�+�
*�
*�
*�s�A(�(A9	�1A9	c�```�U1QkoROU2oROU[OQQ22oPnUOnUU1QkoVBm[
OU2RORO2UO2[
OU2RORO2P!)c3�J: �Pw�	oROQU2]w�	P!3hr�r�r�s �rr&�,BaseTaskTests.test_sleep_cancel.<locals>.genr�r�r�r�c� :�RV,UN3nR!r
r)�delay�callbackr"�handle�orig_call_laters&&*��rr��3BaseTaskTests.test_sleep_cancel.<locals>.call_laters���$�U�<�t�<�F��Mr)rdrUrr�r�rrRr��
_cancelledryr�)r+r&rOrr�r�r�sf    @@r�test_sleep_cancel�BaseTaskTests.test_sleep_cancels����	�
�!�!�#�&���M�M�$��
�
�d�F� ;�<�����/�/��	�
%�����t�$�����*�*�+�	���
����t�$�����)�)�*rc��```�U1QkoROU2nQnUUU1QkoU2oROROU2Q2ROQRO	22P!)c3�x: �Pw�	oROQU2]w�	oROQU2Qw�	P!3h)Nr��r�r�s �rr&�9BaseTaskTests.test_task_cancel_sleeping_task.<locals>.gen*s7�����D��"�"�3��-��7�D��"�"�4��.��I�rtc��T �[OU2EPiw�K
P!K3hr
r�)r�s&rr��;BaseTaskTests.test_task_cancel_sleeping_task.<locals>.sleep3r�r�c���: �RORRQ22oROQUO2UEPiw�K
Q!K[OcQ!h9h3h)r�r�zslept inr�)rUr�ryrr{)r�rOr+r�s ���r�doit�:BaseTaskTests.test_task_cancel_sleeping_task.<locals>.doit6sY�����m�m�D�%��+�6�G��O�O�C����0�
"��
�
�"�	���)�)�
#�"�
#�s@�6A&�A
�A�A
�A&�A
�
A#�A#�A&�"A#�#A&r�r�)rdrkr|r�rd)r+r&r��doerrOr�sf   @@r�test_task_cancel_sleeping_task�,BaseTaskTests.test_task_cancel_sleeping_task(s^���	��!�!�#�&��	$�	"��v������0�0��6��D����s�D�I�I�K�0rc�D`�UOUO2nU1QkoUOUOU22o[OUO2UOUOR2UO2[OUO2UO[OUOOU2UOUO2UORO22P!)c��.: �REPiw�K
P!K3hr
rr�s�rrT�:BaseTaskTests.test_task_cancel_waiter_future.<locals>.coroGr5r�)r\rOrUrrRr�rryrzrr{r|r�r�r�)r+rTror�s&  @r�test_task_cancel_waiter_future�,BaseTaskTests.test_task_cancel_waiter_futureDs�����o�o�d�i�i�(��	��}�}�T�Y�Y���/�����t�y�y�)��
�
�d�&�&��,����
����t�y�y�)�����"�"�D�I�I�$@�$@�$�	H����$�*�*�+�����
�
��(rc���QoU2oUOUOU2oUO[Q29^tt^2UO	Q2PPP2UO[Q29^tt^2UO[
22PPP2UOUOOU2Q2P!)%fhK}9h)%fhKP9h)c�� �Q!3h)r�rrrrr��4BaseTaskTests.test_task_set_methods.<locals>.notmuchVr�rznot support set_resultr�znot support set_exceptionr�)	rUrOr�r�r��
set_exceptionr�rkr|)r+r�r&ros&   r�test_task_set_methods�#BaseTaskTests.test_task_set_methodsUs���	��i���}�}�T�Y�Y��,��
�
#�
#�L�2J�
K�
K��O�O�D�!�L��
#�
#�L�2M�
N�
N����z�|�,�O�	
����I�I�(�(��.��	�
L�
K��O�
N�s$�C
�>C �
C	�C	� C0	�)C0	c�D``�QQ[O2oUUOQ5nPnUU1QkoUOUOU22o[O
UO2UO
RO2[2oROU2[O
UO2UOUR2UO
UO22UOUO22P!)c�@``�\sQsQsnU1QksU1QksQsUsU9s!)�2BaseTaskTests.test_step_result_future.<locals>.Futiic�::�P
Um[RU_U-U@P!�F)�cb_addedrbr�)r+r"�kwdsrRs&*,�rr��;BaseTaskTests.test_step_result_future.<locals>.Fut.__init__js��� %��
��� �$�/�$�/rc�::�P	Um[RU_U-U@P!r�)r�rbr!�r+r"�kwargsrRs&*,�rr!�DBaseTaskTests.test_step_result_future.<locals>.Fut.add_done_callbackns��� $��
���)�4�:�6�:r)r��	r2r3r4r5r�r!r6r7�
__classcell__�rRr9s@@r�Futr�is����
0�
;�
;rr�rYc��.: �REPiw�K
nP!K3hr
r)r�r�s��r�wait_for_future�>BaseTaskTests.test_step_result_future.<locals>.wait_for_futureus�����Y�Y�F�Y�r�)rrZrOrUrrRr�r��objectr�r�r�r�r�)r+r�r�rr�r�r�s&    @@r�test_step_result_future�%BaseTaskTests.test_step_result_futurefs����	;�'�.�.�	;��t�y�y�!����	�
�M�M�$�)�)�_�%6�7�����t�y�y�)�������%��h�����s�����t�y�y�)��
�
�c�6�"��������!����!�(�(�*�%rc� ```�U1QkoROU2oQn[2nUU1QkoROV#22o[OU2UO2RO
UO22RO[[OU2ROUO22RO
UO22ROUO2R2P!)c3�J: �Pw�	oROQU2]w�	P!3hr�r�r�s �rr&�;BaseTaskTests.test_baseexception_during_cancel.<locals>.gen�r�r�c��T �[O]
2EPiw�K
P!K3hr�r�rrrr��?BaseTaskTests.test_baseexception_during_cancel.<locals>.sleeper�r�r�c��p: �R2EPiw�K
P!K[OcRgh9h3hr
r)�base_excr�s��r�notmutch�@BaseTaskTests.test_baseexception_during_cancel.<locals>.notmutch�s-����
��i�����)�)�
���
�s$�6����6��3�3�6)
rd�
SystemExitrUrrRryr�r�rzr�r�r�r})r+r&rOr�ror�r�sf    @@r� test_baseexception_during_cancel�.BaseTaskTests.test_baseexception_during_cancel�s����	�
�!�!�#�&��	$��<��	��}�}�T�8�:�.�����t�$����
��������%����*�j�&<�&<�d�C�����	�	��$�������)�*��
�
�d�n�n�&��1r)�categoryc���QoUO[OU22QoUO[OU22QoUO[OU22UO[O[O
222UO[O[O222P!)c��P!r
rrrr�fn�2BaseTaskTests.test_iscoroutinefunction.<locals>.fn�s��rc3� �Pw�	P!3hr
rrrr�fn1�3BaseTaskTests.test_iscoroutinefunction.<locals>.fn1�r�r�c�� �P!3hr
rrrr�fn2�3BaseTaskTests.test_iscoroutinefunction.<locals>.fn2�rur)r�r�iscoroutinefunctionr�r�Mock�	AsyncMock)r+r�r�r�s&   r�test_iscoroutinefunction�&BaseTaskTests.test_iscoroutinefunction�s���	�	
����4�4�R�8�9�	�����4�4�S�9�:�	�����3�3�C�8�9�����4�4�T�Y�Y�[�A�B�����3�3�D�N�N�4D�E�Frc�
�QoUO[OU22U2oUO[OU22UOOU2oUO
UQ2P!)c�� �Q!3h�r�rrrrr��;BaseTaskTests.test_coroutine_non_gen_function.<locals>.func�s����rr�)r�rr��iscoroutinerOr|rk)r+r�rTr�s&   r�test_coroutine_non_gen_function�-BaseTaskTests.test_coroutine_non_gen_function�sb��	�	
����3�3�D�9�:��v������+�+�D�1�2��i�i�*�*�4�0������f�%rc�t`�UOUO2nU1QkoU1QkoUOUOU22oUOUOU22oUOOU2oUO	UR2UOUO
22P!)c��: �R!3hr
rr�s�rr��IBaseTaskTests.test_coroutine_non_gen_function_return_future.<locals>.func�s�����J�s�c��4: �ROQ2P!3hr��r�r�s�rrT�IBaseTaskTests.test_coroutine_non_gen_function_return_future.<locals>.coro�s�����N�N�6�"�s�)r\rOrUr|rkr�r�)r+r�rTr7r8r�r�s&     @r�-test_coroutine_non_gen_function_return_future�;BaseTaskTests.test_coroutine_non_gen_function_return_future�s�����o�o�d�i�i�(��	�	#��]�]�4�9�9�d�f�
-��
�]�]�4�9�9�d�f�
-���i�i�*�*�2�.������c�"����"�)�)�+�&rc�T``�ROROROQ52UU1QkoROROURO22nROO	R2ROROROQ52P!)rYc���: �RORO2R2ROROP2R2RORO2R2P!3hr
)r�r�)rOr+ros&��rrT�-BaseTaskTests.test_current_task.<locals>.coro�sM�����M�M�$�+�+�-�t�4��M�M�$�+�+�D�1�4�8��M�M�$�+�+�-�t�4�s�A%A()r�r�rOrUr|rksf @r�test_current_task�BaseTaskTests.test_current_task�sx������$�+�+����+�;�<�	5��}�}�T�Y�Y��T�Y�Y��8���	�	�$�$�T�*����$�+�+����+�;�<rc�``````�ROROROQ52RORO2nRORO2nUUUU1QkoUUUU1QkoRO	ROURO22nRO	ROURO22nROO[ORR122ROROROQ52P!)rYc���: �RORO2RI2REPiw�K
RORO2RI2ROP	2P!K83hr
�r�r�r�)rOrrr+�task1s&����rr��FBaseTaskTests.test_current_task_with_interleaving_tasks.<locals>.coro1�sR�����O�O�D�-�-�/�5�8�9��J�J��O�O�D�-�-�/�5�8�9��O�O�D�!�
�s�)A(�A&�:A(c���: �RORO2RI2ROP	2REPiw�K
RORO2RI2P!K'3hr�r)rOrrr+�task2s&����rr��FBaseTaskTests.test_current_task_with_interleaving_tasks.<locals>.coro2�sR�����O�O�D�-�-�/�5�8�9��O�O�D�!��J�J��O�O�D�-�-�/�5�8�9�
�s�:A(�A&�)A()r�r�rOr\rUr|rr�)r+r�r�rrrrsf  @@@@r�)test_current_task_with_interleaving_tasks�7BaseTaskTests.test_current_task_with_interleaving_tasks�s�������$�+�+����+�;�<����t�y�y�)�����t�y�y�)��	"�	"�	:�	:��
�
�d�i�i��t�y�y�)9�:���
�
�d�i�i��t�y�y�)9�:���	�	�$�$�W�\�\�5�%�.�%A�B����$�+�+����+�;�<rc�````�]nRORO2nUUU1QknUU1Qko[OU2ROQ5o[O
RO2UO
2ROOU2ROR]e2RORO22P!)r�c��: �REPiw�K
ROQ2P!K[OcR]*
ngh9h3h)Nzgot past sleep() in inner())rLrr{)�proofr+�waiters���r�inner�<BaseTaskTests.test_yield_future_passes_cancel.<locals>.inner�sF����
9����
�	�	�7�8����)�)�
���
���
�s*�A
�'�%�'�A
�'�A�A�A
c��: �R2EPiw�K
R]
*
nP!K[OcR]d*
nP!h9h3hr
r�rrs��rr[�<BaseTaskTests.test_yield_future_passes_cancel.<locals>.outer	sA����
��g�
�
�����	���)�)�
�����
�s6�A	�$�"�$�A	�$�A�
A�A	�A�A	rY)r\rOrr�rrRryr|rkr�r��r+r[r�rrr
sf  @@@r�test_yield_future_passes_cancel�-BaseTaskTests.test_yield_future_passes_cancel�s������������+��	9�	�
�!�!�%�'��	�	�:�����t�y�y�)�	���
��	�	�$�$�Q�'������$�����(�(�*�+rc�````�]nRORO2nUU1QknUUU1Qko[OU2ROQ5o[O
RO2UO
2RO[OROOU2ROP2[O
RO2ROR]2P!)r�c��@: �REPiw�K
R]*
nP!K3hr
r�rr
s��rr�CBaseTaskTests.test_yield_wait_does_not_shield_cancel.<locals>.inner������L�L��Q�J�E�
�����c��: �RO[29^tt^2[O[OR22,2EPiw�K
vqPPP2R]d*
nP!K)%fhK9h3hr
)�assertWarns�DeprecationWarningrr�r�)r�prrr+s  ���rr[�CBaseTaskTests.test_yield_wait_does_not_shield_cancel.<locals>.outer$sZ�����!�!�"4�5�5�$�\�\�7�+>�+>�u�w�+G�*H�I�I�I���6��S�L�E�J�6�5�s4�B�5A4�A2
�A4�B�2A4�4B	�=B	�?BrY�r\rOrr�rrRryrzr{r|r�rkrsf  @@@r�&test_yield_wait_does_not_shield_cancel�4BaseTaskTests.test_yield_wait_does_not_shield_cancels������������+��	�
	�
�!�!�%�'��	�	�:�����t�y�y�)�	���
�����"�"�D�I�I�$@�$@�!�	E����$�����t�y�y�)������"rc���UOUO2o[OU2oUO	]*2UOOU2oUO
U]*2P!r=)r\rOr�shieldr�r|rk)r+rr[r�s&   r�test_shield_result� BaseTaskTests.test_shield_result3sT������	�	�*�����u�%��
������i�i�*�*�5�1������b�!rc�b�UOUO2o[OU2o[O
UO2[
Q2oUOU2[O
UO2UOUO2U2P!)�expected)
r\rOrr%rrRr�r�r�r})r+rr[r#s&   r�test_shield_exception�#BaseTaskTests.test_shield_exception:ss������	�	�*�����u�%�����t�y�y�)��:�&��
���C� ����t�y�y�)��
�
�e�o�o�'��-rc�H�UOUO2o[OU2o[O
UO2UO
2[O
UO2UOUO22P!r
)	r\rOrr%rrRryr�r��r+rr[s&  r�test_shield_cancel_inner�&BaseTaskTests.test_shield_cancel_innerCsb������	�	�*�����u�%�����t�y�y�)�
�������t�y�y�)�������)�*rc��UOUO2o[OU2o[O
UO2UO
2[O
UO2UOUO22SO]UOe	]2P![UO22P!r�)r\rOrr%rrRryr�r�rk�
_callbacksr�r-s&  r�test_shield_cancel_outer�&BaseTaskTests.test_shield_cancel_outerKs�������	�	�*�����u�%�����t�y�y�)�
�������t�y�y�)�������)�*������!1�!1�!9�A�U�s�5�CS�CS�?T�Urc���[O2oUOOU2UO	UO2o[
OU2o[OUO2UO2[OUO2UO]2[OUO2UO2P!r)rr�rO�set_exception_handlerr\rr%rrRryr��assert_not_called�r+�mock_handlerrr[s&   r�test_shield_cancel_outer_result�-BaseTaskTests.test_shield_cancel_outer_resultTs����y�y�{���	�	�'�'��5�����	�	�*�����u�%�����t�y�y�)�
�������t�y�y�)�
��������t�y�y�)��&�&�(rc��[O2oUOOU2UO	UO2o[
OU2o[OUO2UO2[OUO2UO[Q22[OUO2UO2P!�r��
rr�rOr5r\rr%rrRryr�ro�assert_called_oncer7s&   r�"test_shield_cancel_outer_exception�0BaseTaskTests.test_shield_cancel_outer_exception`s����y�y�{���	�	�'�'��5�����	�	�*�����u�%�����t�y�y�)�
�������t�y�y�)�
���I�e�,�-����t�y�y�)��'�'�)rc���[O2oUOOU2UO	UO2o[
OU2o[OUO2UO2[OUO2[
OU2o[OUO2UO2[OUO2UO[Q22[OUO2UO2P!r<r=r7s&   r�test_shield_duplicate_log_once�,BaseTaskTests.test_shield_duplicate_log_oncels����y�y�{���	�	�'�'��5�����	�	�*�����u�%�����t�y�y�)�
�������t�y�y�)����u�%�����t�y�y�)�
�������t�y�y�)�
���I�e�,�-����t�y�y�)��'�'�)rc���UOUO2oUO]*2UOO[O
U22oUO
U]*2P!r=)r\rOr�r|rr%rk)r+r�r�s&  r�test_shield_shortcut�"BaseTaskTests.test_shield_shortcut|sM���o�o�d�i�i�(�����r���i�i�*�*�7�>�>�#�+>�?������b�!rc�T```�]nUOUO2nUU1QknUU1Qko[OU2UOQ5o[O
UO2UO
2UO[O29^tt^2UOOU2PPP2ROP2[O
UO2UOR]2P!)%fhKU9h)r�c��@: �REPiw�K
R]*
nP!K3hr
rrs��rr�/BaseTaskTests.test_shield_effect.<locals>.inner�rrc��r: �[OR22EPiw�K
R]d*
nP!K3hr
�rr%rs��rr[�/BaseTaskTests.test_shield_effect.<locals>.outer�s(�����.�.���)�)�)��S�L�E�
*�s�!7�5�7rYr!rs&  @@@r�test_shield_effect� BaseTaskTests.test_shield_effect�s������������+��	�
	�

�!�!�%�'��	�	�:�����t�y�y�)�	���
�
�
�
�w�5�5�
6�
6��I�I�(�(��+�7����$�����t�y�y�)������"�	7�
6�s�.D�D'	� D'	c�r�UOUO2oUOUO2o[OV2o[OU2o[
OUO2UO2[
OUO2UOUO22UO]2UO]2[
OUO2UOUO2]],2P!r)
r\rOrr�r%rrRryr�r�r�rkr�)r+�child1�child2�parentr[s&    r�test_shield_gather� BaseTaskTests.test_shield_gather�s���������+��������+������/�����v�&�����t�y�y�)�
�������t�y�y�)�������)�*����!�����!�����t�y�y�)��������1�a�&�1rc���UOUO2oUOUO2o[OU2o[OU2o[OV42o[
OUO2UO2[
OUO2UOUO2[O2UOUO22UOUO22UO]2UO]2[
OUO2P!r)r\rOrr%r�rrRryrmr}r{r�r�r�)r+rPrQrYrZrRs&     r�test_gather_shield� BaseTaskTests.test_gather_shield�s���������+��������+������'������'������/�����t�y�y�)��
�
�����t�y�y�)����f�.�.�0�'�2H�2H�I�����(�(�*�+�����(�(�*�+����!�����!�����t�y�y�)rc���QoU2oUOUO2UO[Q29^tt^2[O
U2PPP2P!)%fhP!9h)c�� �]*!3hr=rrrrrT�>BaseTaskTests.test_shield_coroutine_without_loop.<locals>.coro�r_rr�)r�rGr�r�rr%�r+rTrs&  r�"test_shield_coroutine_without_loop�0BaseTaskTests.test_shield_coroutine_without_loop�sP��	����������$�
�
#�
#�L�2I�
J�
J��N�N�5�!�K�
J�
J�
J�s�A&�&A7	�/A7	c�`�QnU1QkoUOOU22oUOUOUO2UOOU2oUOU]*2P!)c�� �]*!3hr=rrrrrT�BBaseTaskTests.test_shield_coroutine_use_running_loop.<locals>.coro�r_rc��D: �[OR22!3hr
rKr�s�rr��BBaseTaskTests.test_shield_coroutine_use_running_loop.<locals>.test�s�����>�>�$�&�)�)�r�)rOr|rkr�)r+r�r[r�rTs&   @r�&test_shield_coroutine_use_running_loop�4BaseTaskTests.test_shield_coroutine_use_running_loop�s_���	�	*��	�	�,�,�T�V�4��������d�i�i�0��i�i�*�*�5�1������b�!rc�j�Qo[OUO2UO[OP2[OU22oUOUOUO2UOOU2oUOU]*2P!)c�� �]*!3hr=rrrrrT�ABaseTaskTests.test_shield_coroutine_use_global_loop.<locals>.coro�r_r)rr�rOr�r%rkr�r|)r+rTr[r�s&   r�%test_shield_coroutine_use_global_loop�3BaseTaskTests.test_shield_coroutine_use_global_loop�s{��	�	���t�y�y�)�����.�.��5����t�v�&��������d�i�i�0��i�i�*�*�5�1������b�!rc��UOUO2oUO[29^tt^2[O
U2o[
U2PPP2[2oUO[29^tt^2[O
U2o[
U2PPP2UO2QoUOUO2oUO[29^tt^2UOOUU22PPP2[2oUO[29^tt^2UOOUU22PPP2UO2P!)%fhCK:9h)%fhK�9h)%fhK�9h)%fhK\9h)Nc��` �[OU2Piw�K
oP!KB	P!3hr
rb)�awr�s& rr�HBaseTaskTests.test_as_completed_invalid_args.<locals>.try_async_iterator�s*���"�/�/��3�
�
�a��
�3�s�.�+�)�+�.�+�.)
r\rOrzr�rr�nextrrGr|)r+r�rErTrs&    r�test_as_completed_invalid_args�,BaseTaskTests.test_as_completed_invalid_args�s2���o�o�d�i�i�(��
�
�
�y�
)�
)��+�+�C�0�H���N�*�"�#��
�
�
�y�
)�
)��+�+�D�1�H���N�*�	
�
�
��	��o�o�d�i�i�(��
�
�
�y�
)�
)��I�I�(�(�);�C�)@�A�*�!�#��
�
�
�y�
)�
)��I�I�(�(�);�D�)A�B�*��
�
��)*�
)�
)��*�
)��*�
)��*�
)�sG�"F
�"F!�"F4�"G�
F	�F	�!F1	�*F1	�4G	�=G	�G	�G	c���UOUO2oUO[UOO[
OU22[2oUO[UOO[
OU22UO2UO[UOO[
O,22P!r
)
r\rOrzr�r|rr�rrGr�)r+r�rTs&  r�test_wait_invalid_args�$BaseTaskTests.test_wait_invalid_args�s����o�o�d�i�i�(��	
���)�T�Y�Y�%A�%A��L�L���	�!�#�����)�T�Y�Y�%A�%A��L�L���	 ��
�
��	
���*�d�i�i�&B�&B��L�L���	rc	�z`�U1Qko[O2oROOP	2ROO	U2URO2oROROU2oRO
ROROQ5U.2ROO[O]22RO
[ROO2]2PoUOoPo[O2UO!ROQQQ[O"QU-2UO%2[O2RO
ROROQ5['22P!)c��b: �ROU2oUEPiw�K
[Q2gK3h)Nzcode never reached)r\ro)rO�futurer+s& �r�kill_me�>BaseTaskTests.test_log_destroyed_pending_task.<locals>.kill_me	s.�����_�_�T�*�F��L�L��0�1�1�
�s�/�-�/rY�messagez%Task was destroyed but it is pending!ror)rr�rOrr5rUrk�	all_tasksr|rr�r��_readyr"r�
gc_collect�assert_called_with�ANY�
reset_mockrw)r+rwr8rTrorsf     r�test_log_destroyed_pending_task�-BaseTaskTests.test_log_destroyed_pending_task	sG���	2��y�y�{���	�	���D�!��	�	�'�'��5��t�y�y�!���}�}�T�Y�Y��-��������T�Y�Y��7�$��@�	
�	�	�$�$�W�]�]�1�%5�6�����T�Y�Y�-�-�.��2����1�1����	�����'�'��	�	��>��D�H�H�� 0�4
�	�
	���!�����������T�Y�Y��7���?rc���UOOoQQU2oQoU2oUV@OQ5oP
Um=[O
2UO
2P!)c�(`�\sQsQsnQsQsUsP!)�HBaseTaskTests.test_task_not_crash_without_finalization.<locals>.Subclassi1	c��P!r
rr*s&rr��PBaseTaskTests.test_task_not_crash_without_finalization.<locals>.Subclass.__del__2	s��rrr�r8s@r�Subclassr�1	s����
�
rr�c��T �[OQ2EPiw�K
P!K3h)r�r�rrr�corofn�FBaseTaskTests.test_task_not_crash_without_finalization.<locals>.corofn5	s����-�-��%�%�%�r�rY)rRrSrO�_log_destroy_pendingrr|rG)r+rSr�r�rTros&     r�(test_task_not_crash_without_finalization�6BaseTaskTests.test_task_not_crash_without_finalization.	sY���~�~�"�"��	�t�	�	&��x����Y�Y�/��$)��!�������
�
�rzasyncio.base_events.loggerc��```�[O2nROR2QnUUU1QkoROU22RO	UO
O2P!)c�� �[g3hr
)r�rrrrT�BBaseTaskTests.test_tb_logger_not_called_after_cancel.<locals>.coroG	s
����O�rjc��: �RORR22o[OQ2EPiw�K
UO2PoP!K3h)rRr7)rorTrOr+s ���rr�DBaseTaskTests.test_tb_logger_not_called_after_cancel.<locals>.runnerJ	s=�����=�=��t�v�.�D��-�-��%�%�%��K�K�M��D�
&�s�3A�A�A)rr�r�r|r��error�called)r+�m_logrrTrOsf& @@r�&test_tb_logger_not_called_after_cancel�4BaseTaskTests.test_tb_logger_not_called_after_cancelB	sS����%�%�'�����D�!�	�	�	
�����)�������+�+�,rc��UOOP	2UOUO[22o[O
2O]*
oUOUO[2UOUOQ*Q*[UQ12UOOU2P!)T:NrlN�test_task_source_traceback���)
rOrrUrr��	_getframe�f_linenormr"rUrk�__file__r|)r+ror%s&  rr��(BaseTaskTests.test_task_source_tracebackS	s����	�	���D�!��}�}�T�Y�Y�(:�(<�=������)�)�A�-�����d�4�4�d�;�����/�/��3�B�7�"� �6�8�	9�	
�	�	�$�$�T�*rc��```�[O2oUOUO2UO	U2nU1QkoUOU22nPnUU1QkoRO
U2RO]*2UOR2UORP
2UORO22UORO2]*,2P!)zQEnsure that a gathering future refuses to be cancelled once all
children are donec��|: �U1Qko[OU22o[OU2!3h)c��*: �REPiw�K
!K3hr
rr�s�r�
child_coro�FBaseTaskTests.test_cancel_gather_1.<locals>.create.<locals>.child_coroi	s���� �y�y� �y�s���)rr�r�)r��
gather_futurer�s  �r�create�2BaseTaskTests.test_cancel_gather_1.<locals>.createf	s,����
!�#�N�N�:�<�8�M��(�(��7�7�s�9<c�*:�RO2nP!r
r�)r��
cancel_result�gather_tasks&��r�cancelling_callback�?BaseTaskTests.test_cancel_gather_1.<locals>.cancelling_callbackp	s���'�.�.�0�Mr)rr�r�rGr\r|r!r�rkr�r�r�)r+rOr�r�r�r�r�s&   @@@r�test_cancel_gather_1�"BaseTaskTests.test_cancel_gather_1_	s�����%�%�'������
�
�#��o�o�d�#��	8��-�-�f�h�7���
�	1�	���1�2����r��	
����,�	
�����.�����.�.�0�1�����+�+�-��t�4rc�B````�,QNoSFD�vnoRORQ59^tt^2[O2nRORO2QnUUUU1QkoROU22RO
Q2PPP2J�	P![OcUoROSOS2[S2oROS[OS]12Po=KrPo=hh9h)%fhCJ9h)Nr�c�� �]oUQ*
o[O[OQ2P	Q5EPiw�K
U]6�fJIP!K3h)r�rR��return_exceptions)rr�r�)rds rr��0BaseTaskTests.test_cancel_gather_2.<locals>.test�	sM����D������%�n�n�W�]�]�4�-@�?C�E�E�E��!�8�"�E�s�>A�A�	A�Ac���: �RORR22o[OQ2EPiw�K
UORUEPiw�K
P!K#K3h)r\r7)�qwer�rOr+r�s ����rr��0BaseTaskTests.test_cancel_gather_2.<locals>.main�	sE�����-�-��d�f�5�C�!�-�-��,�,�,��J�J��,��I�I�-��s!�3A�A�A�A�A�AzWgather() does not propagate CancelledError raised by inner task to the gather() caller.r�)r�rr�r�rGr|rLr{rkr"r&)	r+r�r�r�r#r�r�rOr�s	f     @@@r�test_cancel_gather_2�"BaseTaskTests.test_cancel_gather_2	s����
��+0�&�K�����+��6�6��-�-�/������
�
�+�#���
��+�+�D�F�3��I�I�G��;7�6�+0��,�-�-���$�$�S�X�X�}�=�2�3�7�F��$�$�� �/�/���B������+7�6�6�sB�=D	�+B �D	� D	�4D	�5A
D�?D	�D	�	D	�D
�D
c�```�QnUU1QkoROOU22P!)c��" �]]*P!3hrrrrrr��3BaseTaskTests.test_exception_traceback.<locals>.foo�	s���
��E�E�r�c���: �ROROR22o[O]2EPiw�K
RO	UO2O2P!K/3hr�)rUrOrr�r3r}�
__traceback__)ror�r+s ��rr��4BaseTaskTests.test_exception_traceback.<locals>.main�	sN�����=�=����C�E�2�D��-�-��"�"�"�� � ����!1�!?�!?�@�
#�s�=A3�A1�1A3r)r+r�r�sf @r�test_exception_traceback�&BaseTaskTests.test_exception_traceback�	s$���	�	A�
	
�	�	�$�$�T�V�,rc���QoV OmQoUOUOO2UO[29^tt^2U2oUOUOU2UO2PPP2[O2UOUOO2UOO]*]*oUOQU2UOUOUO2[!22P!SO2h9h)%fhK�9h)c��[gr
rg)r�r"r�s&*,rr��8BaseTaskTests.test_error_in_call_soon.<locals>.call_soon�	s���rc�� �P!3hr
rrrrrT�3BaseTaskTests.test_error_in_call_soon.<locals>.coro�	rurz$Task was destroyed but it is pending)rOr�r�r�r�rzr�rUrGr�r�r��	call_argsr�rkrzrw)r+r�r�rTr&rys&&    r�test_error_in_call_soon�%BaseTaskTests.test_error_in_call_soon�	s���	�'�	�	��	�	
������+�+�,�
�
�
�z�
*�
*��&�C�
��
�
�d�i�i��-��	�	��+�	�
�
��������*�*�+��+�+�'�'��*�1�-���
�
�<�g�F��������	�	�2�C�E�:���	�	���+�
*�s*�E�#D=�?E�=E�E�E"	�E"	c�b�UO[Q29^tt^2UOUO]{2PPP2UO[Q29^tt^2UOUO]{2PPP2P!)%fhKU9h)%fhP!9h)z!a coroutine was expected, got 123)r�r�rUrOr*s&r�"test_create_task_with_noncoroutine�0BaseTaskTests.test_create_task_with_noncoroutine�	s���
�
#�
#�I�$G�I�I��M�M�$�)�)�S�)�I��
#�
#�I�$G�I�I��M�M�$�)�)�S�)�I�I�
I�I��I�I�I�s#�B
�#B�
B	�B	�B.	�&B.	c�j�QoUOUOU22oUOV O2UOO	U2UOUOU22oUOV O2UOO	U2P!)c�� �P!3hr
rrrrrT�@BaseTaskTests.test_create_task_with_async_function.<locals>.coro�	rur)rUrOrmrSr|rks&  r�$test_create_task_with_async_function�2BaseTaskTests.test_create_task_with_async_function�	s��	��}�}�T�Y�Y���/�����d�I�I�.��	�	�$�$�T�*��}�}�T�Y�Y���/�����d�I�I�.��	�	�$�$�T�*rc��UOUO[22oUOVO2UOUOO
U2]*2UOUO[22oUOVO2UOUOO
U2]*2P!r=)rUrOr;rmrSrkr|rns& r�(test_create_task_with_asynclike_function�6BaseTaskTests.test_create_task_with_asynclike_function�	s����}�}�T�Y�Y��(8�9�����d�I�I�.�������5�5�d�;�R�@��}�}�T�Y�Y��(8�9�����d�I�I�.�������5�5�d�;�R�@rc�```�QnUU1QkoROOU22P!)c�� �]!3hrrrrrr�2BaseTaskTests.test_bare_create_task.<locals>.inner�	s����rc��: �[OR22oROURO2UEPiw�K
oRO	]U2P!K3hr
)rr�rmrSrk)ro�retrr+s  ��rrT�1BaseTaskTests.test_bare_create_task.<locals>.coro�	sJ�����&�&�u�w�/�D��!�!�$��	�	�2��*�*�C����Q��$��s�?A�A�Arr[sf @r�test_bare_create_task�#BaseTaskTests.test_bare_create_task�	s#���	�	%�	
�	�	�$�$�T�V�,rc�```�QnUU1QkoROOU22P!)c�� �P!3hr
rrrr�	coro_noop�<BaseTaskTests.test_bare_create_named_task.<locals>.coro_noop
rurc��: �[OR2QQ5oROUO2Q2UEPiw�K
P!K3h)zNo-opr@)rr�rkrC)ror�r+s ��rrT�7BaseTaskTests.test_bare_create_named_task.<locals>.coro
s7�����&�&�y�{��A�D����T�]�]�_�g�6��J�J�s�AA�A�	Ar)r+rTr�sf @r�test_bare_create_named_task�)BaseTaskTests.test_bare_create_named_task
s#���	�	�
	
�	�	�$�$�T�V�,rc�&````�[OQQQ5nUU1QknUUUU1Qko[O2nRO	RU22oROU2RO
2P!RO
2h9h)�cvar�nope��defaultc��: �[OQ2EPiw�K
RORO2Q2RO	Q2P!K73h)r�r��something else)rr�rk�getrw)r�r+s��r�sub�)BaseTaskTests.test_context_1.<locals>.sub
s@�����-�-��%�%�%����T�X�X�Z��0��H�H�%�&�
&�s�A�A�9Ac��>: �RORO2Q2RORR22oROQ2RORO2Q2UEPiw�K
RORO2Q2P!K&3h)r��yes)rkr�rUrw)�subtaskr�rOr+r�s ����rr��*BaseTaskTests.test_context_1.<locals>.main
sq�������T�X�X�Z��0��m�m�D�#�%�0�G��H�H�U�O����T�X�X�Z��/��M�M����T�X�X�Z��/�
�s�A0B�3B�4(B)�contextvars�
ContextVarrr�rUr|rG)r+r�ror�rOr�sf  @@@r�test_context_1�BaseTaskTests.test_context_1
sl����%�%�f�f�=��	'�
	0�	0��%�%�'��	��=�=��t�v�.�D��#�#�D�)��J�J�L��D�J�J�L�s�(A>�>Bc�T```�[OQQQ5nUUU1Qko[O2nRO	RU22oROU2RO
2RORO2Q2P!RO
2h9h)r�r�r�c��n: �U1QkoRORO2Q2[]2FD�oROR2oUO	U2ROQU02RO
UOP2UEPiw�K
RORO2QU02[]2FD`oROQUQU02[OQ2EPiw�K
RORO2QUQU02Jb	J�	P!K�K63h)c�,:�ROQ2P!)r�)rw)r�r�s&�r�fut_on_done�?BaseTaskTests.test_context_2.<locals>.main.<locals>.fut_on_done)
s������)�*rr�r��-���MbP?)
rkr�r�r\r!rwr�r�rr�)r��jr�r�r�rOr+s    ���rr��*BaseTaskTests.test_context_2.<locals>.main(
s�����
+�

���T�X�X�Z��0��1�X���o�o�d�+���%�%�k�2����3�q�c��#����s�~�~�t�4��	�	�� � �����s�1�#�Y�7��q��A��H�H�s�1�#�Q�q�c�]�+�!�-�-��.�.�.��$�$�T�X�X�Z�3�q�c��1�#��?�	"��
�/�s%�BD5�D1
�A(D5�;D3�<6D5�3D5)	r�r�rr�rUr|rGrkr�)r+r�ror�rOsf  @@r�test_context_2�BaseTaskTests.test_context_2%
s|����%�%�f�f�=��	@�,�%�%�'��	��=�=��t�v�.�D��#�#�D�)��J�J�L��������V�,��
�J�J�L�s�(B�B'c�>````�[OQPQ5nUU1QknUU1Qko[O2nRO	U22RO2RO
RO2P2P!RO2h9h)r�r�c�� : �[]
2FDuoROV*2[O[O
QQ22EPiw�K
RO
RO2V*2Jw	P!K03h)r�r�rR)r�rwrr��random�uniformrkr�)�numr�r�r+s& ��rr��)BaseTaskTests.test_context_3.<locals>.subL
sZ�����2�Y�������!��m�m�F�N�N�5�$�$?�@�@�@�� � �����S�W�5��@�s�AB�B
�2Bc
��: �,o[]d2FDAoROR[O]]
222oUOU2JC	[
OUEPiw�K
P!K3hr")r�r�r�randintrrr�)rr�rorOr�s   ��rr��*BaseTaskTests.test_context_3.<locals>.mainR
sY�����E��3�Z���'�'��F�N�N�1�b�,A�(B�C�����T�"� ��.�.�%�(�(�(�s�A.A;�1A9�2A;)r�r�rr�r|rGrkr�)r+r�r�rOr�sf @@@r�test_context_3�BaseTaskTests.test_context_3G
sr����%�%�f�b�9��	6�	)��%�%�'��	��#�#�D�F�+��J�J�L��������R�(��
�J�J�L�s�B
�
Bc�H````�[OQ2nU1QknUUUU1Qko[O2nRO	RU22oROU2oRO
2RO,QNU2P!RO
2h9h)r�c��x: �[O]2EPiw�K
ROU2P!K3hr��rr�rw��valr�s&�rrT�*BaseTaskTests.test_context_4.<locals>.coroe
�(�����-�-��"�"�"��H�H�S�M�
#���:�8�:c��: �,o[O2oUOUOR22RO	RR]2UQ5oUEPiw�K
UOUOR22RO	RR]2UQ5oUEPiw�K
UOUOR22U!KlK(3h�r�r%)r��copy_contextrr�rU)r��ctxr7r8rTr�rOr+s    ����rr��*BaseTaskTests.test_context_4.<locals>.maini
s������C��*�*�,�C��J�J�s�w�w�t�}�%����t�T�!�W�c��:�B��H�H��J�J�s�w�w�t�}�%����t�T�!�W�c��:�B��H�H��J�J�s�w�w�t�}�%��J�
�
�s%�AC�C
�AC�"C�#(C�C�Nrr��r�r�rr�rUr|rGrk�r+r�ror�rTr�rOsf   @@@r�test_context_4�BaseTaskTests.test_context_4b
s����%�%�f�-��	�
	�
	��%�%�'��	��=�=��t�v�.�D��)�)�$�/�C��J�J�L�����s�+��
�J�J�L�s�(B�B!c�>``�[OQ2nU1QknUU1Qko[O2oUO	V!22oUOU2oUO
2UO,QNU2P!SO
2h9h)r�c��x: �[O]2EPiw�K
ROU2P!K3hr�r
rs&�rrT�*BaseTaskTests.test_context_5.<locals>.coro�
rrc��: �,o[O2oUOUOR22[O
R]2UQ5oUEPiw�K
UOUOR22[O
R]2UQ5oUEPiw�K
UOUOR22U!KpK(3hr)r�rrr�rr�)r�rr7r8rTr�s    ��rr��*BaseTaskTests.test_context_5.<locals>.main�
s������C��*�*�,�C��J�J�s�w�w�t�}�%��$�$�T�!�W�c�:�B��H�H��J�J�s�w�w�t�}�%��$�$�T�!�W�c�:�B��H�H��J�J�s�w�w�t�}�%��J�
�
�s%�AC� C�!A	C�*C�+(C�Crr)r+r�rOror�rTr�s&    @@r�test_context_5�BaseTaskTests.test_context_5~
sz����%�%�f�-��	�
	��%�%�'��	��=�=��t�v�.�D��)�)�$�/�C��J�J�L�����s�+��
�J�J�L�s�'B
�
Bc�B```�[OQ2nU1QknUUU1Qko[O2nRO	U22oROU2oRO
2UO,QNU2P!RO
2h9h)r�c��x: �[O]2EPiw�K
ROU2P!K3hr�r
rs&�rrT�*BaseTaskTests.test_context_6.<locals>.coro�
rrc��: �,o[O2oUOUOR22RO	R]2UQ5oUEPiw�K
UOUOR22RO	R]2UQ5oUEPiw�K
UOUOR22U!KkK(3hr)r�rrr�r�)r�rr7r8rTr�rOs    ���rr��*BaseTaskTests.test_context_6.<locals>.main�
s������C��*�*�,�C��J�J�s�w�w�t�}�%��!�!�$�q�'�3�!�7�B��H�H��J�J�s�w�w�t�}�%��!�!�$�q�'�3�!�7�B��H�H��J�J�s�w�w�t�}�%��J�
�
�s%�AC�C�AC� C
�!(C�
Cr)r�r�rr�r�r|rGrkrs&   @@@r�test_context_6�BaseTaskTests.test_context_6�
sz����%�%�f�-��	�
	��%�%�'��	��#�#�D�F�+�D��)�)�$�/�C��J�J�L�����s�+��
�J�J�L�s�'B�Bc�0```�PnUU1QknUUU1QkoP!)Nc��N: �RO2O2nP!3hr
�r�rC�rPr+s��r�asyncfn�4BaseTaskTests.test_eager_start_true.<locals>.asyncfn�
������$�$�&�/�/�1�D���"%c���: �ROR2[O2P	QQ5oROUO	22RORQ2UEPiw�K
P!K3h)T�example�rTrOrQrP)rUr�get_running_loopr�r�rk�rr0rPr+s ���rr��1BaseTaskTests.test_eager_start_true.<locals>.main�
sR�����
�
�7�9�7�3K�3K�3M�[_�fo�
�p�A��O�O�A�F�F�H�%����T�9�-��G�G�s�A&A3�)A1�*A3r�r+r�r0rPsf @@r�test_eager_start_true�#BaseTaskTests.test_eager_start_true�
s�����	2�	�	rc�v``�QnUU1Qko[OU2[OQ5P!)c�� �]*!3hr=rrrrr0�<BaseTaskTests.test_eager_start_true_no_loop.<locals>.asyncfn�
r_rc���: �ROOR2P	Q5oROUO22RO	UEPiw�K
]*2P!K3h)T)rQ)rRrSr�r�rk)rr0r+s ��rr��9BaseTaskTests.test_eager_start_true_no_loop.<locals>.main�
sI�������#�#�G�I�4�#�@�A��O�O�A�F�F�H�%����1�W�W�b�)�W�s�AA&�A$
�
A&��loop_factory�rr��	EventLoop)r+r�r0sf @r�test_eager_start_true_no_loop�+BaseTaskTests.test_eager_start_true_no_loop�
s%���	�	*�
	���D�F��):�):�;rc�```�PnUU1QknUUU1Qko[OU2[OQ5P!)Nc��N: �RO2O2nP!3hr
r.r/s��rr0�5BaseTaskTests.test_eager_start_false.<locals>.asyncfn�
r2r3c��: �ROR2[O2P
QQ5oROUO	22ROR2UEPiw�K
RO
RQ2P!K3h)Fr5r6)rUrr7r�r�r�rkr8s ���rr��2BaseTaskTests.test_eager_start_false.<locals>.main�
sg�����
�
�7�9�7�3K�3K�3M�[`�gp�
�q�A����Q�V�V�X�&����d�#��G�G����T�9�-�
�s�A%B�(B�)BrBrDr:sf @@r�test_eager_start_false�$BaseTaskTests.test_eager_start_false�
s*�����	2�	.�	���D�F��):�):�;rc��[O2o[2oUOV2oUO	U2UOUO
2U2UO2P!SO2h9hr
)rr�rrUr|r�r�rG)r+rOrTros&   r�
test_get_coro�BaseTaskTests.test_get_coro�
s`���%�%�'��!�#��	��=�=��,�D��#�#�D�)��M�M�$�-�-�/�4�0��J�J�L��D�J�J�L�s�AA6�6Bc�D�[O2o[2o[O2oUOVUQ5oUO
U2UOUO2U2UO2P!SO2h9h)r)
rr�rr�rrUr|r��get_contextrG)r+rOrTr%ros&    r�test_get_context�BaseTaskTests.test_get_context�
su���%�%�'��!�#���*�*�,��	��=�=��W�=�=�D��#�#�D�)��M�M�$�*�*�,�g�6��J�J�L��D�J�J�L�s�AB
�
Bc�H�QoU2oUOUO2UOUOU2oP
UmUO[QQ59^tt^2UOV OQ5PPP2P!)%fhP!9h)c�� �P!3hr
rrrrr��EBaseTaskTests.test_task_disallow_multiple_initialization.<locals>.foo�
rurzis already initializedr�rY)r�rGrUrOr�rzr�r�)r+r�rTros&   r�*test_task_disallow_multiple_initialization�8BaseTaskTests.test_task_disallow_multiple_initialization�
su��	��u������
�
�#��}�}�T�Y�Y��-��$)��!�
�
�
�|�1I�
�
J�
J��M�M�$�Y�Y�M�/�K�
J�
J�
J�s�)B�B!	�B!	rY)�TestTaskNN)�r2r3r4r5rSrZrzrUr\rcrpr�r�r�r�r�r�r�r�r�r�r�r�r�rr(r;rFrKrTrcrrr}r�r�r�r�r�r�r�r�r�rr	rrrr'r-r;rArPrXrerlr|r�r�r�r�r�r�r�r�r�r�r�r�rr%r1r>rNrZrhrtryr�r�r�r�r�r�r�r�r�rrr�r�r�r�rrr"r&r*r.r2r9r?rBrErMrSrVr\rcrhrorrr�r�r�patchr�r�r�r�r�r�r�r�r�r�r�r�r�r	rr#r*r;rFrMrPrTrYr6r7r�r�s@@rrMrMVs�����D�
�F��I�i�0�E�2�

=�A���	/��"+�>!�*!�*-� �(��/�81S�f)�$
(�(�
+�@� �:+�@�0(�Tg�R�0%�* @�D @�D3�8:�0
%�
'�'�((�.(�<%�(%�&")�HO�6�66�:!N�F+�"�:J��6�:G�&�06�:6�<2�@6�86�62�2(�..�`(6�T.>�`�0-A�^(�<0�B1�6	�(�1�,
'�+�81�8)�"�"&�<2�@�0�1�G�2�G�"�0�1�
&�2�
&�
'�=�=�6,�>#�4"�.�+�V�
)�
*�*� "�#�02�*�""�	"�
"��:
�'@�R�(
�Z�Z�,�-�-�.�-� 
+�5�@)�V-�
�Z�Z�,�-�;�.�;�0	*�
+�	A�-�
-��. -�D)�6,�8,�8,�8�
<�<� �	�
0�
0rrMc���UOoUOoUdUeU!QQ2oQQV12oQQV22oQoV@mVPmV`mPUmU!)Nc�@``�\sQsQsnU1QksU1QksQsUsU9s!)�(add_subclass_tests.<locals>.CommonFutureic�d:�[OQ2Um[RU_U-U@P!)c��]!r�rrrrr`�Cadd_subclass_tests.<locals>.CommonFuture.__init__.<locals>.<lambda>	s��r)�collections�defaultdict�callsrbr�r�s&*,�rr��1add_subclass_tests.<locals>.CommonFuture.__init__s'���$�0�0��;�D�J��G��d�-�f�-rc�f:�UOQ99*]*
tt$[RU_U-U@!)r!)rerbr!r�s&*,�rr!�:add_subclass_tests.<locals>.CommonFuture.add_done_callbacks-����J�J�*�+�q�0�+��7�,�d�=�f�=�=r)rer�r�s@@r�CommonFuturer_s����	.�	>�	>rric��\sQsQsQsP!)� add_subclass_tests.<locals>.Taskir�r2r3r4r5r6rrrrSrk���rrSc��\sQsQsQsP!)�"add_subclass_tests.<locals>.FutureirrlrrrrZrormrrZc�``�ROROQ5nUU1QkoROU2ROQ5oROOU2oRO	UQ2RO	[UO2Q]-2RO	[RO2Q]-2P!)rYc��h: �ROOU1Qk2REPiw�K
!K3h)c�(:�ROQ2!)r�r�r�s�rr`�Yadd_subclass_tests.<locals>.test_subclasses_ctask_cfuture.<locals>.func.<locals>.<lambda>s������v�(>r)rOr�)r�r+s��rr��Gadd_subclass_tests.<locals>.test_subclasses_ctask_cfuture.<locals>.funcs%�����I�I��� >�?��9�9��9�s�'2�0�2r�r!)rZrOrSr|rk�dictre)r+r�ror�r�sf   @r�test_subclasses_ctask_cfuture�9add_subclass_tests.<locals>.test_subclasses_ctask_cfutures�����k�k�t�y�y�k�)��	��y�y���d�i�i�y�0�����-�-�d�3�������(���������
 �!�$�	&�	
�������O�
 �!�$�	&r)rSrZrvr�)�cls�BaseTask�
BaseFuturerirSrZrvs&      r�add_subclass_testsr{so���x�x�H����J���:�-��
�>�>�
�|�
�
��
�&�,�H��J�)F�%�
&*�C�"��Jrc�.`�\sQsQsnQsQsQsUsP!)�SetMethodsTesti:c�B�[U2Oo[O29UOmoQoU2oUO
UOU2oUOUQ2UOUOOU2Q2UO2UO]*]*Q*oUO[OQ29^tt^2Ug)%fhL9hSO2P!)c��T �[OQ2EPiw�K
]
!K3h�r�r�rrrr��@SetMethodsTest.test_set_result_causes_invalid_state.<locals>.foo@�����-�-��$�$�$��
%�r�r�r}�step\(\): already done)r!rZrr�rO�call_exception_handlerrUr�rkr|r>r�r�r�InvalidStateErrorrG)r+rZ�exc_handlerr�rTror#s&      r�$test_set_result_causes_invalid_state�3SetMethodsTest.test_set_result_causes_invalid_state<s����d��"�"��9=����D��	�	�(�;�	��u���}�}�T�Y�Y��-�����$��'�����I�I�(�(��.��	�	�&�&�(��#�#�A�&�q�)�+�6��
�
#�
#�G�$=�$=�$=�?�?��I�?�?��	
�
�
�s�9C<�<D	�D	c��QQ[2o[U2Oo[O29UO
moQoU2oUOUO
U2oUOVa22UOU29^tt^2UO
OU2PPP2UO2UO]*]*Q*oUO[OQ29^tt^2Ug)%fhKl9h)%fhL9hSO!2P!)c��\sQsQsQsP!)�ESetMethodsTest.test_set_exception_causes_invalid_state.<locals>.MyExciUrrlrrr�MyExcr�Us��rr�c��T �[OQ2EPiw�K
]
!K3hr�r�rrrr��CSetMethodsTest.test_set_exception_causes_invalid_state.<locals>.foo[r�r�r}r�)ror!rZrr�rOr�rUr�rzr|r>r�r�rr�rG)r+r�rZr�r�rTror#s&       r�'test_set_exception_causes_invalid_state�6SetMethodsTest.test_set_exception_causes_invalid_stateTs���	�I�	��d��"�"��9=����D��	�	�(�;�	��u���}�}�T�Y�Y��-�����T�5�7�+�
�
�
�u�
%�
%��I�I�(�(��.�&�	�&�&�(��#�#�A�&�q�)�+�6��
�
#�
#�G�$=�$=�$=�?�?��I�&�
%��
?�?��	
�
�
�s$�!D!�D4�!D1	�*D1	�4E	�=E	r)r2r3r4r5r�r�r6r7r8s@rr}r}:s�����0�rr}�_CFuture�_CTaskzrequires the C _asyncio modulec�`�\sQsQsn\\QP2s\\QP2s\\QP2s	\
\\QP22sQsQs
UsP!)�CTask_CFuture_Testsior�r��_c_all_tasks�_c_current_taskc��QoUOUOU22oUOOU2UO[29^tt^2U;PPP2P!)%fhP!9h)c�� �P!3hr
rrrrrT�HCTask_CFuture_Tests.test_del__log_destroy_pending_segfault.<locals>.coro{rur)rUrOr|rz�AttributeErrorr�rks&  r�&test_del__log_destroy_pending_segfault�:CTask_CFuture_Tests.test_del__log_destroy_pending_segfaultzsU��	��}�}�T�Y�Y���/���	�	�$�$�T�*�
�
�
�~�
.�
.��)�/�
.�
.�
.�s�A+�+A<	�4A<	r)r2r3r4r5�getattrrrSrrZrz�staticmethodr�r�r6r7r8s@rr�r�osO�����5�(�D�)�D�
�W�j�$�
/�F���~�t�4�I����/@�$� G�H�L�*�*rr�c�t�\sQsQs\\QP2s\\QP2s\\QP2s	\
\\QP22sQsP!)�CTask_CFuture_SubclassTestsi�r�r�r�r�r)
r2r3r4r5r�rrSrrZrzr�r�r6rrrr�r��sB���5�(�D�)�D�
�W�j�$�
/�F���~�t�4�I����/@�$� G�H�Lrr�c�x�\sQsQs\\QP2s\Os	\\QP2s
\\\QP22sQs
P!)�CTaskSubclass_PyFuture_Testsi�r�r�r�r�r2r3r4r5r�rrSr�	_PyFuturerZrzr�r�r6rrrr�r��s?��
�5�(�D�)�D�
�
�
�F���~�t�4�I����/@�$� G�H�Lrr�c��\sQsQs\\QP2s\Os	\
\O2s\
\O2sQsP!)�PyTask_CFutureSubclass_Testsi�r�r)r2r3r4r5r�rrZr�_PyTaskrSr��
_py_all_tasksrz�_py_current_taskr�r6rrrr�r��s;��
�W�j�$�
/�F��=�=�D��U�0�0�1�I��� 6� 6�7�Lrr�c�x�\sQsQs\\QP2s\Os	\\QP2s
\\\QP22sQs
P!)�CTask_PyFuture_Testsi�r�r�r�rr�rrrr�r��s?���5�(�D�)�D�
�
�
�F���~�t�4�I����/@�$� G�H�Lrr�c��\sQsQs\O
s\\QP2s	\
\O2s\
\O2sQsP!)�PyTask_CFuture_Testsi�r�r)r2r3r4r5rr�rSr�rrZr�r�rzr�r�r6rrrr�r��s;���=�=�D�
�W�j�$�
/�F��U�0�0�1�I��� 6� 6�7�Lrr�c��\sQsQs\O
s\Os	\
\O2s\
\O2sQsP!)�PyTask_PyFuture_Testsi�r�r2r3r4r5rr�rSrr�rZr�r�rzr�r�r6rrrr�r��s8���=�=�D�
�
�
�F��U�0�0�1�I��� 6� 6�7�Lrr�c��\sQsQs\O
s\Os	\
\O2s\
\O2sQsP!)�PyTask_PyFuture_SubclassTestsi�rr�rrrr�r��s6���=�=�D�
�
�
�F��U�0�0�1�I��� 6� 6�7�Lrr�c�(`�\sQsQsnQsQsUsP!)�CTask_Future_Testsi�c�`�QQ[O2oU1Qko[O2UmUUOQ5nUOO	QRO
]2UOO
U22oUOOU2oUOO2UOUQ2P!SOO2h9h)c�2`�\sQsQsn\Q2sQsUsP!)�+CTask_Future_Tests.test_foobar.<locals>.Futi�c��[gr
)r�r*s&rr��4CTask_Future_Tests.test_foobar.<locals>.Fut.get_loop�s��$�$rr)r2r3r4r5�propertyr�r6r7r8s@rr�r��s����
�
%��
%rr�c��.: �REPiw�K
Q!K3h)Nr�rr�s�rrT�,CTask_Future_Tests.test_foobar.<locals>.coro�s�����I�I��
�r�rYr�r�)
rrZr�rOr�r�r�r|rGrk)r+r�rTror�r�s&    @r�test_foobar�CTask_Future_Tests.test_foobar�s����	%�'�.�.�	%�
	��*�*�,��	�	��4�9�9�%�C��I�I� � ��c�n�n�a�8��9�9�(�(���0�D��)�)�.�.�t�4�C��I�I�O�O������f�%��
�I�I�O�O��s�A5C � C<rY)r2r3r4r5r�r6r7r8s@rr�r��s����&�&rr�c�|`�\sQsQsnPsPsPsPsPsPs	Qs
QsQsQs
QsQsQsQ	sQ
sQsQsQ
sUsP!)�BaseTaskIntrospectionTestsi�c�,`�UOnU1QkQ2oQoU2oUOUO2U2oUO[29^tt^2UOV4Q5PPP2P!)%fhP!9h)c�6:`�\sQsQsnQsU1QksQsUsP!)�LBaseTaskIntrospectionTests.test_register_task_resurrection.<locals>.EvilLoopi�c��P
!r�rr*s&r�	get_debug�VBaseTaskIntrospectionTests.test_register_task_resurrection.<locals>.EvilLoop.get_debug����rc�(:�RUQ*2P!r�r)r+r%�
register_tasks&&�rr��cBaseTaskIntrospectionTests.test_register_task_resurrection.<locals>.EvilLoop.call_exception_handler�s����g�f�o�.rr)r2r3r4r5r�r�r6r7)r9r�s@�r�EvilLoopr��s����
�
/�
/rr�c�� �P!3hr
rrrr�coro_fn�KBaseTaskIntrospectionTests.test_register_task_resurrection.<locals>.coro_fn�rurrY)�_register_taskr�rGrzr�rS)r+r�r�rTrOr�s&    @r�test_register_task_resurrection�:BaseTaskIntrospectionTests.test_register_task_resurrection�sk����+�+�
�	/�	/�	��y������
�
�#��z��
�
�
�~�
.�
.��I�I�d�I�&�/�
.�
.�
.�s�%B�B	�B	c�6`�U1QkQ2oU2o[O2nUOUOR2[	22UOU2UOUOR2U.2UO
U2P!)c�@:`�\sQsQsn\U1Qk2sQsQsUsP!)�BBaseTaskIntrospectionTests.test__register_task_1.<locals>.TaskLikei�c�
:�R!r
rr[s&�rr��HBaseTaskIntrospectionTests.test__register_task_1.<locals>.TaskLike._loops����rc��P
!r�rr*s&rr��GBaseTaskIntrospectionTests.test__register_task_1.<locals>.TaskLike.doner�rr)	r2r3r4r5r�r�r�r6r7�r9rOs@�r�TaskLiker��s!����
�
��
�
�
rr��rr�rkrzrwr��_unregister_task�r+r�rorOs&  @r�test__register_task_1�0BaseTaskIntrospectionTests.test__register_task_1�ss���	�	��z���y�y�{���������-�s�u�5����D�!��������-��v�6����d�#rc�6`�U1QkQ2oU2o[O2nUOUOR2[	22UOU2UOUOR2U.2UO
U2P!)c�6:`�\sQsQsnU1QksQsQsUsP!)�BBaseTaskIntrospectionTests.test__register_task_2.<locals>.TaskLikeic�
:�R!r
rr[s&�rr��KBaseTaskIntrospectionTests.test__register_task_2.<locals>.TaskLike.get_loop�����rc��P
!r�rr*s&rr��GBaseTaskIntrospectionTests.test__register_task_2.<locals>.TaskLike.doner�rr�r2r3r4r5r�r�r6r7r�s@�rr�r�s����
�
�
rr�r�r�s&  @r�test__register_task_2�0BaseTaskIntrospectionTests.test__register_task_2ss���	�	��z���y�y�{���������-�s�u�5����D�!��������-��v�6����d�#rc�D`�U1QkQ2oU2o[O2nUOUOR2[	22UOU2UOUOR2[	22UO
U2P!)c�6:`�\sQsQsnU1QksQsQsUsP!)�BBaseTaskIntrospectionTests.test__register_task_3.<locals>.TaskLikei c�
:�R!r
rr[s&�rr��KBaseTaskIntrospectionTests.test__register_task_3.<locals>.TaskLike.get_loop!r�rc��P	!r�rr*s&rr��GBaseTaskIntrospectionTests.test__register_task_3.<locals>.TaskLike.done$s��rrr�r�s@�rr�r� s����
�
�
rr�r�r�s&  @r�test__register_task_3�0BaseTaskIntrospectionTests.test__register_task_3ss���	�	��z���y�y�{���������-�s�u�5����D�!��������-�s�u�5����d�#rc�z�[O2o[O2o[OU2UO	UOU22UO
V!2UOUOU2U2UOV!2[OP2P!r
)	rr�r�_set_running_loopr�r��_enter_taskr��_leave_task�r+rorOs&  r�test__enter_task�+BaseTaskIntrospectionTests.test__enter_task/s����y�y�{���y�y�{��	�!�!�$�'����$�+�+�D�1�2�����$��
�
�d�'�'��-�t�4�����$��!�!�$�'rc��[O2o[O2o[O2o[OU2UO	V12UO[29^tt^2UO	V22PPP2UOUOU2U2UOV12[OP2P!)%fhKZ9hr
)
rr�rr�r�rzr�r�r�r��r+rrrOs&   r�test__enter_task_failure�3BaseTaskIntrospectionTests.test__enter_task_failure<s����	�	����	�	����y�y�{���!�!�$�'�����%�
�
�
�|�
,�
,����T�)�-��
�
�d�'�'��-�u�5�����%��!�!�$�'�	-�
,���C)�)C9	�2C9	c�8�[O2o[O2o[OU2UO	V!2UOV!2UO
UOU22[OP2P!r
)rr�rr�r�r�r�r�r�s&  r�test__leave_task�+BaseTaskIntrospectionTests.test__leave_taskHsi���y�y�{���y�y�{���!�!�$�'�����$�����$����$�+�+�D�1�2��!�!�$�'rc��[O2o[O2o[O2o[OU2UO	V12UO[29^tt^2UOV22PPP2UOUOU2U2UOV12[OP2P!)%fhKZ9hr
)
rr�rr�r�rzr�r�r�r�r�s&   r�test__leave_task_failure1�4BaseTaskIntrospectionTests.test__leave_task_failure1Qs����	�	����	�	����y�y�{��	�!�!�$�'�����%�
�
�
�|�
,�
,����T�)�-��
�
�d�'�'��-�u�5�����%��!�!�$�'�	-�
,�r�c��[O2o[O2o[OU2UO	[
29^tt^2UO
V!2PPP2UOUOU22[OP2P!)%fhKH9hr
)	rr�rr�rzr�r�r�r�r�s&  r�test__leave_task_failure2�4BaseTaskIntrospectionTests.test__leave_task_failure2`sz���y�y�{���y�y�{���!�!�$�'�
�
�
�|�
,�
,����T�(�-����$�+�+�D�1�2��!�!�$�'�-�
,�s�B1�1C	�:C	c�
`�[O2o[O2nU1QkUmUOU2UO	U2UOUO
R2[22P!)c�
:�R!r
rrYs�rr`�BBaseTaskIntrospectionTests.test__unregister_task.<locals>.<lambda>ls���r)rr�r�r�r�rkrzrwr�s& @r�test__unregister_task�0BaseTaskIntrospectionTests.test__unregister_taskisW����y�y�{���y�y�{��$��
����D�!����d�#��������-�s�u�5rc���[O2o[O2oUOU2UOUO	U2[22P!r
)rr�r�rkrzrwr�s&  r�$test__unregister_task_not_registered�?BaseTaskIntrospectionTests.test__unregister_task_not_registeredqsA���y�y�{���y�y�{�����d�#��������-�s�u�5rr)r2r3r4r5r�r�r�r�rzrSr�r�r�r�r�r�rrrrrr6r7r8s@rr�r��s`�����N����K��K��I��D�'�&$�"$� $� (�
(�(�
(�(�6�6�6rr�c��\sQsQs\\O2s\\O2s	\\O2s\\O2s
\\O2s\\O 2s\O$sQsP!)�PyIntrospectionTestsixr)r2r3r4r5r�r�_py_register_taskr��_py_unregister_taskr��_py_enter_taskr��_py_leave_taskr�r�rzr�r�r�rSr6rrrrrxsl��!�%�"9�"9�:�N�#�E�$=�$=�>���u�3�3�4�K��u�3�3�4�K��U�0�0�1�I��� 6� 6�7�L��=�=�Drr�_c_register_taskc�>�\sQsQs\\Q2%c}\\O2s\\O2s
\\O2s\\O2s\\O2s\\O"2s\O&sQsP!P9s9s
9ssQsP!)�CIntrospectionTestsi�rr)r2r3r4r5�hasattrrr�rr��_c_unregister_taskr��
_c_enter_taskr��
_c_leave_taskr�r�rzr�r�r�rSr6rrrrr�s����u�(�)�)�%�e�&<�&<�=��'��(@�(@�A��"�5�#6�#6�7��"�5�#6�#6�7�� ��!3�!3�4�	�#�E�$9�$9�:���|�|��HL�L��L�)�L�K�+rrc�P``�\sQsQsnPsU1QksQsQsQsQs	Qs
UsU9s!)�BaseCurrentLoopTestsi�c�:�[RU_2[O2UmUOUO2P!r
�rbrcrr�rOr�rgs&�rrc�BaseCurrentLoopTests.setUp��.���
��
���*�*�,��	����D�I�I�&rc��[gr
)�NotImplementedErrorr�s&&rrU�BaseCurrentLoopTests.new_task�s��!�!rc�^�UOUOUOQ52P!rX)r�r�rOr*s&r�!test_current_task_no_running_loop�6BaseCurrentLoopTests.test_current_task_no_running_loop�s"�����$�+�+����+�;�<rc��UO[Q29^tt^2UO2PPP2P!)%fhP!9h)zno running event loop)r�r�r�r*s&r�*test_current_task_no_running_loop_implicit�?BaseCurrentLoopTests.test_current_task_no_running_loop_implicit�s2��
�
#�
#�L�2I�
J�
J�����K�
J�
J�
J�s�;�A	�A	c��``�UU1QkoROU22nROOR2RORO	ROQ52P!)c���: �ROROROQ5R2ROROP2R2RORO2R2P!3hrX)r�r�rOrns��rrT�GBaseCurrentLoopTests.test_current_task_with_implicit_loop.<locals>.coro�sV�����M�M�$�+�+����+�;�T�B��M�M�$�+�+�D�1�4�8��M�M�$�+�+�-�t�4�s�A1A4rY)rUrOr|r�r�rksf @r�$test_current_task_with_implicit_loop�9BaseCurrentLoopTests.test_current_task_with_implicit_loop�sL���	5��}�}�T�V�$���	�	�$�$�T�*����$�+�+����+�;�<rrY)
r2r3r4r5r�rcrUr(r+r0r6r7r�r�s@@rrr�s(�����L�'�
"�=� �	=�	=rrc�L`�\sQsQsn\\O2sQsQs	Us
P!)�PyCurrentLoopTestsi�c�F�[OVOQ5!rX)rr�rOr�s&&rrU�PyCurrentLoopTests.new_task�s���}�}�T�	�	�2�2rr)r2r3r4r5r�rr�r�rUr6r7r8s@rr3r3�s������ 6� 6�7�L�3�3rr3r�c�p`�\sQsQsn\\Q2%c\\O2sLPsQs	Qs
UsP!)�CCurrentLoopTestsi�r�c�F�[[Q2VOQ5!)r�rY)r�rrOr�s&&rrU�CCurrentLoopTests.new_task�s���u�h�'��9�9�=�=rr)r2r3r4r5rrr�r�r�rUr6r7r8s@rr7r7�s4�����u�'�(�(�#�E�$9�$9�:����>�>rr7c�L`�\sQsQsnQs\OQ2sQsUs	P!)�GenericTaskTestsi�c�d�UO[O[O2P!r
)�assertIsSubclassrrSrZr*s&r�test_future_subclass�%GenericTaskTests.test_future_subclass�s�����g�l�l�G�N�N�;rc��]PHo]PHo]PH
o]PHoP![cSOQ2P!h9h[cSO
Q2P!h9h)r�z_asyncio module is missingzC modules are not available)�
_functools�_json�_pickle�_asyncio�ImportErrorrL�skipTest)r+rArBrCrDs&    r�test_asyncio_module_compiled�-GenericTaskTests.test_asyncio_module_compiled�sQ��
	8����
8����
8��	�	�6�7�
8���	9��M�M�7�8�	9�s%�9��	6�6�6�	A�A�Ar)
r2r3r4r5r>r�cpython_onlyrGr6r7r8s@rr;r;�s$����<�
���8��8rr;c�^``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sQ
sUs
U9s!)�GatherTestsBasei�c�:�[RU_2UO2UmUO2UmUOUOP
Q5P!)F)�cleanup)rbrcrd�one_loopr�r�rgs&�rrc�GatherTestsBase.setUp�sC���
��
���*�*�,��
��,�,�.������D�M�M�5��9rc�\�UO%c[OU2J*P!r
)r{rrRr[s&&r�	_run_loop�GatherTestsBase._run_loop�s���k�k�k��"�"�4�(�rc��[]2Tt,tFDp OO2MJ	tovq4oUOUO	V4U2-U@o[
O2oUOU2UO]2UO]2UOUO2UOUOP
2UOUO22UO]2UOUO2UOU2UOUO2,QN2P!ttoh)rl)r�rrl)r�rNrf�_gather�wrap_futuresr�MockCallbackr!r�rQrkr�r�r��assert_called_once_withr�)r+r�r�r�rXr�r��cbs&,      r�_check_success�GatherTestsBase._check_success�s���:?��(�C�(�Q�=�=�.�.�0�(�C���a��l�l�D�-�-�a�A�6�A�&�A��
�
$�
$�
&�����b�!�	���Q��	���Q�����t�}�}�%�������E�*��������$�	���Q�����t�}�}�%�
�"�"�3�'��������y�1��Ds�$Ec�L�UO2UOP
Q5P!)Fr��rYr*s&r�test_success�GatherTestsBase.test_success�s���������e��4rc�,�UOP	Q5P!)Tr�r\r*s&r�test_result_exception_success�-GatherTestsBase.test_result_exception_success�s�����d��3rc	���[]2Tt,tFDpOO2MJ	tovq#qEoUOUO	V#VEU2o[
O2oUOU2[2o	UO]2UOU	2UOUO2UOUO22UOU2UOUO!2U	2UO]2UO#2UO[%22UO!2P!ttohr�)r�rNrfrTrUrrVr!r�r�r�rQr�r�rWr�r}ryr�)
r+r�r�rXr�r�er�rXr#s
&         r�test_one_exception�"GatherTestsBase.test_one_exception�s���@E�a��I��1���4�4�6��I�
��a�A��l�l�D�-�-�a�A�!�<�=��
�
$�
$�
&�����b�!��!��	���Q��	��������t�}�}�%�������
�#�
�"�"�3�'��
�
�c�m�m�o�s�+�	���Q��	���
�	�����'�	���
��Js�$E$c��[]2Tt,tFDpOO2MJ	tovq#qEUOUO	V#VE2QP	-o[
O2oUOU2[2o[2o	UO]2UOU2UO]2UOUO2UOUO22UOU	2UOUO2UOUO22UO!U2UO#UO%2]]V�,2P!ttoh)�r�)r�rNrfrTrUrrVr!r�r�r�r�rQr�r�r�rWrkr�)
r+r�r�rXr�rr�rXr#�exc2s
&         r�test_return_exceptions�&GatherTestsBase.test_return_exceptions
s��=B�1�X�F�X��m�m�1�1�3�X�F�
��a��l�l�D�-�-�a�A�9�3�-1�3��
�
$�
$�
&�����b�!��!���~��	���Q��	�����	���Q�����t�}�}�%��������$�	��������t�}�}�%�������
�#�
�"�"�3�'���������1�c�'8�9��!Gs�$Fc��QOQ	2o[QQU2vq#oUOUO2Q2[QUPPQ5vq#oUOUO2Q2[QUQPQ5vq#oUOUO2Q2[QQUQPQ5vq#oUOUO2Q2[QQQQU2vq#oUOUO2Q2P!)
�
z-Ez-csFalse)�PYTHONASYNCIODEBUG�
PYTHONDEVMODE�1sTruez-X�dev)zimport asyncio.coroutinesz*print(asyncio.coroutines._is_debug_mode()))�joinrrk�rstrip)r+�code�sts�stdout�stderrs&    r�test_env_var_debug�"GatherTestsBase.test_env_var_debug#
s
���y�y�:�;��/�t�T�4�@���V��������(�3�.�t�T�BD�=?�A���V�	
�������(�3�.�t�T�BE�=?�A���V�	
�������'�2�.�t�T�4�BE�=?�A���V�	
�������(�3�/�t�T�5�/3�T�;���V��������'�2r)rNr�)r2r3r4r5rcrQrYr]r`rdrirwr6r7r�r�s@@rrKrK�s2����:�)�
2�5�4��$:�&3�3rrKc�X`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
UsP!)�FutureGatherTestsiB
c��U!r
r)r+rs&*rrU�FutureGatherTests.wrap_futuresD
s���rc�2�[OU-U@!r
�rr�)r+r"r�s&*,rrT�FutureGatherTests._gatherG
s���~�~�t�.�v�.�.rc��UO[Q29^tt^2[O2PPP2P!)%fhP!9h)r�)r�r�rr�r*s&r�,test_constructor_empty_sequence_without_loop�>FutureGatherTests.test_constructor_empty_sequence_without_loopJ
s0��
�
#�
#�L�2I�
J�
J��N�N��K�
J�
J�
J�s�A�A	�	A	c��QoUOOU22oUOU[O2UOUOUO2UOUO2UOUO22UOUO2,2P!)c��6 �[O2!3hr
r~rrrr��RFutureGatherTests.test_constructor_empty_sequence_use_running_loop.<locals>.gatherO
s����>�>�#�#�s�)rNr|rmrrZr�r�rQr�r�rkr�)r+r�r�s&  r�0test_constructor_empty_sequence_use_running_loop�BFutureGatherTests.test_constructor_empty_sequence_use_running_loopN
s��	$��m�m�.�.�v�x�8�����c�7�>�>�2��
�
�c�i�i����/����t�}�}�%�������
�#��������r�*rc���[OUO2UO[OP2[O2oUOU[O2UOUOUO2UOUO2UOUO22UOUO2,2P!r
)rr�rNr�r�rmrZr�r�rQr�r�rkr�)r+r�s& r�/test_constructor_empty_sequence_use_global_loop�AFutureGatherTests.test_constructor_empty_sequence_use_global_loopX
s������t�}�}�-�����.�.��5��n�n������c�7�>�>�2��
�
�c�i�i����/����t�}�}�%�������
�#��������r�*rc��UOO2oUOO2oUO[29^tt^2[
OV2PPP2P!)%fhP!9hr
)rNrfr�rzr�rr�)r+rrs&  r�%test_constructor_heterogenous_futures�7FutureGatherTests.test_constructor_heterogenous_futuresc
sR���}�}�*�*�,�����,�,�.��
�
�
�z�
*�
*��N�N�4�&�+�
*�
*�
*�s�A4�4B	�=B	c�J�[]2Tt,tFDpOO2MJ	oo[OUoUOUOUO2UOUO2UOUO22[OUoUOUOUO2UOUO2UOUO22P!ttohrm)
r�r�rfrr�r�r�rQr�r�)r+r��childrenr�s&   r�#test_constructor_homogenous_futures�5FutureGatherTests.test_constructor_homogenous_futuresi
s���=B�1�X�F�X��O�O�1�1�3�X��F��n�n�h�'���
�
�c�i�i����1����t���'��������$��n�n�h�'���
�
�c�i�i����1����t���'��������$��Gs�$D c��[]2Tt,tFDpOO2MJ	tovq#qEo[OV#VEU2o[
O2oUOU2UO]2UO2UOUO2UOUO22UOU2UOUO22UO!UO#2[O$2UO]2UO2UO'[)22UO#2P!ttohr�)r�rNrfrr�rrVr!r�ryrQr�r�rWr�r�rmr}r{r�r�)	r+r�r�rXr�rrcr�rXs	&        r�test_one_cancellation�'FutureGatherTests.test_one_cancellationt
s���@E�a��I��1���4�4�6��I�
��a�A��n�n�Q�1��+��
�
$�
$�
&�����b�!�	���Q��	���
����t�}�}�%�������
�#�
�"�"�3�'��������)����c�m�m�o�w�/E�/E�F�	���Q��	���
�	�����'�	���
��Js�$E<c
��[]2Tt,tFDoUOO2MJ	tovq#qEqg[OV#VEVgP	Q5o[
O2o	UOU	2UO]2[2o
UOU
2UO2UOUO2UOUO22UO]2UO2[2oUOU2UOO!U2oUO#U]*[O$2UO#U]*[O$2P9U]$U]$UO'U]U
P]PU,2U	O)U2P!ttoh)�r�)r�rNrfrr�rrVr!r�r�r�ryrQr�r�r�r|rmr{rkrW)
r+r�r�rXr�rrcr�r�rX�zde�rter�s
&            r�&test_result_exception_one_cancellation�8FutureGatherTests.test_result_exception_one_cancellation�
sd��%*�1�X�/�%-��!�M�M�7�7�9�%-�/���a�A��n�n�Q�1���F��
�
$�
$�
&�����b�!�	���Q���!��	�����	���
����t�}�}�%��������$�	���Q��	���
��n��	������m�m�.�.�s�3�����c�!�f�g�&<�&<�=����c�!�f�g�&<�&<�=����A���Q������q�#�t�Q��c�:�;�
�"�"�3�'��)/s�%G
r)r2r3r4r5rUrTr�r�r�r�r�r�r�r6r7r8s@rrzrzB
s7�����/��+�	+�'�	%��$(�(rrzc�X`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
UsP!)�CoroutineGatherTestsi�
c�X�,oSFDoU1QkoUOU22J!	U!)c��( �UEPiw�K
!K3hr
rr�s&rrT�/CoroutineGatherTests.wrap_futures.<locals>.coro�
s��� �y�y� �y�rQ)r)r+r�corosr�rTs&*   rrU�!CoroutineGatherTests.wrap_futures�
s.�����C�"�
!��L�L��� ���rc�V``�UU1QkoUOOU22!)c��<: �[OR-R@!3hr
r~)r"r�s��rrT�*CoroutineGatherTests._gather.<locals>.coro�
s�����>�>�4�2�6�2�2���)rNr|)r+r"r�rTs&jl rrT�CoroutineGatherTests._gather�
s���	3��}�}�/�/���7�7rc�8�QoU2oUOUO2U2oUOUO2UO[Q29^tt^2[O
V#2PPP2P!)%fhP!9h)c�� �Q!3hrrrrrrT�@CoroutineGatherTests.test_constructor_without_loop.<locals>.coro�
rrr�)r�rGr�r�rr�)r+rT�gen1�gen2s&   r�test_constructor_without_loop�2CoroutineGatherTests.test_constructor_without_loop�
se��	��v������
�
�#��v������
�
�#�
�
#�
#�L�2I�
J�
J��N�N�4�&�K�
J�
J�
J�s�'B�B	�B	c�``�QoU2nU2nUU1QkoUOOU22oUOUOUO2UOOU2P!)c�� �Q!3hrrrrrrT�DCoroutineGatherTests.test_constructor_use_running_loop.<locals>.coro�
rrc��<: �[ORR2!3hr
r~)r�r�s��rr��FCoroutineGatherTests.test_constructor_use_running_loop.<locals>.gather�
s�����>�>�$��-�-�r�)rNr|r�r�)r+rTr�r�r�r�s&   @@r�!test_constructor_use_running_loop�6CoroutineGatherTests.test_constructor_use_running_loop�
sY���	��v���v��	.��m�m�.�.�v�x�8���
�
�c�i�i����/��
�
�(�(��-rc�X�Qo[OUO2UO[OP2U2oU2o[OV#2oUOUOUO2UOOU2P!)c�� �Q!3hrrrrrrT�CCoroutineGatherTests.test_constructor_use_global_loop.<locals>.coro�
rr)rr�r�r�r�r�r�r|)r+rTr�r�r�s&    r� test_constructor_use_global_loop�5CoroutineGatherTests.test_constructor_use_global_loop�
sq��	����t���/�����.�.��5��v���v���n�n�T�(���
�
�c�i�i����1����*�*�3�/rc���QoUQ2oUOV"UQ2U2oUOUO2UOUO	2,QN2P!)c�� �U!3hr
rr�s&rrT�<CoroutineGatherTests.test_duplicate_coroutines.<locals>.coro�
r�rr�def)rrr�r)rTrQrNrkr�)r+rTr�r�s&   r�test_duplicate_coroutines�.CoroutineGatherTests.test_duplicate_coroutines�
sM��	���K���l�l�1��e��a�0�����t�}�}�%��������'C�Drc��`````�]nUOO2nUU1Qko[OU2UOQ5n[OU2UOQ5nPnUUUU1Qko[OU2UOQ5o[O
UO2UO
UO22UO[O29^tt^2UOOU2PPP2UORO22UO
RO22UO
RO22UO
RO22[O
UO2UOR]2P!)%fhK�9h)r�c��@: �REPiw�K
R]*
nP!K3hr
rrs��rr�?CoroutineGatherTests.test_cancellation_broadcast.<locals>.inner�
rrrYc��n: �[ORR2nREPiw�K
R]d*
nP!K3hr
r~)rPrQ�gathererrs����rr[�?CoroutineGatherTests.test_cancellation_broadcast.<locals>.outer�
s+�����~�~�f�f�5�H��N�N��S�L�E�
�s�5�3�5)rNrfrr�rrRr�ryrzr{r|r�r�rk)	r+rr[r�rPrQr�rr
s	&   @@@@@r�test_cancellation_broadcast�0CoroutineGatherTests.test_cancellation_broadcast�
sK��������,�,�.��	�
�&�&�u�w�T�]�]�C���&�&�u�w�T�]�]�C����	�	�
�!�!�%�'��
�
�>�����t�}�}�-�������
�#�
�
�
�w�5�5�
6�
6��M�M�,�,�Q�/�7�������*�+�����(�(�*�+�����(�(�*�+�����(�(�*�+����t�}�}�-������"�7�
6�s�G$�$G4	�-G4	c�&```�QnUOO2nUOO2nUUU1Qko[OU2UOQ5o[O
UO2RO
P2[O
UO2RO
P2[O
UO2UOUO2[2P!)c��> �UEPiw�K
[Q2gK3h)Nzshould not be ignoredr>rs&rr�:CoroutineGatherTests.test_exception_marking.<locals>.inner�
s����G�G��6�7�7�
�s���c��p: �[ORR2RR22EPiw�K
P!K3hr
r~)r�rXrs���rr[�:CoroutineGatherTests.test_exception_marking.<locals>.outers"�����.�.��q��5��8�4�4�4�s�)6�4�6rY)
rNrfrr�rrRr�rmr}r�)r+r[r�r�rXrs&  @@@r�test_exception_marking�+CoroutineGatherTests.test_exception_marking�
s����	8�
�M�M�'�'�)���M�M�'�'�)��	5�
�!�!�%�'��
�
�>�����t�}�}�-�	���T�����t�}�}�-�	���T�����t�}�}�-����a�k�k�m�\�:rc	��[OQ29^tt^2QoUQ2oUO[29^tt^2UO	U-2PPP2UOUO2UOOO2PPP2P!)%fhKY9h)%fhP!9h)z8asyncio.base_events.BaseEventLoop.call_exception_handlerc�� �U!3hr
rr�s&rrT�2CoroutineGatherTests.test_issue46672.<locals>.coros
�����rr)	rr\rzr�rTrQrNr�r6)r+rTr�s&  r�test_issue46672�$CoroutineGatherTests.test_issue46672s���
�Z�Z�F�
�
�
��U��A��"�"�9�-�-����Q��#�.��N�N�4�=�=�)��M�M�0�0�B�B�D�
�
�.�-��
�
�
�s0�)C�	B-	�AC�-B=
�6B=
�8C�C	�	C	r)r2r3r4r5rUrTr�r�r�r�r�r�r�r6r7r8s@rr�r��
s;�����8�
'�	.�
0�E�#�@;�*E�Err�c�p``�\sQsQsnQsU1QksQ
QksQQksQsQs	Qs
Q	sQ
sQs
QsUsU9s!)�RunCoroutineThreadsafeTestsiz/Test case for asyncio.run_coroutine_threadsafe.c�:�[RU_2[O2UmUOUO2P!r
r!rgs&�rrc�!RunCoroutineThreadsafeTests.setUpr#rc��6 �[OQ2EPiw�K
U%c[Q2gU%cO[OUO2O2[O]2EPiw�K
V*!KuK3h)z"Wait 0.05 second and return a + b.rR�Fail!)rr�r�r�rOry)r+r�rXrLrys&&&&&rr��RunCoroutineThreadsafeTests.add"sf����m�m�D�!�!�!���w�'�'��� � ����+�2�2�4��-�-��"�"�"��u��
	"�

#�s,�B�B�B�B�AB�B�B�Bc��UO]]VQ5o[OVPO2oU%c'UOO	UO
P2UO
U2UO29%fUO2!!SO29%fSO2hh9h)z$Run add coroutine in the event loop.)rLry)	r�r�run_coroutine_threadsaferO�call_soon_threadsaferAr�r�ry)r+rLryr��advance_cororTrvs&&&&&  r�target�"RunCoroutineThreadsafeTests.target,s����x�x��1�4�x�7���1�1�$�	�	�B���
�I�I�*�*�4�9�9�d�;�	-��=�=��)��K�K�M�,�,�V�]�]�_�,��F�K�K�M�,�,�V�]�]�_�,�s�%B � C�8Cc��UOOPUO2oUOOU2oUO	U]2P!)z9Test coroutine submission from a thread to an event loop.)rO�run_in_executorr�r|rk)r+rvr�s&  r�test_run_coroutine_threadsafe�9RunCoroutineThreadsafeTests.test_run_coroutine_threadsafe=s@�����*�*�4����=�����-�-�f�5�������#rc�J�UOOPUOP	2oUO[29^tt^2oUOOU2PPP2UO
QWOO2P!)%fhK89h)zUTest coroutine submission from a thread to an event loop
when an exception is raised.r�)	rOr�r�rzr�r|r�r}r")r+rv�exc_contexts&  r�,test_run_coroutine_threadsafe_with_exception�HRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_with_exceptionCsm�����*�*�4����d�C��
�
�
�|�
,�
,���I�I�(�(��0�-��
�
�g�{�4�4�9�9�:�-�
,�s�B�B"	�B"	c��`�U1QkoROOPU2oRO[O29^tt^2ROOU2PPP2[ORO2[ORO2FD"oROUO22J$	P!)%fhKy9h)zRTest coroutine submission from a thread to an event loop
when a timeout is raised.c�*:�RO]Q5!)r�r��r�r*s�rr`�XRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_with_timeout.<locals>.<lambda>Ns���4�;�;�q�;�1r)rOr�rzrr�r|rrRrzr�r�)r+r�rvrosf   r�*test_run_coroutine_threadsafe_with_timeout�FRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_with_timeoutKs����2�����*�*�4��:��
�
�
�w�3�3�
4�
4��I�I�(�(��0�5����t�y�y�)��%�%�d�i�i�0�D��O�O�D�I�I�K�(�1�	5�
4�s�C�C)	�"C)	c�`�U1QkoROOPU2oRO[O29^tt^2ROOU2PPP2P!)%fhP!9h)zTTest coroutine submission from a thread to an event loop
when the task is cancelled.c�*:�ROP	Q5!)Tr�r�r*s�rr`�ZRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_cancelled.<locals>.<lambda>Zs���4�;�;�d�;�3r)rOr�rzrr{r|)r+r�rvsf  r�,test_run_coroutine_threadsafe_task_cancelled�HRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_cancelledWsX���4�����*�*�4��:��
�
�
�w�5�5�
6�
6��I�I�(�(��0�7�
6�
6�
6�s�A2�2B	�;B	c�`�QoROOPU1Qk2o[O2oROO	U2ROROOROO22ROO
U2RO[29^tt^2oROOU2PPP2RO[UO2]2UOvvqVoROUQ*WO2P!)%fhKk9h)zbTest coroutine submission from a thread to an event loop
when the task factory raise an exception.c��[gr
)�	NameError)rOrTs&&r�task_factory�fRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception.<locals>.task_factorycs���Orc�*:�ROP	Q5!)T)r�r�r*s�rr`�bRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception.<locals>.<lambda>gs���$�+�+�4�+�8rr})rOr�rrVr5r�re�get_task_factoryrzr�r|rkr��call_args_listr�r})r+r�r�r�r�rOr%r�sf       r�4test_run_coroutine_threadsafe_task_factory_exception�PRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception_s���	��i�i�'�'��8�:���*�*�,���	�	�'�'��1�	
����	�	�2�2��	�	�2�2�4�	6��	�	�"�"�<�0��
�
�y�
)�
)�[��I�I�(�(��-�*�	
����X�4�4�5�q�9�"*�"4�"4����������-�{�/D�/D�E�
*�
)�s�E�E	�E	c�l````�PnPnU1QknROROOROO22UUU1QkoROO	U22RORO
22RORO
22P!)Nc�8:�[OVQ5nR!rX)rrS)rOrTros&&�rr��ZRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_and_cancel.<locals>.task_factorys����<�<��0�D��Krc��: �ROOR2[O[O]
2RO2n[O]2EPiw�K
RO2P!K3hr�)rOrerr�r�ry)r+r��
thread_futures���rr��TRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_and_cancel.<locals>.target�s]�����I�I�&�&�|�4�#�<�<�W�]�]�2�=N�PT�PY�PY�Z�M��-�-��"�"�"�� � �"�
#�s�A,B	�/B�0B	)r�rOrer�r|r�r�)r+r�ror�rsf @@@r�(test_run_coroutine_threadsafe_and_cancel�DRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_and_cancel{s������
�	�
	
����	�	�2�2��	�	�2�2�4�	6�	#�	
�	�	�$�$�V�X�.�������(�)����
�/�/�1�2rrY)FF)FFNF)r2r3r4r5�__doc__rcr�r�r�r�r�r�r�rr6r7r�r�s@@rr�r�s;����9�'�
�-�"$�;�
)�1�F�83�3rr�c�F``�\sQsQsnU1QksU1QksQsQsUsU9s	!)�
SleepTestsi�c�:�[RU_2[O2UmUOUO2P!r
r!rgs&�rrc�SleepTests.setUp�r#rc�h:�UOO2PUm[RU_
2P!r
�rOrGrb�tearDownrgs&�rr�SleepTests.tearDown��#����	�	������	�
���rc�```�]nU1QknUUU1QkoROOU22ROR]2P!)r�c�:�RU*
nP!r
r)rr�s&�r�
inc_result�.SleepTests.test_sleep_zero.<locals>.inc_result�s����c�M�Frc���: �ROOR]2ROR]2[O]]
Q5EPiw�K
oROR]2RU2P!K 3h)rr�)rOr�rkrr�)rrr�r+s ���rrT�(SleepTests.test_sleep_zero.<locals>.coro�s\�����I�I���
�A�.����V�Q�'��
�
�a��3�3�3�C����V�Q�'��s�O�4�s�AA3�A1�"A3)rOr|rk)r+rTrr�sf @@r�test_sleep_zero�SleepTests.test_sleep_zero�s8�����	�	�	
�	�	�$�$�T�V�,������$rrY)
r2r3r4r5rcrrr6r7r�r�s@@rr	r	�s����'�
�
%�%rr	c�@``�\sQsQsnU1QksU1QksQsUsU9s!)�CompatibilityTestsi�c�:�[RU_2[O2UmUOUO2P!r
r!rgs&�rrc�CompatibilityTests.setUp�r#rc�h:�UOO2PUm[RU_
2P!r
r
rgs&�rr�CompatibilityTests.tearDown�rrrY)	r2r3r4r5rcrr6r7r�r�s@@rrr�s����'�
�rr�__main__r�)>rrcrr�r�rrr1r�rMr��unittestrrrrr�test.test_asynciorrr�r�test.support.script_helperr�test.support.warnings_helperrrrrr&r(r;rMr{r}�
skipUnlessr�TestCaser�r�r�r�r�r�r�r�r�r�rrrr3r7r;rKrzr�r�r	rr2r�rrr�<module>r&s������	�	�
�	�
���������1��7�8�0�	�
?�
(� 
�
���h*0�h*0�TU7�t2�2�j
���W�W�j�1�.�.��U�H�-�5�7�*�-��$�-�-�*�7�*�"
���W�W�j�1�.�.��U�H�-�5�7��I�-��1D�1D�I��7�I�
���W�U�H�-�5�7��I�=�*�2E�2E�I��7�I�
���W�W�j�1�5�7��8�=�*�2E�2E�8��7�8�
���W�U�H�-�5�7�I�=�*�*=�*=�I�7�I�
���W�W�j�1�5�7�8�=�*�*=�*=�8�7�8�8�M�>�&�/�/�8��8�M�:�3F�3F�8��8�
���W�U�H�-�5�7�&��,�,�&�7�&�0R6�R6�j�:�.�.�0J��
���W�U�$6�7�5�7�
M�*�-�-�/I�
M�7�
M�=�=�<3�-�z�/B�/B�3�
���W�U�H�-�7�7��U�$5�6�5�7�>�,�j�.A�.A�>�7�>�8�z�*�*�8�0c3�c3�LY(���)<�)<�Y(�xyE�?�J�,?�,?�yE�xw3�*�"5�"5�w3�t%��$�$�%�:��,�,���z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit