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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_asyncio/__pycache__/test_tasks.cpython-315.opt-2.pyc
R
>lqj��c��]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]QH(Gs]QH$Gs]PH4s
]QH4Gs]QH4Gs]QH@Gs]QHLGs]QHTGs]QH\GsQ	sQ
sQHQksQsQ
Q2sQQ2sQQ2sQs QQ2s!\
OD\#\Q29%c
\#\Q2Q2QQ\\!\OH22s%\
OD\#\Q29%c
\#\Q2Q2\ QQ\\OH222s&\
OD\#\Q2Q2\ QQ\\OH222s'\
OD\#\Q2Q2\ QQ \\OH222s(\
OD\#\Q2Q2Q!Q"\\OH22s)\
OD\#\Q2Q2Q#Q$\\OH22s*Q%Q&\\!\OH2s+\ Q'Q(\\OH22s,\
OD\#\Q2Q2Q)Q*\OH22s-Q+Q,2s.Q-Q.\OH\.2s/\
OD\#\Q/2Q2Q0Q1\OH\.22s0Q2Q32s1Q4Q5\1\OH2s2\
OD\#\Q29%c
\#\Q62Q2Q7Q8\1\OH22s3Q9Q:\OH2s4Q;Q<2s5Q=Q>\5\OH2s6Q?Q@\5\OH2s7QAQB\OH2s8QCQD\OH2s9QEQF\OH2s:\;QG6Xc\
Ox2P!P!)I�)�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!3hrrrrr�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!�r)�__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!rr)r-r$s&*r�__call__�Dummy.__call__D���rr)�__name__�
__module__�__qualname__�__firstlineno__r.r1�__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!rr)r-r%s&*r�throw�CoroLikeObject.throwLr3rc��P!rrr,s&r�close�CoroLikeObject.closeOr3rc��U!rrr,s&r�	__await__�CoroLikeObject.__await__Rs���rr)
r4r5r6r7rCrFrIrLr8r9r:s@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-rQ�cororRr'rSs&&&&&&r�new_task�BaseTaskTests.new_task\s���~�~�"�"�4��\g�"�h�hrc�<�UOOUQ5!��rQ)rT�Future�r-rQs&&r�
new_future�BaseTaskTests.new_future_s���~�~�$�$�$�$�/�/rc��:`�[RR_2RO2RmROO	RO
2U1QkROmP!)c�<:�RORO2!r)r^rQr,s�r�<lambda>�%BaseTaskTests.setUp.<locals>.<lambda>fs���$�/�/�$�)�)�*Dr)�super�setUp�
new_test_looprQ�set_task_factoryrW�
create_future�r-rTsf�rre�BaseTaskTests.setUpbs>���
��
���&�&�(��	��	�	�"�"�4�=�=�1�"D��	�	�rc��UOO[*oUOUO[12UOU[2P!r)rTrU�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!3hrrrrrrV�;BaseTaskTests.test_task_cancel_message_getter.<locals>.coron�����r�_cancel_message�
my message)rWrQ�
assertHasAttrrmrx�cancel�assertRaisesr�CancelledError�run_until_complete�	exceptionr$�r-rV�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!3hrrrrrrV�;BaseTaskTests.test_task_cancel_message_setter.<locals>.coro}rwrryzmy new message)rWrQr{rxrmr|rr}r~rr$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�r4r5r6r7r�r8r9r:s@r�Evilr��s����
�
rr�c��: �R2!3hrr)r�s�r�run�0BaseTaskTests.test_task_del_collect.<locals>.run�s
�����6�M�s�	)rQr~r�gather�rangerW)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!K3hrr��futs&rr��1BaseTaskTests.test_other_loop_future.<locals>.run�s����I�I�s���zTask .* got Future .* attached)r�new_event_loopr^�assertRaisesRegex�RuntimeErrorrQr~rI)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!K3hrr�rqs�r�test�6BaseTaskTests.test_task_awaits_on_itself.<locals>.test�s
�����J�J�����r[zTask cannot await on itself)r�
ensure_futurerQr�r�r~)r-r�rqs& @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�)rWrQr~�
assertTrue�donerm�result�assertIs�_loop�get_looprr��set_event_looprI)r-r�r�rQs&   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�rr[r��no current event loopc��D: �[OR22!3hr)rr�)r�s�rr��8BaseTaskTests.test_ensure_future_coroutine.<locals>.test�s�����(�(���3�3��� )rr�rQr�r�r~r�r�rmr��
addCleanuprIr�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)�kor[)r^rQ�
set_resultrr�r~r�r�rmr�r�r�r�r|�
ValueErrorrI)r-�f_orig�frQs&   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�r[)rWrQrr�r~r�r�rmr�r�r�r�r|r�rI)r-r��t_origr�rQs&    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�rV�r-rVs&&r�__init__�?BaseTaskTests.test_ensure_future_awaitable.<locals>.Aw.__init__s�� �	rc�8�UOO2!r)rVrLr,s&rrL�@BaseTaskTests.test_ensure_future_awaitable.<locals>.Aw.__await__
s���y�y�*�*�,�,rr�)r4r5r6r7r�rLr8r9r:s@r�Awr�
s����
!�
-�
-rr�c�� �Q!3hr�rrrrrV�8BaseTaskTests.test_ensure_future_awaitable.<locals>.coror�rr[r�)rr�r�r�r~rmr�)r-r�rVrQr�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!)rr��r�)r�sleeprLr,s&rrL�EBaseTaskTests.test_ensure_future_task_awaitable.<locals>.Aw.__await__s���}�}�Q�t�4�>�>�@�@rr)r4r5r6r7rLr8r9r:s@rr�r�s����
A�
Arr�r[r�)rr�r�r�r~r�r�rmr�ro�get_coro�types�
CoroutineTyperI)r-r�rQrqs&   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�)r|�	TypeErrorrr�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 argumentr[)rr�r^rQr�r�r�rI)r-rQr�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!K3hrr)�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_stackrm�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!K3hrZ)rr�rQ)rrr-s���r�runner�,BaseTaskTests.test_get_stack.<locals>.runnerIs%�����%�%�c�e�$�)�)�<�A��G�G�s�/<�:�<�rQr~)r-rrr�rsf @@@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'>)rQ�	set_debugrmr4rr6r5�
test_utils�get_function_sourcerW�add_done_callbackr*r�_source_traceback�reprr{r|rr}r~)	r-r��filename�linenor�gen�
coro_qualnamer�rVs	&        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+)')rWrQ�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�r0ri�h�:�rR�	987654321i�[�	123456789)rWrQrm�get_name�set_namer~�r-r�r�s&  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�r0rz{6})rWrQrErmrDr~rFs&  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
!K3hrrr�s&r�wait_for�7BaseTaskTests.test_task_repr_wait_for.<locals>.wait_for�s����9�9��9�����z<Task .* wait_for=%s>)rQrr^rWr �run_brieflyrr$r2�escaper�r~)r-rPr�rqs&   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*!KK3hrr)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?rrrrrZ�.BaseTaskTests.test_task_basics.<locals>.inner1������rc�� �Q!3h)��rrrrr[�.BaseTaskTests.test_task_basics.<locals>.inner2�r�ri)rmrQr~)r-r\r�rZr[s&  @@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)��rm)�KeyError�	ExceptionrWrmr#r�r"r$)r%rq�chainedrQrir-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)rr�r�rWr~rI)r-r�rqrQrisf  @@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�� �Ug3hrr)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�)rorprW�
BaseExceptionr")r%rq�	has_cyclerQrwr-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)rr�r�rWr~rIrm)r-r�rqr|rQrwsf  @@@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��
�rr�rrrrq�+BaseTaskTests.test_cancelling.<locals>.task	�����-�-��#�#�#���(�&�(� cancelling )rr�rW�assertFalse�
cancelling�assertNotInr$r�r{�assertInr|r}r~rI�r-rQrqr�s&   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�)rr�r}�current_task�uncancelr,s�rrq�/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�)rr�rWr~r�r�r{r�r$rmr�r��	cancelledr�r|r}r�r�rIr�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�r{)rq�	timed_outs��r�
on_timeout�dBaseTaskTests.test_uncancel_structured_blocks.<locals>.make_request_with_timeout.<locals>.on_timeout`s��� �	����
r)
r�r��
call_laterrr�r{r�r#�sysrr}�TimeoutErrorr�)
r�r�rQ�structured_block_finished�outer_code_reachedr��timeout_handlerqr�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�)	rr�rWr~r�r�rmr�rI)r-rQr�r8r�r�r�r9sf       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
]*!K3hrrr�s�rrV�<BaseTaskTests.test_uncancel_resets_must_cancel.<locals>.coro�s�����I�I��
�r�r[)rr�r\rWr~r�r�r{rmr�r��_must_cancelr�r�rI)r-rVrQrq�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�rrrrq�'BaseTaskTests.test_cancel.<locals>.task�s����-�-��%�%�%��
&�r�)rfrW�	call_soonr{r|rr}r~r�r�r�r�)r-r'rQrqr�sf    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!KJK3hr!)rWrr�r{�waitr��rqr��pendingr�rQr-r�s   ����rrV�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)rr)�ryr�)��r���subTestrr�r�rWr|r}r~rrmr$r(�r-�cases�
expected_argsrVrqr�r%�actualr�rQr�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!�rWrr�r{r�rr�s   ����rrV�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�rr�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�)rWr�r{rr}r�)�
inner_task�exr�rQr-r�s  ����rrV�?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�)
rr�r�rhrWr|r�r~rrmr$r(r})	r-rVrqr�r%r�r�rQr�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�)rWr{rr�r)rqr�r�rQr-r�s   ���rrV�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�)rr�r�rWr|r}r~rrmr$r()r-rVrqr�r%r�rQr�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�rrrrq�-BaseTaskTests.test_cancel_yield.<locals>.taskWs4����-�-��"�"�"��-�-��"�"�"��
#�"���A
�A�A
�A�A
�A
)
rWrQr rSr{r|rr}r~r�r�r�r�)r-rqr�s&  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
]!K3hrr�r�s�rrq�4BaseTaskTests.test_cancel_inner_future.<locals>.taskh������G�G��
�r�)r^rQrWr rSr{r|rr}r~r�r��r-rqr�r�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
]!K3hrrrs�rrq�BBaseTaskTests.test_cancel_both_task_and_inner_future.<locals>.taskwrr�)
r^rQrWr rSr{r|rr}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�rr})�fut1�fut2s��rrq�5BaseTaskTests.test_cancel_task_catching.<locals>.task�s8�����J�J�
��
�
�
����)�)�
��
�s9�A� �A�$�"�$�A�$�=�=�A�=�A�r^rQrWr rSr��_fut_waiterr�r{r�r�r~rmr�)r-rqr�r�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%3hrr)r�rr�fut3s ���rrq�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-rqr�r�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)r{r�r�rr��r-r�s��rrq�4BaseTaskTests.test_cancel_current_task.<locals>.task�s9����
�H�H�J��O�O�A�N�N�+��-�-��$�$�$��
%�s�AA�
A�A�
rr�r�rWr�r�r|r}r~r�r�r�r{r�sf  @r�test_cancel_current_task�&BaseTaskTests.test_cancel_current_task�s�����%�%�'�����D�!�	�
�M�M�$���'���������'�����"�"�D�$;�$;�Q�	@��������!�������
�&�������(��������$rc�``�[O2oROU2UU1QkoROV22nRO	RO22RO
[OUOR2RORO22RORO22RO	RO2RO	RO22P!)c��h: �RO2RORO2]!3h)�)r{r�r�r$s��rrq�.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)rIr[s�rrb�8BaseTaskTests.test_cancel_awaited_task.<locals>.<lambda>�s����
�
�rc��.: �REPiw�K
P!K3hrrr�s�r�nested�6BaseTaskTests.test_cancel_awaited_task.<locals>.nested��
�����I�I�r�c��: �RORR22n[O]2EPiw�K
RO2REPiw�K
P!K"K3hr!�rWrr�r{)rQr3�nested_taskr-rqs�����rrV�4BaseTaskTests.test_cancel_awaited_task.<locals>.coro�sL�����-�-��f�h�7�K��-�-��"�"�"�
�K�K�M����

#�
��!�3A�A�A�A�A�A)
rr�r�r^rWr|r}r~r�r�)r-rVr�rQr3r8rqsf @@@@@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)rqrQr3r-s ���rrV�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�
rr�r�rWr~�failr}�	traceback�
format_excrA�r-rVrqrrQr3sf   @@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�)rqr�r�rQr3r-s   ���rrV�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�)rr��stop)rQ�xs��rrq�;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])rfrWr|r�r~rmrlrr�r�r��timer{rr})r-r'rqr�r�rQrbsf    @@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!3hrrrrrrV�.BaseTaskTests.test_log_traceback.<locals>.corohrwrzcan only be set to False)rWrQr�r��_log_tracebackr~�r-rVrqs&  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�rr�rm�set�r�r�r�rYr-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$�rfrWrr�r~rmr�rd�r-r'rQrr�r�rYsf    @@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!3hrr��ss&rrV�:BaseTaskTests.test_wait_duplicate_coroutines.<locals>.coro��
����H�rr��spamc3�L�SF �DpO2w�	J	P!3hrr���.0r�s& r�	<genexpr>�?BaseTaskTests.test_wait_duplicate_coroutines.<locals>.<genexpr>�s������A�X�X�Z�Z����$)	rQ�create_taskrWrr�r~r�rmrw)r-rV�crqr�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)	r|r�rQr~rr�rwr�rI)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�)rfrWrr�r��FIRST_COMPLETEDr~rmr�r�r��assertIsNoner�r�rd�advance_time)r-r'rQr�rYrqr�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)rr�)
rQrhrWrr�r�r�r��_asyncio_awaited_byr{)�immortalr�r-s  �rrV�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/)rQr~rWr�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�)rWrQrr�r�r~rmr�r�r�r�)r-r�r�r�rYrqr�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��rfrWrr�r��FIRST_EXCEPTIONr~rmr�rdr��	r-r'rQr�r%rYrqr�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��rr�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)rr�s& rr��FBaseTaskTests.test_wait_with_exception.<locals>.foo.<locals>.<genexpr><s��D���D�q�K�K�M���D�s�*�*)rr�rm�lenrw)r�r��errorsr�rYr-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)rfrWrr�r~r�rd)r-r'rQr�rr�rYsf    @@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�)	rfrWrr�r~r�rdr�r�)r-r'rQrr�rYsf   @@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�)rfrWrr�r~r�rmrwr�rdr�)r-r'rQr�rYr�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)rr��iterrmrwrxs  ���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!3hrrrzs&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)rW)r��ir�rQr-s& ���rr��BBaseTaskTests.test_wait_generator.<locals>.main.<locals>.<genexpr>�s"��9���9�a�T�]�]�4��a��1�1�9�s�&.r�)r�rr��
ALL_COMPLETEDrmr�)rr�r�r�rQr-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�rfr~)r-r�r�rQsf @@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)rr�rrrrr'�,BaseTaskTests.test_as_completed.<locals>.gen�s����G��G��J��G���c���: �[OU2EPiw�K
ROU2R%f"QR7cQR7cP	nROQ2U!K@3h)Nr�rYg�Q���?)rr��addr�)�dtrb�	completedrQ�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!3hrrrs&  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�rYrqr�:Nr�N)r�r4rf�slow_callback_durationrwr~rWr�rdr�rm)
r-r'r�r	rrr�rYr�r�r�rQrs
&         @@@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)rwrrr�)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!3hrr�r�s&rrV�BBaseTaskTests.test_as_completed_same_tasks_in_as_out.<locals>.coro�r�rz5Got original coroutines out of as_completed iterator.r�rYr��dz>Only tasks should be yielded from as_completed iterator as-is.)�
contextlib�closingrr��	frozensetr~�failureExceptionr�)
r-rrVrQ�
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�?)rrr�rr��rr�rBr%r�rYrQs    ���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+)rrrr�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�rqrYr,)rr�)r�r4rfr�rr�r~rWrmr�ror�r�rdr�r�)	r-r'r	rrr�r�rYrQs	&     @@@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��rrrm�r�rBr�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�r4rr�rfr~rWrI)r-r'r	rrrQr�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!�rrrrmr��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!3hrrrs&rrV�=BaseTaskTests.test_as_completed_resume_iterator.<locals>.corojr�rr)rrr�rm)rrrr�r�r4r~�assertCountEqual)r-r	rrVrQr�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�rYc���: �[[OR22oRO[	U2]2U]*EPiw�K
oROUQ2ROQRO
22ROQ2U]*EPiw�K
oROUQ2ROQRO
22P!K�K:3h)r�r�rRrYr�)�listrrrmr�r�rdr�)�futsrb�y�fsrQr-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 )rfrr�r~)r-r'r�rYr�rXrQsf    @@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)rUrr)rXs&rr	�@BaseTaskTests.test_as_completed_concurrent.<locals>.try_iterator�s�����,�,�R�0�1�1�s�!#c��r �[OU2Tt,tPiw�K
pMJKBto!ttoh3hr�rr)rXr�s& rr�FBaseTaskTests.test_as_completed_concurrent.<locals>.try_async_iterator�s-���%,�%9�%9�"�%=�>�%=�>�>��A�>�>��>�s$�7�2�.�,�.�2�.�2�7rrRr�rYc	��: �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!3hrr�r�s& rr��KBaseTaskTests.test_as_completed_concurrent.<locals>.test.<locals>.<genexpr>�s��T���T������T�r�r�rY)rmr�rr�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�r4rr�rfr~)
r-r'r	rr�rYr�rQrXrs
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!3hrrr�s&rrV�BBaseTaskTests.test_as_completed_duplicate_coroutines.<locals>.coro�r�rc��: �,oRQ2o[OVRQ2,2FDoSOUEPiw�K
2J 	U!K3h��hamr�r�r�r�r�rVs   �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�r4rWrQr~r�rmrwr�)r-r	rrr�r�rVs&     @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?rrrrrV�DBaseTaskTests.test_as_completed_coroutine_without_loop.<locals>.coro�r`rr�)r�rIr�r�rrrU)r-rVr�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?rrrrrV�HBaseTaskTests.test_as_completed_coroutine_use_running_loop.<locals>.coro�r`rc���: �[[OR2,22oRO[	U2]2ROU]*EPiw�K
]*2P!K3h�r)rUrrrmr�)rVrVr-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-rQr�rVsf  @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)	rfrWr~r�r�rmr�r�rd�r-r'rQr�r�sf    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!3hrrrrrr'�7BaseTaskTests.test_sleep_when_delay_is_nan.<locals>.gen��������	c��f �[O[Q22EPiw�K
P!K3h)�nan)rr�r�rrrr��;BaseTaskTests.test_sleep_when_delay_is_nan.<locals>.sleepers����-�-��e��-�-�-�s�%1�/�1)rfrWr|r�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!rr)�delay�callbackr$�handle�orig_call_laters&&*��rr��3BaseTaskTests.test_sleep_cancel.<locals>.call_laters���$�U�<�t�<�F��Mr)rfrWrr�r�r rSr��
_cancelledr{r�)r-r'rQr�r�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!K3hrr�)r�s&rr��;BaseTaskTests.test_task_cancel_sleeping_task.<locals>.sleep3r�r�c���: �RORRQ22oROQUO2UEPiw�K
Q!K[OcQ!h9h3h)r�r�zslept inr�)rWr�r{rr})r�rQr-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�)rfrmr~r�rd)r-r'r��doerrQr�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!K3hrrr�s�rrV�:BaseTaskTests.test_task_cancel_waiter_future.<locals>.coroGr5r�)r^rQrWr rSr�rr{r|rr}r~r�r�r�)r-rVrqr�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�)	rWrQr�r�r��
set_exceptionr�rmr~)r-r�r'rqs&   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_addedrdr�)r-r$�kwdsrTs&*,�rr��;BaseTaskTests.test_step_result_future.<locals>.Fut.__init__js��� %��
��� �$�/�$�/rc�::�P	Um[RU_U-U@P!r�)r�rdr"�r-r$�kwargsrTs&*,�rr"�DBaseTaskTests.test_step_result_future.<locals>.Fut.add_done_callbackns��� $��
���)�4�:�6�:r)r��	r4r5r6r7r�r"r8r9�
__classcell__�rTr;s@@r�Futr�is����
0�
;�
;rr�r[c��.: �REPiw�K
nP!K3hrr)r�r�s��r�wait_for_future�>BaseTaskTests.test_step_result_future.<locals>.wait_for_futureus�����Y�Y�F�Y�r�)rr\rQrWr rSr�r��objectr�r�r�r�r�)r-r�r�r�r�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[OcRgh9h3hrr)�base_excr�s��r�notmutch�@BaseTaskTests.test_baseexception_during_cancel.<locals>.notmutch�s-����
��i�����)�)�
���
�s$�6����6��3�3�6)
rf�
SystemExitrWr rSr{r�r�r|r�r�r�r)r-r'rQr�rqr�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!rrrrr�fn�2BaseTaskTests.test_iscoroutinefunction.<locals>.fn�s��rc3� �Pw�	P!3hrrrrr�fn1�3BaseTaskTests.test_iscoroutinefunction.<locals>.fn1�r�r�c�� �P!3hrrrrr�fn2�3BaseTaskTests.test_iscoroutinefunction.<locals>.fn2�rwr)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�rr��iscoroutinerQr~rm)r-r�rVr�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!3hrrr�s�rr��IBaseTaskTests.test_coroutine_non_gen_function_return_future.<locals>.func�s�����J�s�c��4: �ROQ2P!3hr��r�r�s�rrV�IBaseTaskTests.test_coroutine_non_gen_function_return_future.<locals>.coro�s�����N�N�6�"�s�)r^rQrWr~rmr�r�)r-r�rVr8r9r�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!)r[c���: �RORO2R2ROROP2R2RORO2R2P!3hr)r�r�)rQr-rqs&��rrV�-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�rQrWr~rksf @r�test_current_task�BaseTaskTests.test_current_task�sx������$�+�+����+�;�<�	5��}�}�T�Y�Y��T�Y�Y��8���	�	�$�$�T�*����$�+�+����+�;�<rc�``````�ROROROQ52RORO2nRORO2nUUUU1QkoUUUU1QkoRO	ROURO22nRO	ROURO22nROO[ORR122ROROROQ52P!)r[c���: �RORO2RI2REPiw�K
RORO2RI2ROP	2P!K83hr�r�r�r�)rQrrr-�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)rQrrr-�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�rQr^rWr~rr�)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!)rc��: �REPiw�K
ROQ2P!K[OcR]*
ngh9h3h)Nzgot past sleep() in inner())rLrr})�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!h9h3hrr�rrs��rr\�<BaseTaskTests.test_yield_future_passes_cancel.<locals>.outer	sA����
��g�
�
�����	���)�)�
�����
�s6�A	�$�"�$�A	�$�A�
A�A	�A�A	r[)r^rQrr�r rSr{r~rmr�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!)rc��@: �REPiw�K
R]*
nP!K3hrr�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�DeprecationWarningrr�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	�?Br[�r^rQrr�r rSr{r|r}r~r�rmrsf  @@@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^rQr�shieldr�r~rm)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^rQrr%r rSr�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^rQrr%r rSr{r�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^rQrr%r rSr{r�r�rm�
_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�rQ�set_exception_handlerr^rr%r rSr{r��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�rQr5r^rr%r rSr{r�rp�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^rQr�r~rr%rm)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)rc��@: �REPiw�K
R]*
nP!K3hrrrs��rr�/BaseTaskTests.test_shield_effect.<locals>.inner�rrc��r: �[OR22EPiw�K
R]d*
nP!K3hr�rr%rs��rr\�/BaseTaskTests.test_shield_effect.<locals>.outer�s(�����.�.���)�)�)��S�L�E�
*�s�!7�5�7r[r!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^rQrr�r%r rSr{r�r�r�rmr�)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^rQrr%r�r rSr{rorr}r�r�r�)r-rPrQrZr[rRs&     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?rrrrrV�>BaseTaskTests.test_shield_coroutine_without_loop.<locals>.coro�r`rr�)r�rIr�r�rr%�r-rVrs&  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?rrrrrV�BBaseTaskTests.test_shield_coroutine_use_running_loop.<locals>.coro�r`rc��D: �[OR22!3hrrKr�s�rr��BBaseTaskTests.test_shield_coroutine_use_running_loop.<locals>.test�s�����>�>�$�&�)�)�r�)rQr~rmr�)r-r�r\r�rVs&   @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?rrrrrV�ABaseTaskTests.test_shield_coroutine_use_global_loop.<locals>.coro�r`r)rr�rQr�r%rmr�r~)r-rVr\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!3hrrb)�awr�s& rr�HBaseTaskTests.test_as_completed_invalid_args.<locals>.try_async_iterator�s*���"�/�/��3�
�
�a��
�3�s�.�+�)�+�.�+�.)
r^rQr|r�rr�nextrrIr~)r-r�rErVr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^rQr|r�r~rr�rrIr�)r-r�rVs&  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^rp)rQ�futurer-s& �r�kill_me�>BaseTaskTests.test_log_destroyed_pending_task.<locals>.kill_me	s.�����_�_�T�*�F��L�L��0�1�1�
�s�/�-�/r[�messagez%Task was destroyed but it is pending!rqr)rr�rQrr5rWrm�	all_tasksr~rr�r��_readyr#r�
gc_collect�assert_called_with�ANY�
reset_mockrw)r-rwr8rVrqrsf     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!rrr,s&rr��PBaseTaskTests.test_task_not_crash_without_finalization.<locals>.Subclass.__del__2	s��rrr�r:s@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�r[)rTrUrQ�_log_destroy_pendingrr|rI)r-rUr�r�rVrqs&     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�rrrrV�BBaseTaskTests.test_tb_logger_not_called_after_cancel.<locals>.coroG	s
����O�rkc��: �RORR22o[OQ2EPiw�K
UO2PoP!K3h)rRr7)rqrVrQr-s ���rr�DBaseTaskTests.test_tb_logger_not_called_after_cancel.<locals>.runnerJ	s=�����=�=��t�v�.�D��-�-��%�%�%��K�K�M��D�
&�s�3A�A�A)rr�r�r~r��error�called)r-�m_logrrVrQsf& @@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:NrmN�test_task_source_traceback���)
rQrrWrr��	_getframe�f_linenoror#rUrm�__file__r~)r-rqr&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!)c��|: �U1Qko[OU22o[OU2!3h)c��*: �REPiw�K
!K3hrrr�s�r�
child_coro�FBaseTaskTests.test_cancel_gather_1.<locals>.create.<locals>.child_coroi	s���� �y�y� �y�s���)rr�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!rr�)r��
cancel_result�gather_tasks&��r�cancelling_callback�?BaseTaskTests.test_cancel_gather_1.<locals>.cancelling_callbackp	s���'�.�.�0�Mr)rr�r�rIr^r~r"r�rmr�r�r�)r-rQr�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)rrR��return_exceptions)rr�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�rQr-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�rr�r�rIr~rLr}rmr$r()	r-r�r�r�r%r�r�rQr�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!)rWrQrr�r4r�
__traceback__)rqrr-s ��rr��4BaseTaskTests.test_exception_traceback.<locals>.main�	sN�����=�=����C�E�2�D��-�-��"�"�"�� � ����!1�!?�!?�@�
#�s�=A3�A1�1A3r)r-r�rsf @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��[grrh)r�r$r�s&*,rr��8BaseTaskTests.test_error_in_call_soon.<locals>.call_soon�	s���rc�� �P!3hrrrrrrV�3BaseTaskTests.test_error_in_call_soon.<locals>.coro�	rwrz$Task was destroyed but it is pending)rQr�r�r�r�r|r�rWrIr�r�r��	call_argsr�rmrzrw)r-r�r�rVr'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�rWrQr,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!3hrrrrrrV�@BaseTaskTests.test_create_task_with_async_function.<locals>.coro�	rwr)rWrQrorUr~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?)rWrQr=rorUrmr~rps& 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)rr�rorUrm)rq�retrr-s  ��rrV�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!3hrrrrr�	coro_noop�<BaseTaskTests.test_bare_create_named_task.<locals>.coro_noop
rwrc��: �[OR2QQ5oROUO2Q2UEPiw�K
P!K3h)zNo-oprA)rr�rmrD)rqr�r-s ��rrV�7BaseTaskTests.test_bare_create_named_task.<locals>.coro
s7�����&�&�y�{��A�D����T�]�]�_�g�6��J�J�s�AA�A�	Ar)r-rVr�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)rr�rm�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)rmr�rWrw)�subtaskr�rQr-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�
ContextVarrr�rWr~rI)r-r�rqr�rQr�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?)
rmr�r�r^r"rwr�r�rr�)r��jr�r�r�rQr-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�rr�rWr~rIrmr�)r-r�rqr�rQsf  @@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�rwrr��random�uniformrmr�)�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�randintrrr�)rr�rqrQr�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�rr�r~rIrmr�)r-r�r�rQr�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!�rr�rw��valr�s&�rrV�*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�rW)r��ctxr8r9rVr�rQr-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�rr�rWr~rIrm�r-r�rqr�rVr�rQsf   @@@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&�rrV�*BaseTaskTests.test_context_5.<locals>.coro�
rrc��: �,o[O2oUOUOR22[O
R]2UQ5oUEPiw�K
UOUOR22[O
R]2UQ5oUEPiw�K
UOUOR22U!KpK(3hr)r�rrr�rr�)r�rr8r9rVr�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�rQrqr�rVr�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&�rrV�*BaseTaskTests.test_context_6.<locals>.coro�
rrc��: �,o[O2oUOUOR22RO	R]2UQ5oUEPiw�K
UOUOR22RO	R]2UQ5oUEPiw�K
UOUOR22U!KkK(3hr)r�rrr�r�)r�rr8r9rVr�rQs    ���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�rr�r�r~rIrmrs&   @@@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�rD�rRr-s��r�asyncfn�4BaseTaskTests.test_eager_start_true.<locals>.asyncfn�
������$�$�&�/�/�1�D���"%c���: �ROR2[O2P	QQ5oROUO	22RORQ2UEPiw�K
P!K3h)T�example�rVrQrSrR)rWr�get_running_loopr�r�rm�r�r0rRr-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�r0rRsf @@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)rS)rTrUr�r�rm)r�r0r-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�rr��	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!3hrr.r/s��rr0�5BaseTaskTests.test_eager_start_false.<locals>.asyncfn�
r2r3c��: �ROR2[O2P
QQ5oROUO	22ROR2UEPiw�K
RO
RQ2P!K3h)Fr5r6)rWrr7r�r�r�rmr8s ���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)rr�rrWr~r�r�rI)r-rQrVrqs&   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)
rr�rr�rrWr~r��get_contextrI)r-rQrVr'rqs&    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!3hrrrrrr�EBaseTaskTests.test_task_disallow_multiple_initialization.<locals>.foo�
rwrzis already initializedr�r[)r�rIrWrQr�r|r�r�)r-rrVrqs&   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!	r[)�TestTaskNN)�r4r5r6r7rUr\rzrWr^rerrr�r�r�r�r�r�r�r�r�r�r�r�r�rr)r<rGrLrUrdrsr~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�r	rr�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;rFrMrPrTrYr8r9r�r�s@@rrOrOVs�����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�
0rrOc���UOoUOoUdUeU!QQ2oQQV12oQQV22oQoV@mVPmV`mPUmU!)Nc�@``�\sQsQsnU1QksU1QksQsUsU9s!)�(add_subclass_tests.<locals>.CommonFutureic�d:�[OQ2Um[RU_U-U@P!)c��]!r!rrrrrb�Cadd_subclass_tests.<locals>.CommonFuture.__init__.<locals>.<lambda>	s��r)�collections�defaultdict�callsrdr�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")rerdr"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�r4r5r6r7r8rrrrUrk���rrUc��\sQsQsQsP!)�"add_subclass_tests.<locals>.Futureirrlrrrr\rormrr\c�``�ROROQ5nUU1QkoROU2ROQ5oROOU2oRO	UQ2RO	[UO2Q]-2RO	[RO2Q]-2P!)r[c��h: �ROOU1Qk2REPiw�K
!K3h)c�(:�ROQ2!)r�r�r�s�rrb�Yadd_subclass_tests.<locals>.test_subclasses_ctask_cfuture.<locals>.func.<locals>.<lambda>s������v�(>r)rQr�)r�r-s��rr��Gadd_subclass_tests.<locals>.test_subclasses_ctask_cfuture.<locals>.funcs%�����I�I��� >�?��9�9��9�s�'2�0�2r�r")r\rQrUr~rm�dictre)r-r�rqr�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)rUr\rvr�)�cls�BaseTask�
BaseFuturerirUr\rvs&      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#r\rr�rQ�call_exception_handlerrWr�rmr~r>r�r�r�InvalidStateErrorrI)r-r\�exc_handlerrrVrqr%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�rr�)rpr#r\rr�rQr�rWr�r|r~r>r�r�rr�rI)r-r�r\r�rrVrqr%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)r4r5r6r7r�r�r8r9r:s@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!3hrrrrrrV�HCTask_CFuture_Tests.test_del__log_destroy_pending_segfault.<locals>.coro{rwr)rWrQr~r|�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)r4r5r6r7�getattrrrUrr\rz�staticmethodr�r�r8r9r:s@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)
r4r5r6r7r�rrUrr\rzr�r�r8rrrr�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�r4r5r6r7r�rrUr�	_PyFuturer\rzr�r�r8rrrr�r��s?��
�5�(�D�)�D�
�
�
�F���~�t�4�I����/@�$� G�H�Lrr�c��\sQsQs\\QP2s\Os	\
\O2s\
\O2sQsP!)�PyTask_CFutureSubclass_Testsi�r�r)r4r5r6r7r�rr\r�_PyTaskrUr��
_py_all_tasksrz�_py_current_taskr�r8rrrr�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)r4r5r6r7rr�rUr�rr\r�r�rzr�r�r8rrrr�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�r4r5r6r7rr�rUrr�r\r�r�rzr�r�r8rrrr�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)r4r5r6r7�propertyr�r8r9r:s@rr�r��s����
�
%��
%rr�c��.: �REPiw�K
Q!K3h)Nr�rr�s�rrV�,CTask_Future_Tests.test_foobar.<locals>.coro�s�����I�I��
�r�r[r�r�)
rr\r�rQr�r�r�r~rIrm)r-r�rVrqr�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<r[)r4r5r6r7r�r8r9r:s@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)r4r5r6r7r�r�r8r9)r;r�s@�r�EvilLoopr��s����
�
/�
/rr�c�� �P!3hrrrrr�coro_fn�KBaseTaskIntrospectionTests.test_register_task_resurrection.<locals>.coro_fn�rwrr[)�_register_taskr�rIr|r�rU)r-r�r�rVrQr�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!rrr]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)	r4r5r6r7r�r�r�r8r9�r;rQs@�r�TaskLiker��s!����
�
��
�
�
rr��rr�rmrzrwr��_unregister_task�r-r�rqrQs&  @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!rrr]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�r4r5r6r7r�r�r8r9r�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!rrr]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-rqrQs&  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�rr�r�r|r�r�r�r��r-rrrQs&   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�rr�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�rr�r�r|r�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�rr�r|r�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!rrr[s�rrb�BBaseTaskIntrospectionTests.test__unregister_task.<locals>.<lambda>ls���r)rr�r�r�r�rmrzrwr�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�rmrzrwr�s&  r�$test__unregister_task_not_registered�?BaseTaskIntrospectionTests.test__unregister_task_not_registeredqsA���y�y�{���y�y�{�����d�#��������-�s�u�5rr)r4r5r6r7r�r�r�r�rzrUr�r�r�r�r�r�rrrrrr8r9r:s@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)r4r5r6r7r�r�_py_register_taskr��_py_unregister_taskr��_py_enter_taskr��_py_leave_taskr�r�rzr�r�r�rUr8rrrrrx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)r4r5r6r7�hasattrrr�rr��_c_unregister_taskr��
_c_enter_taskr��
_c_leave_taskr�r�rzr�r�r�rUr8rrrrr�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�rdrerr�rQr�ris&�rre�BaseCurrentLoopTests.setUp��.���
��
���*�*�,��	����D�I�I�&rc��[gr)�NotImplementedErrorr�s&&rrW�BaseCurrentLoopTests.new_task�s��!�!rc�^�UOUOUOQ52P!rZ)r�r�rQr,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!3hrZ)r�r�rQrps��rrV�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�A1A4r[)rWrQr~r�r�rksf @r�$test_current_task_with_implicit_loop�9BaseCurrentLoopTests.test_current_task_with_implicit_loop�sL���	5��}�}�T�V�$���	�	�$�$�T�*����$�+�+����+�;�<rr[)
r4r5r6r7r�rerWr(r+r0r8r9r�r�s@@rrr�s(�����L�'�
"�=� �	=�	=rrc�L`�\sQsQsn\\O2sQsQs	Us
P!)�PyCurrentLoopTestsi�c�F�[OVOQ5!rZ)rr�rQr�s&&rrW�PyCurrentLoopTests.new_task�s���}�}�T�	�	�2�2rr)r4r5r6r7r�rr�r�rWr8r9r:s@rr3r3�s������ 6� 6�7�L�3�3rr3r�c�p`�\sQsQsn\\Q2%c\\O2sLPsQs	Qs
UsP!)�CCurrentLoopTestsi�r�c�F�[[Q2VOQ5!)r�r[)r�rrQr�s&&rrW�CCurrentLoopTests.new_task�s���u�h�'��9�9�=�=rr)r4r5r6r7rrr�r�r�rWr8r9r:s@rr7r7�s4�����u�'�(�(�#�E�$9�$9�:����>�>rr7c�L`�\sQsQsnQs\OQ2sQsUs	P!)�GenericTaskTestsi�c�d�UO[O[O2P!r)�assertIsSubclassrrUr\r,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)rz_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)
r4r5r6r7r>r�cpython_onlyrGr8r9r:s@rr;r;�s$����<�
���8��8rr;c�^``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sQ
sUs
U9s!)�GatherTestsBasei�c�:�[RU_2UO2UmUO2UmUOUOP
Q5P!)F)�cleanup)rdrerf�one_loopr�r�ris&�rre�GatherTestsBase.setUp�sC���
��
���*�*�,��
��,�,�.������D�M�M�5��9rc�\�UO%c[OU2J*P!r)r{r rSr]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)rm)r�rrm)r�rNrh�_gather�wrap_futuresr �MockCallbackr"r�rQrmr�r�r��assert_called_once_withr�)r-r�r�r�rYr�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�rNrhrTrUr rVr"r�r�r�rQr�r�rWr�rr{r�)
r-r�r�rYr�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�rNrhrTrUr rVr"r�r�r�r�rQr�r�r�rWrmr�)
r-r�r�rYr�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()))�joinrrm�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�)r4r5r6r7rerQrYr]r`rdrirwr8r9r�r�s@@rrKrK�s2����:�)�
2�5�4��$:�&3�3rrKc�X`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
UsP!)�FutureGatherTestsiB
c��U!rr)r-rs&*rrU�FutureGatherTests.wrap_futuresD
s���rc�2�[OU-U@!r�rr�)r-r$r�s&*,rrT�FutureGatherTests._gatherG
s���~�~�t�.�v�.�.rc��UO[Q29^tt^2[O2PPP2P!)%fhP!9h)r�)r�r�rr�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!3hrr~rrrr��RFutureGatherTests.test_constructor_empty_sequence_use_running_loop.<locals>.gatherO
s����>�>�#�#�s�)rNr~rorr\r�r�rQr�r�rmr�)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)rr�rNr�r�ror\r�r�rQr�r�rmr�)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)rNrhr�r|r�rr�)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!ttohrn)
r�r�rhrr�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�rNrhrr�r rVr"r�r{rQr�r�rWr�r�rorr}r�r�)	r-r�r�rYr�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�rNrhrr�r rVr"r�r�r�r{rQr�r�r�r~ror}rmrW)
r-r�r�rYr�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)r4r5r6r7rUrTr�r�r�r�r�r�r�r8r9r:s@rrzrzB
s7�����/��+�	+�'�	%��$(�(rrzc�X`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
UsP!)�CoroutineGatherTestsi�
c�X�,oSFDoU1QkoUOU22J!	U!)c��( �UEPiw�K
!K3hrrr�s&rrV�/CoroutineGatherTests.wrap_futures.<locals>.coro�
s��� �y�y� �y�rR)r)r-r�corosr�rVs&*   rrU�!CoroutineGatherTests.wrap_futures�
s.�����C�"�
!��L�L��� ���rc�V``�UU1QkoUOOU22!)c��<: �[OR-R@!3hrr~)r$r�s��rrV�*CoroutineGatherTests._gather.<locals>.coro�
s�����>�>�4�2�6�2�2���)rNr~)r-r$r�rVs&jl rrT�CoroutineGatherTests._gather�
s���	3��}�}�/�/���7�7rc�8�QoU2oUOUO2U2oUOUO2UO[Q29^tt^2[O
V#2PPP2P!)%fhP!9h)c�� �Q!3hrrrrrrV�@CoroutineGatherTests.test_constructor_without_loop.<locals>.coro�
rrr�)r�rIr�r�rr�)r-rV�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!3hrrrrrrV�DCoroutineGatherTests.test_constructor_use_running_loop.<locals>.coro�
rrc��<: �[ORR2!3hrr~)r�r�s��rr��FCoroutineGatherTests.test_constructor_use_running_loop.<locals>.gather�
s�����>�>�$��-�-�r�)rNr~r�r�)r-rVr�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!3hrrrrrrV�CCoroutineGatherTests.test_constructor_use_global_loop.<locals>.coro�
rr)rr�r�r�r�r�r�r~)r-rVr�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!3hrrr�s&rrV�<CoroutineGatherTests.test_duplicate_coroutines.<locals>.coro�
r�rr�def)rrr�r)rTrQrNrmr�)r-rVr�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)rc��@: �REPiw�K
R]*
nP!K3hrrrs��rr�?CoroutineGatherTests.test_cancellation_broadcast.<locals>.inner�
rrr[c��n: �[ORR2nREPiw�K
R]d*
nP!K3hrr~)rPrQ�gathererrs����rr\�?CoroutineGatherTests.test_cancellation_broadcast.<locals>.outer�
s+�����~�~�f�f�5�H��N�N��S�L�E�
�s�5�3�5)rNrhrr�r rSr�r{r|r}r~r�r�rm)	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!K3hrr~)r�rYrs���rr\�:CoroutineGatherTests.test_exception_marking.<locals>.outers"�����.�.��q��5��8�4�4�4�s�)6�4�6r[)
rNrhrr�r rSr�rorr�)r-r\r�r�rYrs&  @@@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!3hrrr�s&rrV�2CoroutineGatherTests.test_issue46672.<locals>.coros
�����rr)	rr\r|r�rTrQrNr�r6)r-rVr�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)r4r5r6r7rUrTr�r�r�r�r�r�r�r8r9r:s@rr�r��
s;�����8�
'�	.�
0�E�#�@;�*E�Err�c�l``�\sQsQsnU1QksQQksQ
QksQsQsQs	Qs
Q	sQ
sQs
UsU9s!)�RunCoroutineThreadsafeTestsic�:�[RU_2[O2UmUOUO2P!rr!ris&�rre�!RunCoroutineThreadsafeTests.setUpr#rc��6 �[OQ2EPiw�K
U%c[Q2gU%cO[OUO2O2[O]2EPiw�K
V*!KuK3h)rR�Fail!)rr�r�r�rQr{)r-r�rYrLr{s&&&&&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)r)rLr{)	r�r�run_coroutine_threadsaferQ�call_soon_threadsaferCr�r�r{)r-rLr{r��advance_cororVrvs&&&&&  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!r)rQ�run_in_executorr�r~rm)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)Nr�)	rQr�r�r|r�r~r�rr$)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)c�*:�RO]Q5!)rr��r�r,s�rrb�XRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_with_timeout.<locals>.<lambda>Ns���4�;�;�q�;�1r)rQr�r|rr�r~r rSrzr�r�)r-r�rvrqsf   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)c�*:�ROP	Q5!)Tr�r�r,s�rrb�ZRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_cancelled.<locals>.<lambda>Zs���4�;�;�d�;�3r)rQr�r|rr}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)c��[gr)�	NameError)rQrVs&&r�task_factory�fRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception.<locals>.task_factorycs���Orc�*:�ROP	Q5!)T)r�r�r,s�rrb�bRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception.<locals>.<lambda>gs���$�+�+�4�+�8rr)rQr�r rVr5r�rg�get_task_factoryr|r�r~rmr��call_args_listr�r)r-r�r�r�r�rQr'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!rZ)rrU)rQrVrqs&&�rr��ZRunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_and_cancel.<locals>.task_factorys����<�<��0�D��Krc��: �ROOR2[O[O]
2RO2n[O]2EPiw�K
RO2P!K3hr�)rQrgrr�r�r{)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�rQrgr�r~r�r�)r-r�rqr�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�2rr[)FF)FFNF)r4r5r6r7rer�r�r�r�r�r�r�rr8r9r�r�s@@rr�r�s8����'�
�-�"$�;�
)�1�F�83�3rr�c�F``�\sQsQsnU1QksU1QksQsQsUsU9s	!)�
SleepTestsi�c�:�[RU_2[O2UmUOUO2P!rr!ris&�rre�SleepTests.setUp�r#rc�h:�UOO2PUm[RU_
2P!r�rQrIrd�tearDownris&�rr
�SleepTests.tearDown��#����	�	������	�
���rc�```�]nU1QknUUU1QkoROOU22ROR]2P!)rc�:�RU*
nP!rr)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�)rQr�rmrr�)rrr�r-s ���rrV�(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)rQr~rm)r-rVrr�sf @@r�test_sleep_zero�SleepTests.test_sleep_zero�s8�����	�	�	
�	�	�$�$�T�V�,������$rr[)
r4r5r6r7rer
rr8r9r�r�s@@rrr�s����'�
�
%�%rrc�@``�\sQsQsnU1QksU1QksQsUsU9s!)�CompatibilityTestsi�c�:�[RU_2[O2UmUOUO2P!rr!ris&�rre�CompatibilityTests.setUp�r#rc�h:�UOO2PUm[RU_
2P!rrris&�rr
�CompatibilityTests.tearDown�rrr[)	r4r5r6r7rer
r8r9r�r�s@@rrr�s����'�
�rr�__main__r�)=rcrr�r�r	rr2r�rMr��unittestrrrrr�test.test_asynciorr r�r�test.support.script_helperr�test.support.warnings_helperr	rrrr(r*r=rOr{r}�
skipUnlessr�TestCaser�r�r�r�r�r�r�r�r�r�rrrr3r7r;rKrzr�r�rrr4r�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