403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  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_futures.cpython-315.opt-2.pyc
R
>lqj��c�(�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH$G
s
]PH,s]QH,Gs]PH4s
]QH8Gs]QHDGsQsQsQsQ	sQ
Q\2sQQ
\O2O42sQQ2sQQ\O:2sQQ2s\O@\!\Q2Q2QQ\\O:22s"\O@\!\Q2Q2QQ\\O:22s#QQ\\O:2s$QQ2s%\O@\!\Q2Q2QQ\%\O:22s&\O@\!\Q2Q2Q Q!\%\O:22s'Q"Q#\%\O:2s(Q$Q%2s)Q&Q'\)\O:2s*\O@\!\Q2Q2Q(Q)\)\O:22s+\,Q*6Xc\OZ2P!P!)+�)�mock)�GenericAlias)�futures)�utils)�supportc�F�[OOP2P!�N)�asyncio�events�_set_event_loop_policy���3C:\Python315\\Lib\test\test_asyncio\test_futures.py�tearDownModulers���N�N�)�)�$�/r
c��U!rr��fs&r�	_fakefuncrs���Hr
c��P!rrrr
r�first_cbr���r
c��P!rrrr
r�last_cbrrr
c��\sQs]#sQsP!)�
ReachableCoder��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__rr
rrr#s��r
rc�.`�\sQs]*snQsQsQsUsP!)�SimpleEvilEventLoopc��P
!�Fr��selfs&r�	get_debug�SimpleEvilEventLoop.get_debug-s��r
c��UO2%f+UO2%fUO2P!P!P!r)�	is_closed�
is_running�closer%s&r�__del__�SimpleEvilEventLoop.__del__0s,���~�~������(9�(9��J�J�L�):�r
r)rrrrr'r-r �__classdictcell__��
__classdict__s@rr"r"*s������r
r"c�b`�\sQs]6snP
sP
sPsPsQsQs	Qs
QsQsQs
QsQsQ	sUsP!)
�
DuckFuturec�F�UO2%cP
!P	UmP	!r$)�done�_DuckFuture__cancelledr%s&r�cancel�DuckFuture.cancel?s���9�9�;�;�����r
c��UO!r)r6r%s&r�	cancelled�DuckFuture.cancelledEs�����r
c�t�UO9%f%UOPI9%fUOPI!r)r6�_DuckFuture__result�_DuckFuture__exceptionr%s&rr5�DuckFuture.doneHs>��� � �0�0��=�=��,�0�0��#�#�4�/�	1r
c��UOUO22UOd
UOgUO!r)�assertFalser:r>r=r%s&r�result�DuckFuture.resultMs9��������)�*����'��"�"�"��}�}�r
c�Z�UOUO22UO!r)rAr:r>r%s&r�	exception�DuckFuture.exceptionSs#��������)�*����r
c�t�UOUO22UOU2VmP!r)rAr5�assertIsNotNoner=)r&rBs&&r�
set_result�DuckFuture.set_resultWs)���������%����V�$��
r
c�t�UOUO22UOU2VmP!r)rAr5rHr>)r&rEs&&r�
set_exception�DuckFuture.set_exception\s*���������%����Y�'�$�r
c#� �UO2%f
P	UmUw�	UOUO22UO2!3h�T)r5�_asyncio_future_blocking�
assertTruerBr%s&r�__iter__�DuckFuture.__iter__as;����y�y�{�{�,0�D�)��J�����	�	��$��{�{�}��s
�A�;A)�__cancelled�__exception�__resultrP)rrrrrPr6r=r>r7r:r5rBrErIrLrRr r/r0s@rr3r36sI���� %���K��H��K�� �1�
� ��
%�
�r
r3c�@``�\sQs]isnU1QksQsQsQsUsU9s	!)�	DuckTestsc�:�[RU_2UO2UmUO	UOO
2P!r��super�setUp�
new_test_loop�loop�
addCleanupr,�r&�	__class__s&�rr\�DuckTests.setUpk�0���
��
���&�&�(��	�����	�	���(r
c�j�[2o[OU2oUOV!2P!r)r3r	�wrap_future�assertIs�r&r�gs&  r�test_wrap_future�DuckTests.test_wrap_futureps%���L������"���
�
�a�r
c�j�[2o[OU2oUOV!2P!r)r3r	�
ensure_futurerfrgs&  r�test_ensure_future�DuckTests.test_ensure_futureus%���L���!�!�!�$���
�
�a�r
�r^)
rrrrr\rirmr r/�
__classcell__�rar1s@@rrXrXis����)�
�
�r
rXc�``�\sQs]{snQsU1QksQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQs\1QksQsQsQsQsQsQsQsQs\O<Q2Q2s\O<Q2Q2s \O<Q2Q2s!\O<Q2Q2s"\O<Q2Q2s#\O<Q2Q2s$\O<Q2Q 2s%Q!s&Q"s'Q#s(Q$s)Q%s*Q&s+Q's,Q(s-\O<Q2Q)2s.Q*s/Q+s0Q,s1Q-s2Q.s3Q/s4Q0s5Q1s6Q2s7Q3s8Us9U9s:!)4�BaseFutureTestsc�*�UOU-U@!r)�cls�r&�args�kwargss&*,r�_new_future�BaseFutureTests._new_future}s���x�x��(��(�(r
c�:�[RU_2UO2UmUO	UOO
2P!rrZr`s&�rr\�BaseFutureTests.setUp�rcr
c��UO[*oUOUO[12UO	U[
2P!r)ru�str�assertEqual�__args__�assertIsInstancer)r&�futures& r�test_generic_alias�"BaseFutureTests.test_generic_alias�s5�����#���������3�&�1����f�l�3r
c	��QQ2oUO[OU22UO[OU222UO[O]22UO[O[O
222UO
UOQ5oUO[OU22UO[O[U222UO[O[O
[U2222UO2P!)c�,`�\sQs]�snPsQsQsUsP!)�/BaseFutureTests.test_isfuture.<locals>.MyFuturec��P
UmP!r$�rPr%s&r�__init__�8BaseFutureTests.test_isfuture.<locals>.MyFuture.__init__�s
��05��-r
r�)rrrrrPr�r r/r0s@r�MyFuturer��s����'+�$�
6�
6r
r�ro)
rAr	�isfuturerQr�Mockryr^�typer7)r&r�rs&  r�
test_isfuture�BaseFutureTests.test_isfuture�s���	6�	6�	
����)�)�(�3�4�����(�(���4�5�����)�)�!�,�-�	
����)�)�$�)�)�+�6�7����$�)�)��,������(�(��+�,�����)�)�$�q�'�2�3�	
����(�(����4��7�);�<�=�	���
r
c��UOUOQ5oUOUO22UOUO	22UO2UO
UO22P!�ro)ryr^rAr:r5r7rQ�r&rs& r�test_initial_state�"BaseFutureTests.test_initial_state�s\�����$�)�)��,���������'��������"�	���
�������
�&r
c��UO[Q29^tt^2UO2PPP2P!)%fhP!9h)�no current event loop)�assertRaisesRegex�RuntimeErrorryr%s&r�test_constructor_without_loop�-BaseFutureTests.test_constructor_without_loop�s2��
�
#�
#�L�2I�
J�
J�����K�
J�
J�
J�s�;�A	�A	c�`�U1QkoROOU22oROUORO2ROUO	2RO2P!)c��.: �RO2!3hr)ryr%s�r�test�?BaseFutureTests.test_constructor_use_running_loop.<locals>.test�s�����#�#�%�%�s�)r^�run_until_completerf�_loop�get_loop)r&r�rsf  r�!test_constructor_use_running_loop�1BaseFutureTests.test_constructor_use_running_loop�sL���	&��I�I�(�(���0���
�
�a�g�g�t�y�y�)��
�
�a�j�j�l�D�I�I�.r
c�H�[OUO2UO[OP2UO	2oUOUOUO2UOUO2UO2P!r)r	�set_event_loopr^r_ryrfr�r�r�s& r� test_constructor_use_global_loop�0BaseFutureTests.test_constructor_use_global_loop�sd�����t�y�y�)�����.�.��5�������
�
�a�g�g�t�y�y�)��
�
�a�j�j�l�D�I�I�.r
c�J�UO[UO]*2P!)�*)�assertRaises�	TypeErrorryr%s&r�test_constructor_positional�+BaseFutureTests.test_constructor_positional�s�����)�T�%5�%5�r�:r
c�`	�UOOUOUOQ5oUO[O
UO2UOOUOUOQ5oUO[O
UO2UOOUOUOQ5oUO[[129^tt^2UOP2PPP2UOOUOUOQ5oUO[[129^tt^2UO[2PPP2UOOUOUOQ5oUO[[129^tt^2UO2PPP2UOOUOUOQ5oUO[[129^tt^2UOQ2PPP2UOOUOUOQ5oUO[[129^tt^2UOQ2PPP2UOOUOUOQ5o[!U2UOOUOUOQ5oUO#2UOOUOUOQ5o[%U2UOOUOUOQ5oUO'UO)22UO'UO+22P!)%fhCK�9h)%fhCK�9h)%fhCKD9h)%fhCK�9h)%fhCK�9h[[1cCKhh9h[cCK8h9h[cCK
h9h)roc��P!rrrs&r�<lambda>�4BaseFutureTests.test_uninitialized.<locals>.<lambda>�s��Dr
c��P!rrrs&rr�r��s��tr
)ru�__new__r^r�r	�InvalidStateErrorrBrEr��AttributeErrorrIrL�	Exceptionr7�add_done_callback�remove_done_callback�repr�	__await__�iterrAr:r5�r&�futs& r�test_uninitialized�"BaseFutureTests.test_uninitialized�sB���h�h���t�x�x�d�i�i��8�����'�3�3�S�Z�Z�@��h�h���t�x�x�d�i�i��8�����'�3�3�S�]�]�C��h�h���t�x�x�d�i�i��8��
�
�
��n�=�
>�
>��N�N�4� �?��h�h���t�x�x�d�i�i��8��
�
�
��n�=�
>�
>����i�(�?��h�h���t�x�x�d�i�i��8��
�
�
��n�=�
>�
>��J�J�L�?��h�h���t�x�x�d�i�i��8��
�
�
��n�=�
>�
>��!�!�.�1�?��h�h���t�x�x�d�i�i��8��
�
�
��n�=�
>�
>��$�$�^�4�?��h�h���t�x�x�d�i�i��8��	���I��h�h���t�x�x�d�i�i��8��	��M�M�O��h�h���t�x�x�d�i�i��8��	���I��h�h���t�x�x�d�i�i��8���������)��������$�O?�
>�
>��?�
>�
>��?�
>�
>��?�
>�
>��?�
>�
>���n�-�	��	���	��	���	��	�s��P�:P$�,P8�Q�Q �Q4�R�R�P!	�P!	�$P5	�-P5	�8Q		�Q		�Q	�Q	� Q1	�)Q1	�4R	�R	�R	�	R�R�R�	R-�(R-�,R-c��UOUOQ5oUOUQ2UOUOP2UOQ2UO
[O29^tt^2UOOU2PPP2UOUOQ2P!)%fhK.9h)ro�_cancel_message�
my message)
ryr^�
assertHasAttrrr�r7r�r	�CancelledErrorr�r�s& r�!test_future_cancel_message_getter�1BaseFutureTests.test_future_cancel_message_getter�s������$�)�)��,�����1�/�0�����*�*�D�1�	�����
�
�
�w�5�5�
6�
6��I�I�(�(��+�7�����*�*�L�9�7�
6�s�C�C	�C	c��UOUOQ5oUOQ2QUmUO	UOQ2UO[O29^tt^2UOOU2PPP2UO	UOQ2P!)%fhK.9h)ror�zmy new message)	ryr^r7r�rr�r	r�r�r�s& r�!test_future_cancel_message_setter�1BaseFutureTests.test_future_cancel_message_setter�s������$�)�)��,��	�����,�������*�*�,<�=��
�
�w�5�5�
6�
6��I�I�(�(��+�7�����*�*�,<�=�7�
6�s�9B;�;C	�C	c��UOUOQ5oUOUO22UOUO	22UOUO22UO
[OUO2UO
[OUO2UO
[OUOP2UO
[OUOP2UOUO22P!r�)ryr^rQr7r:r5r�r	r�rBrEr�rIrLrAr�s& r�test_cancel�BaseFutureTests.test_cancels������$�)�)��,��������
�#�������
�&��������!����'�0�0�!�(�(�;����'�0�0�!�+�+�>����'�3�3�Q�\�\�4�H����'�3�3�Q�_�_�d�K��������$r
c��UOUOQ5oUO[OUO
2UO
]*2UOUO22UOUO22UOUO2]*2UOUO2P2UO[OUOP2UO[OUOP2UOUO22P!r�)ryr^r�r	r�rBrIrAr:rQr5rrErLr7r�s& r�test_result�BaseFutureTests.test_results������$�)�)��,�����'�3�3�Q�X�X�>�	���R���������'��������!��������R�(���������-����'�3�3�Q�\�\�4�H����'�3�3�Q�_�_�d�K��������$r
c��[2oUOUOQ5oUO[O
UO2UOU2UOUO22UOUO22UO[UO2UOUO
2U2UO[O
UOP2UO[O
UOP2UOUO22P!r�)r�ryr^r�r	r�rErLrAr:rQr5rBrrIr7)r&�excrs&  r�test_exception�BaseFutureTests.test_exception s����n�����$�)�)��,�����'�3�3�Q�[�[�A�	������������'��������!����,����1���������,����'�3�3�Q�\�\�4�H����'�3�3�Q�_�_�d�K��������$r
c���U2oUOUOQ5oUOU2UOUO	22UOUO
22UO[UO2UO2oUOoUOU[2UO[U2Q2UOVA2P!)roz!StopIteration .* cannot be raised)ryr^rLrAr:rQr5r�r�rBrE�	__cause__r��assertRegexr~)r&�stop_iteration_classr�r�causes&&   r�test_stop_iteration_exception�-BaseFutureTests.test_stop_iteration_exception.s���"�$�����$�)�)��,��	������������'��������!����,����1��k�k�m���
�
�����c�<�0�����S��#F�G����e�:r
c�H�QQ[2oUOU2P!)c��\sQsQsQsP!)�OBaseFutureTests.test_stop_iteration_subclass_exception.<locals>.MyStopIteration�<rrrr
r�MyStopIterationr�<���r
r�)�
StopIterationr�)r&r�s& r�&test_stop_iteration_subclass_exception�6BaseFutureTests.test_stop_iteration_subclass_exception;s��	�m�	�	
�*�*�?�;r
c��UOUOQ5oUO[2UO	UO2[2P!r�)ryr^rLr�r�rEr�s& r�test_exception_class�$BaseFutureTests.test_exception_classAs;�����$�)�)��,��	����%����a�k�k�m�\�:r
c�V`�UOUOQ5nU1QkoU2oUO[U2Q2UO[U2R2RO	]*2UO[U2Q2UO[U2Q2P!)roc3�p: �Qw�	RFPiw�K
oQU1w�	RFPiw�K
oQU1w�	P!K K3h)�A�B�Cr)�x�yrs  �r�fixture�6BaseFutureTests.test_yield_from_twice.<locals>.fixtureIs7�����I����A��q�&�L����A��q�&�L���s�
6�2�6�4�6�6r�)r�r�)r�r�)ryr^r�nextrI)r&r�rhrs&  @r�test_yield_from_twice�%BaseFutureTests.test_yield_from_twiceFs�������$�)�)��,��	�
�I������a��#�&�����a��!�$�	���R������a��)�,�����a��)�,r
c
��	�UOOP	2UOUOQ5oUOP*oUO	[U2QUOOQU]*QU]*Q02UO2UOOP
2UOUOQ5oUO	[U2QUOOQ02UO2UOUOQ5oUO2UO	[U2QUOOQ02UOUOQ5oUO]2UO	[U2QUOOQ02UO	UO2]2[2oUOUOQ5oUOU2UO	[U2QUOOQ	02UOUO2U2Q
oUOUOQ5o	U	O[ 2U[ 2o
UO#[U	2QUOO*QU
**2U	O2UO	[U	2QUOOQ02UOUOQ5oUO[$2UO[&2U[$2oU[&2o
UO#[U2QUOO*QU8Q
U
8Q0*2UOUOQ5oUO[$2[)]2FDoUO[ 2J	UO[&2U8QU
80oUO#[U2QUOO*QU**2UO2UO	[U2QUOOQ02P!)Tro�<z pending created at �:�>z	 pending>z cancelled>z finished result=4>z# finished exception=RuntimeError()>c��[OU2vqUO8QU8QU80o[OU2!)z() at r�)�
test_utils�get_function_sourcer�re�escape)�func�filename�lineno�texts&   r�	func_repr�3BaseFutureTests.test_future_repr.<locals>.func_reprxs5��)�=�=�d�C��H�&*�&7�&7��6�J�D��9�9�T�?�"r
z pending cb=\[%s\]>z pending cb=\[z, z\]>z, <8 more>, )r^�	set_debugry�_source_tracebackrr�rurr7rIrBr�rLrfrEr�rr�rr�range)r&�f_pending_debug�frame�	f_pending�f_cancelled�f_resultr��f_exceptionr�f_one_callbacks�	fake_repr�f_two_callbacks�
first_repr�	last_repr�f_many_callbacks�i�cb_regexs&                r�test_future_repr� BaseFutureTests.test_future_reprXs���	�	���D�!��*�*��	�	�*�:���1�1�"�5�������!�����!�!�"�"6�u�Q�x�j��%��(��1�M�	O�	��� ��	�	���E�"��$�$�$�)�)�$�4�	�����i��A�d�h�h�.?�.?�-@�	�*J�K������&�&�D�I�I�&�6����������k�*�a����0A�0A�/B�+�,N�O��#�#����#�3�����A�������N�a���� 1� 1�2�2E�F�	H�������*�A�.��n���&�&�D�I�I�&�6���!�!�#�&�����������!�!�"�"E�F�	H�	
�
�
�k�+�+�-�s�3�	#�
�*�*��	�	�*�:���)�)�)�4��i�(�	������!��4�8�8�$�$�$�'=�	�'I�I�	K�	��� �����o�.��T�X�X�.�.�/�{�;�	=��*�*��	�	�*�:���)�)�(�3��)�)�'�2��x�(�
��g�&�	�����o�.����� 1� 1�1�&�	�53�3�	4� �+�+����+�;���*�*�8�4��q��A��.�.�y�9���*�*�7�3�*4�i�@������!�"��4�8�8�$�$�$�'=��'H�H�	J�	���!�����.�/��T�X�X�.�.�/�{�;�	=r
c��]QHGo[OO	2oUO]
2UO
UOQ5oUV#2UOUO22UOUO2]
2[OO	2oUO[22UO
UOQ5oUVE2UOUO22UO[UO2[OO	2oUO2UO
UOQ5oUVg2UOUO!22[OO"g[$c
oSo	Po=LPo=hh9h[OO	2o
S
OS	2SO
SOQ5oSX�2SOSO22SO2L[$c
oSoPo=LPo=hh9hPO'[(O*WO,22o
SOS
O/Q2]2P!)r��_copy_future_stateroz*raise concurrent.futures.InvalidStateError)�asyncio.futuresr�
concurrentr�FuturerIryr^rQr5rrBrLr�r�r7r:r��
BaseException�join�	traceback�	format_tb�
__traceback__�count)r&rr�newfr�newf_exceptionr
�newf_cancelled�e�f_exc�f_conexc�newf_conexc�newf_exc�newf_tbs&             r�test_copy_state�BaseFutureTests.test_copy_state�s��6����%�%�'��	���R�����T�Y�Y��/���1�#�����	�	��$���������+� �(�(�/�/�1���!�!�,�.�1��)�)�t�y�y�)�9���;�7�����+�+�-�.����,��(=�(=�>� �(�(�/�/�1�������)�)�t�y�y�)�9���;�7�����0�0�2�3�	��$�$�6�6�6���	��E��	���%�%�,�,�.�����u�%��&�&�D�I�I�&�6���8�1�����(�(�*�+�	���� ���	��H��	���'�'�)�-�-�h�.D�.D�E�F��������'S�T�VW�Xs<�&G�	G�
G�G�G�
I�	I5�(I5�)I0�0I5c��]QHGo[OO	2oUO]*2UO
UOQ5oUV#2UOUO22UOUO2]*2[OO	2oUO[Q22UO
UOQ5oUVE2UOUO22UO[29^tt^2oUO2PPP2UO[WO 2Q2[OO	2oUO#2UO
UOQ5oUVx2UOUO%22[OO	2o	U	O]
2UO
UOQ5o
U
O#2UV�2UOU
O%22[OO	2oUO[OO'Q22UO
UOQ5oUV�2UOUO22UO[(O*O&29^tt^2oUO2PPP2UO[UO 2Q2P!)%fhCK)9h)%fhKK9h)rrroztest exception�invalid)rrrrrrIryr^rQr5rrBrL�
ValueErrorr�r~rEr7r:r�r	�
exceptions)
r&r�f_concurrent�	f_asyncio�f_concurrent_exc�
f_asyncio_exc�cm�f_concurrent_cancelled�f_asyncio_cancelled�f_concurrent_result�f_asyncio_precancelled�f_concurrent_invalid�f_asyncio_invalids
&            r�'test_copy_state_from_concurrent_futures�7BaseFutureTests.test_copy_state_from_concurrent_futures�s���
	7�"�)�)�0�0�2������#��$�$�$�)�)�$�4�	��<�3����	���(�)�����)�)�+�R�0�&�-�-�4�4�6���&�&�z�2B�'C�D��(�(�d�i�i�(�8�
��+�;����
�*�*�,�-�
�
�
�z�
*�
*�b�� � �"�+�����R�\�\�*�,<�=�",�!3�!3�!:�!:�!<���%�%�'�"�.�.�D�I�I�.�>���1�G����+�5�5�7�8�)�0�0�7�7�9���&�&�r�*�!%�!1�!1�t�y�y�!1�!A���%�%�'��.�G����.�8�8�:�;� *�1�1�8�8�:���*�*�:�+=�+=�+O�+O�PY�+Z�[� �,�,�$�)�)�,�<���/�C����)�.�.�0�1�
�
�
�w�1�1�C�C�
D�
D���$�$�&�E�����R�\�\�*�I�6�7+�
*�
*��2E�
D�s$�2M#�#M7�#M4	�,M4	�7N	�N	c�``�UOUOQ5nU1QknU1QkoUO[Q29^tt^2U2PPP2RO	2P!)%fhK"9h)roc3�.: �RFPiw�K
P!K3hrr)r�s�r�coro�'BaseFutureTests.test_iter.<locals>.coro�s
�����N�N�s���c�:�R2vqP!rr)�arg1�arg2rAs  �rr��'BaseFutureTests.test_iter.<locals>.tests�����J�D�$r
zawait wasn't used)ryr^r�r�r7)r&r�rAr�s& @@r�	test_iter�BaseFutureTests.test_iter�sX������D�I�I��.��	�	 ��
#�
#�L�2E�
F�
F��F�G��
�
��G�
F�s�
A,�,A<	�5A<	c���UOUOQ5oUO[Q29^tt^2P	UmPPP2P!)%fhP!9h)rozcan only be set to False)ryr^r�r0�_log_tracebackr�s& r�test_log_traceback�"BaseFutureTests.test_log_tracebacksE�����D�I�I��.��
�
#�
#�J�0J�
K�
K�!%�C��L�
K�
K�
K�s�A�A	�A	zasyncio.base_events.loggerc��UOUOQ5o=UOUOO2P!r�)ryr^rA�error�called�r&�m_logr�s&& r�test_tb_logger_abandoned�(BaseFutureTests.test_tb_logger_abandoned
s4�����D�I�I��.���������+�+�,r
c���UOUOQ5oUO[22UO	2=UOUOO2P!r�)ryr^rLr�r7rArNrOrPs&& r�&test_tb_logger_not_called_after_cancel�6BaseFutureTests.test_tb_logger_not_called_after_cancelsM�����D�I�I��.�����)�+�&��
�
���������+�+�,r
c��UOUOQ5oUO]*2=UOUOO
2P!r�)ryr^rIrArNrOrPs&& r�!test_tb_logger_result_unretrieved�1BaseFutureTests.test_tb_logger_result_unretrieveds@�����D�I�I��.�����r���������+�+�,r
c���UOUOQ5oUO]*2UO2=UO	UO
O2P!r�)ryr^rIrBrArNrOrPs&& r�test_tb_logger_result_retrieved�/BaseFutureTests.test_tb_logger_result_retrieved"sI�����D�I�I��.�����r���
�
���������+�+�,r
c�*�UOUOQ5oUO[Q22=[O
UO2[O2UOUOO2P!�ro�boom)ryr^rLr�r��run_brieflyr�
gc_collectrQrNrOrPs&& r�$test_tb_logger_exception_unretrieved�4BaseFutureTests.test_tb_logger_exception_unretrieved*sc�����D�I�I��.�����,�v�.�/�����t�y�y�)�����������*�*�+r
c���UOUOQ5oUO[Q22UO	2=UOUOO2P!r^)ryr^rLr�rErArNrOrPs&& r�"test_tb_logger_exception_retrieved�2BaseFutureTests.test_tb_logger_exception_retrieved3sP�����D�I�I��.�����,�v�.�/��
�
���������+�+�,r
c��UOUOQ5oUO[Q22UO	[UO
2=UO
UOO2P!r^)	ryr^rLr�r�rBrArNrOrPs&& r�)test_tb_logger_exception_result_retrieved�9BaseFutureTests.test_tb_logger_exception_result_retrieved;s[�����D�I�I��.�����,�v�.�/����,��
�
�3��������+�+�,r
c���Qo[OO]2oUOUQ2o[O
V0OQ5oUOOU2vqVUO[OU22UOUQ2UOU[O22UOP	Q5P!)c�2�U[O21!r��	threading�	get_ident��args&r�run�-BaseFutureTests.test_wrap_future.<locals>.runE�����,�,�.�/�/r
�oiro��wait)rr�ThreadPoolExecutor�submitr	rer^r�rQr�r�assertNotEqualrmrn�shutdown)r&rq�ex�f1�f2�res�idents&      rri� BaseFutureTests.test_wrap_futureCs���	0�
�
�
�
2�
2�1�
5��
�Y�Y�s�D�
!��
�
 �
 ��)�)�
4���Y�Y�1�1�"�5�
������(�(��,�-�����d�#����E�9�#6�#6�#8�9�
�����r
c��UOUOQ5o[OU2oUO	V2P!r�)ryr^r	rerf�r&r|r}s&  r�test_wrap_future_future�'BaseFutureTests.test_wrap_future_futurePs5��
�
�
�4�9�9�
�
-��
�
 �
 ��
$���
�
�b�r
c�4�Qo[OO]2oUOUQ2oUO	[
Q29^tt^2[OU2PPP2UOP	Q5P!)%fhK$9h)c�2�U[O21!rrlros&rrq�:BaseFutureTests.test_wrap_future_without_loop.<locals>.runVrsr
rtr�ru)	rrrwrxr�r�r	rerz)r&rqr{r|s&   r�test_wrap_future_without_loop�-BaseFutureTests.test_wrap_future_without_loopUsm��	0�
�
�
�
2�
2�1�
5��
�Y�Y�s�D�
!��
�
#�
#�L�2I�
J�
J�����#�K�
������K�
J�s�B�B	�B	c�.`�Qo[OO]2oUOUQ2nU1QkoUOOU22oUO
UOUO2UOP	Q5P!)c�2�U[O21!rrlros&rrq�>BaseFutureTests.test_wrap_future_use_running_loop.<locals>.run_rsr
rtc��:: �[OR2!3hr)r	re)r|s�rr��?BaseFutureTests.test_wrap_future_use_running_loop.<locals>.testcs�����&�&�r�*�*�s�ru)	rrrwrxr^r�rfr�rz)r&rqr{r�r}r|s&    @r�!test_wrap_future_use_running_loop�1BaseFutureTests.test_wrap_future_use_running_loop^sm���	0�
�
�
�
2�
2�1�
5��
�Y�Y�s�D�
!��	+�
�Y�Y�
)�
)�$�&�
1���
�
�d�i�i����*�
�����r
c��[OUO2UO[OP2Qo[O
O
]2oUOUQ2o[OU2oUOUOUO2UOP	Q5P!)Nc�2�U[O21!rrlros&rrq�=BaseFutureTests.test_wrap_future_use_global_loop.<locals>.runmrsr
rtru)r	r�r^r_rrrwrxrerfr�rz)r&rqr{r|r}s&    r� test_wrap_future_use_global_loop�0BaseFutureTests.test_wrap_future_use_global_loopis������t�y�y�)�����.�.��5�	0�
�
�
�
2�
2�1�
5��
�Y�Y�s�D�
!��
�
 �
 ��
$���
�
�d�i�i����*�
�����r
c�b�[OO2o[OVO
Q5oUO
2[OUO
2UOUO22UOUO22P!r�)rrrr	rer^r7r�r`rQr:r�s&  r�test_wrap_future_cancel�'BaseFutureTests.test_wrap_future_cancelusi��
�
�
�
&�
&�
(��
�
 �
 ��)�)�
4��
�	�	�����t�y�y�)��������'��������'r
c���[OO2o[OVO
Q5oUO
]*2UO2[OUO
2UOUO22UOUO2]*2UOUO22P!r�)rrrr	rer^rIr7r�r`rAr:rrBrQr�s&  r�test_wrap_future_cancel2�(BaseFutureTests.test_wrap_future_cancel2}s���
�
�
�
&�
&�
(��
�
 �
 ��)�)�
4��
�
�
�b��
�	�	�����t�y�y�)��������(��������b�)��������'r
c�d�UOOP	2UOUOQ5o[O2O
]*
oUO
UO[2UOUOQ*Q*[UQ12P!)Tro:N�N�test_future_source_traceback���)r^rry�sys�	_getframe�f_linenor�r�listr�__file__)r&r�rs&  rr��,BaseFutureTests.test_future_source_traceback�s����	�	���D�!��!�!�t�y�y�!�1������)�)�A�-�����f�6�6��=�����1�1�"�5�b�9�"� �8�:�	;r
c��UOOU2QoU2oUOUOQ5oUOU2Po[O
UO2[O2QUOOQ0o[U2VDO1oUOO[OUQ5UOO ]*]*oUO#U[$O&U[$O(22P!)c�N�[2g[c
oStPo=!Po=hh9hr)�MemoryErrorr)r�s r�memory_error�LBaseFutureTests.check_future_exception_never_retrieved.<locals>.memory_error�s$��
�!�m�#�� �
��
��
�s�

�	$�$��$�$ro�^z exception was never retrieved
)�exc_info)r^rryrLr�r`rrarurr�r!rN�assert_called_once_withr�ANY�	call_argsr�r��compile�DOTALL)	r&�debugrQr�r�r��regexr��messages	&&&      r�&check_future_exception_never_retrieved�6BaseFutureTests.check_future_exception_never_retrieved�s����	�	���E�"�	�
�n���!�!�t�y�y�!�1�����S�!������t�y�y�)������D�H�H�%�%�&�&F�G����I�s�$5�$5�6��
���+�+�D�H�H�x�+�H��+�+�'�'��*�1�-������"�*�*�U�B�I�I�">�?r
c�*�UOP
2P!r$�r�r%s&r�%test_future_exception_never_retrieved�5BaseFutureTests.test_future_exception_never_retrieved�s���3�3�E�:r
c�*�UOP	2P!rOr�r%s&r�+test_future_exception_never_retrieved_debug�;BaseFutureTests.test_future_exception_never_retrieved_debug�s���3�3�D�9r
c���UOUOQ5oUO2[OU]2UOUO
22P!r�)ryr^r7r�_set_result_unless_cancelledrQr:r�s& r� test_set_result_unless_cancelled�0BaseFutureTests.test_set_result_unless_cancelled�sD�����D�I�I��.���
�
���,�,�S�!�4�����
�
��(r
c�F�UOUOQ5oUOQ2UO2oPoUO	P2UOQ2UOUQ2P![coSO]*oPo=K7Po=hh9h)rozStopIteration was expected)��)	ryr^rIrR�send�failr�rwr)r&r��firBr{s&    r�test_future_stop_iteration_args�/BaseFutureTests.test_future_stop_iteration_args�s������D�I�I��.�����v��
�\�\�^����	4��G�G�D�M�
�I�I�2�3������(��	�	 ��W�W�Q�Z�F��	 �s�A8�8	B �B �B�B c
�4�UOUOQ5o[U2oUO[29^tt^2UO[UO[[
Q2P2PPP2[O29^tt^2[OQ[Q5UO[UO[[
Q2] 2UO[UO[
Q2[
Q22UO[UO[PP2PPP2UO[UO[2P!)%fhCK9h)%fhKK9h)ro�zebra�ignore)�category�elephant)ryr^r��assertWarns�DeprecationWarningr�r��throw�warnings�catch_warnings�filterwarningsr�r0r�)r&r�r�s&  r�test_future_iter_throw�&BaseFutureTests.test_future_iter_throw�s�����D�I�I��.��
�#�Y��
�
�
�0�
1�
1����i����9�i��>P�RV�W�2�
�
$�
$�
&�
&��#�#�H�7I�J����i����%�y��'<�b�
B����i����%�j�1�9�Z�3H�
J�
���j�"�(�(�J��d�K�'�	
���)�R�X�X�t�4�2�
1�
1��
&�
&�s%�1E3�B(F�3F	�<F	�F	�F	c��QQ2o[]d2FD5oUOUOQ5oUOU22J7	P!)c�(`�\sQsQsnQsQsUsP!)�5BaseFutureTests.test_future_del_collect.<locals>.Evil��c�2�[O2P!r)�gc�collectr%s&rr-�=BaseFutureTests.test_future_del_collect.<locals>.Evil.__del__�s���
�
�r
r)rrrrr-r r/r0s@r�Evilr��s����
�
r
r�ro)rryr^rI)r&r�rr�s&   r�test_future_del_collect�'BaseFutureTests.test_future_del_collect�sA��	�	��s��A��"�"��	�	�"�2�C��N�N�4�6�"�r
c�<�UOUOQ5oUO2PoUO2UO
U2UO[OU2,2P![O
c
oSoPo=KUPo=hh9hr�)
ryr^r7rBr	r�rH�assertListEqualr��
get_referrers�r&rr�r&s&   r�&test_future_cancelled_result_refcycles�6BaseFutureTests.test_future_cancelled_result_refcycles�s}�����$�)�)��,��	���
���	�
�H�H�J�	
���S�!����R�-�-�c�2�B�7���%�%�	��C��	���A:�:B�B�B�Bc�<�UOUOQ5oUO2PoUO2UO
U2UO[OU2,2P![O
c
oSoPo=KUPo=hh9hr�)
ryr^r7rEr	r�rHr�r�r�r�s&   r�)test_future_cancelled_exception_refcycles�9BaseFutureTests.test_future_cancelled_exception_refcycles�s}�����$�)�)��,��	���
���	�
�K�K�M�	
���S�!����R�-�-�c�2�B�7���%�%�	��C��	�r�c���UOUOQ5oUO[QQ59^tt^2UO	UOQ5PPP2P!)%fhP!9h)rozis already initialized)�msg)ryr^r�r�r�r�s& r�,test_future_disallow_multiple_initialization�<BaseFutureTests.test_future_disallow_multiple_initialization�sR�����$�)�)��,��
�
�
�|�1I�
�
J�
J�
�J�J�D�I�I�J�&�K�
J�
J�
J�s�A$�$A5	�-A5	ro);rrrrryr\r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr,r=rGrKr�patchrRrUrXr[rbrerhrir�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r r/rprqs@@rrsrs{s�����)�)�
4�
�.'��/�/�;�2%�h:�	>�	%�%�%�BO�;�<�;�
-�$C=�J*Y�X07�d�&�

�Z�Z�,�-�-�.�-�

�Z�Z�,�-�-�.�-�
�Z�Z�,�-�-�.�-�
�Z�Z�,�-�-�.�-�
�Z�Z�,�-�,�.�,�
�Z�Z�,�-�-�.�-�
�Z�Z�,�-�-�.�-���
�	�
�(�(�	;�
�Z�Z�,�-�@�.�@�.;�:�)�)�
5�#�	8�	8�'�'r
rs�_CFuturezrequires the C _asyncio modulec�f`�\sQsQsn\O
sQsQs	Qs
UsP!\cPsKh9h)�CFutureTests�c�.�UOUOQ5oUO[29^tt^2U;PPP2UO[29^tt^2U;PPP2P!)%fhK:9h)%fhP!9hr�)ryr^r�r�rPrJr�s& r�test_future_del_segfault�%CFutureTests.test_future_del_segfault�sg�����D�I�I��.��
�
�
�~�
.�
.��,�/�
�
�
�~�
.�
.��"�/�
.�/�
.��
.�
.�
.�s#�A0�#B�0B	�9B	�B	�B	c��UOUOQ5oQoQoUOU2UOU2UOoUO	VAO2UOU2UOoUO	VAO2UOU2UO
UO2P!)roc��]!�r�r��_s&rr��2CFutureTests.test_callbacks_copy.<locals>.<lambda>���qr
c��]!)r�rr�s&rr�r�r�r
)ryr^r��
_callbacks�assertIsNotr��assertIsNone)r&r�r|r}�	callbackss&    r�test_callbacks_copy� CFutureTests.test_callbacks_copys���
���D�I�I��.��
��
�����b�!����b�!��N�N�	�����N�N�3�� � ��$��N�N�	�����N�N�3�� � ��$����#�.�.�)r
r)rrrrrr�rur�r�rr r/r0s@rr�r��s:���������#�*�*�������s�$�0�0�0r�c�l�\sQsQsQQ\O
2s\sQs	P!\c	PsQs	P!h9h)�CSubFutureTests�c��\sQsQsQsP!)�CSubFutureTests.CSubFuture�rrrr
r�
CSubFuturer
r�r
rr)
rrrrrr�rrur�r rr
rrrs4���	��)�)�	���������s�$�3�3�3rc�0�\sQsQs\O
sQsP!)�
PyFutureTests�$r)rrrrr�	_PyFuturerur rr
rrr$s
��
�
�
�Cr
rc�``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsUsU9s!)�BaseFutureDoneCallbackTests�(c�P:�[RU_2UO2UmP!r)r[r\r]r^r`s&�rr\�!BaseFutureDoneCallbackTests.setUp*s���
��
���&�&�(��	r
c�H�[OUO2P!r)r�r`r^r%s&rr`�'BaseFutureDoneCallbackTests.run_briefly.s�����t�y�y�)r
c�``�UU1QkoU!)c�,:�ROR2P!r)�append)r��bag�things&��r�bag_appender�@BaseFutureDoneCallbackTests._make_callback.<locals>.bag_appender3s����J�J�u�r
r)r&rrrs&ff r�_make_callback�*BaseFutureDoneCallbackTests._make_callback1s���	��r
c��[gr��NotImplementedErrorr%s&rry�'BaseFutureDoneCallbackTests._new_future7���!�!r
c��,oUO2oUOU]*2oUOU]2oUOU]d2oUOU2UOU2UOU2UOU2UOU2UO	U,2UOQ2UO
2UO	U]]d,2UO	UO2Q2P!�r��foo�ryrr�r�rrIr`rB�r&rr�cb1�cb2�cb3s&     r�$test_callbacks_remove_first_callback�@BaseFutureDoneCallbackTests.test_callbacks_remove_first_callback:s�����������!�!�#�r�*���!�!�#�r�*���!�!�#�s�+��	���C� �	���C� �	���C� �	���s�#�	���s�#�����b�!�	���U����������r�3�i�(��������U�+r
c�0�,oUO2oUOU]*2oUOU]2oUOU]d2oUOU2UOU2UOU2UOU2UOU2UOU2UO	U,2UOQ2UO
2UO	U]d,2UO	UO2Q2P!r'r)r*s&     r�/test_callbacks_remove_first_and_second_callback�KBaseFutureDoneCallbackTests.test_callbacks_remove_first_and_second_callbackQs�����������!�!�#�r�*���!�!�#�r�*���!�!�#�s�+��	���C� �	���C� �	���C� �	���s�#�	���s�#�	���s�#�����b�!�	���U����������s�e�$��������U�+r
c��,oUO2oUOU]*2oUOU]2oUOU]d2oUOU2UOU2UOU2UOU2UOU2UO	U,2UOQ2UO
2UO	U]*],2UO	UO2Q2P!r'r)r*s&     r�$test_callbacks_remove_third_callback�@BaseFutureDoneCallbackTests.test_callbacks_remove_third_callbackis�����������!�!�#�r�*���!�!�#�r�*���!�!�#�s�+��	���C� �	���C� �	���C� �	���s�#�	���s�#�����b�!�	���U����������r�2�h�'��������U�+r
c�~�,oUO2oUOUOU]*22UOUOU]22UOU,2UO	Q2UO2UOU]*],2UOUO
2Q2P!r')ryr�rrrIr`rB)r&rrs&  r�$test_callbacks_invoked_on_set_result�@BaseFutureDoneCallbackTests.test_callbacks_invoked_on_set_result�s����������	���D�/�/��R�8�9�	���D�/�/��R�8�9�����b�!�	���U����������r�2�h�'��������U�+r
c�N�,oUO2oUOUOU]d22UOU,2[	2oUOU2UO
2UOU]d,2UOUO2U2P!)�d)ryr�rrr�rLr`rE)r&rrr�s&   r�'test_callbacks_invoked_on_set_exception�CBaseFutureDoneCallbackTests.test_callbacks_invoked_on_set_exception�s����������	���D�/�/��S�9�:�����b�!��n��	�������������s�e�$���������,r
c���,oUO2oUOU]2oUOU]2oUOU]2oUOU2UOU2UOUO	U2]2UOUO	U2]2UOU2[]2FDoUOU2J	UOUO	U2]2UOU,2UO
Q2UO2UOU],2UOUO2Q2P!)r�r()	ryrr�rr�rrIr`rB)r&rrr+r,r-rs&      r�test_remove_done_callback�5BaseFutureDoneCallbackTests.test_remove_done_callback�s<����������!�!�#�q�)���!�!�#�q�)���!�!�#�q�)��	
���C� �	���C� �	
����/�/��4�a�8�	
����/�/��4�a�8�	
���C� ��q��A�
����$��	
����/�/��4�a�8�����b�!�	���U����������q�c�"��������U�+r
c��`�UO2nRO[2[]?2FDoRO[2J	U1QkQ2oROU22P!)�?c�0:`�\sQsQsnU1QksQsUsP!)�RBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_mutation.<locals>.evil��c�4:�RO[2P
!r$)r��id�r&�otherr�s&&�r�__eq__�YBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_mutation.<locals>.evil.__eq__�s����(�(��,�r
r�rrrrrIr r/�r1r�s@�r�evilrC�s����
�
r
rM�ryr�r~rrFr��r&r�rMr�s&  @r�(test_remove_done_callbacks_list_mutation�DBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_mutation�sY������ �����c�"��r��A��!�!�"�%��	�	�
	� � ���(r
c��`�UO2nRO[2[]?2FDoRO[2J	U1QkQ2oROU22P!)rAc�0:`�\sQsQsnU1QksQsUsP!)�OBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_clear.<locals>.evil��c�,:�ROU2P!r)r�rGs&&�rrI�VBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_clear.<locals>.evil.__eq__�s����(�(��/r
rrKrLs@�rrMrT�s����
0�
0r
rMrNrOs&  @r�%test_remove_done_callbacks_list_clear�ABaseFutureDoneCallbackTests.test_remove_done_callbacks_list_clear�sY������ �����c�"��r��A��!�!�"�%��	0�	0�	� � ���(r
c��QoUO2oUOU2UO[2UO[2UO]2[O
UO2P!)c�2�UO[2P!r)r�r~rs&r�mut�PBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_1.<locals>.mut�s��
�"�"�3�'r
)ryr�r~rIr�r`r^)r&r\r�s&  r�'test_schedule_callbacks_list_mutation_1�CBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_1�s_��	(���� �����c�"����c�"����c�"����q�����t�y�y�)r
c�```�UO2nRO[2[]?2FDoRO[2J	]dn]nUUU1QkQ2oROU22P!)rAc�4:`�\sQsQsnUUU1QksQsUsP!)�QBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_2.<locals>.evil�c�T:�R]*
nRR6cRO[2P
!r�)r�rF)r&rH�	extra_cbsr��
max_extra_cbss&&���rrI�XBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_2.<locals>.evil.__eq__�s%����Q��	��}�,��)�)�"�-�r
rrK)r1rer�rfs@���rrMrb�s����
�
r
rMrN)r&r�rMrer�rfs&  @@@r�'test_schedule_callbacks_list_mutation_2�CBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_2�se������ �����c�"��r��A��!�!�"�%���
��	�	�	�	� � ���(r
c�*```�P
nQnUUU1Qko[2oVm[OO	UQU29^tt^2UO2nUO
RO2U2RO[2RO[2ROR2ROR2ROQ2UOROP,12PPP2P!)%fhP!9h)Fc��Q!�.rrr
rr��OBaseFutureDoneCallbackTests.test_evil_call_soon_list_mutation.<locals>.<lambda>s��cr
c�n:�R%c)RO[2ROR2P!P	nP!rO)r��int)rwrx�called_on_fut_callback0r��pads*,���r�evil_call_soon�UBaseFutureDoneCallbackTests.test_evil_call_soon_list_mutation.<locals>.evil_call_soons*���&��(�(��-��(�(��-�*.�'r
r^r_)r"�	call_soonrr��objectryrfr�r�r~rorI�assertInr)r&rr�fake_event_looprpr�rqs&  @@@r�!test_evil_call_soon_list_mutation�=BaseFutureDoneCallbackTests.test_evil_call_soon_list_mutation�s����"'����	/�.�/��$2�!�
�Z�Z�
�
�t�V�_�
=�
=��"�"�$�C��M�M�#�,�,�.�/�:��!�!�#�&��!�!�#�&��!�!�#�&��!�!�#�&��N�N�6�"�
�M�M�#�.�.�4��*�5�>�
=�
=�
=�s�B,D�D	�
D	c�`�UO2nQQ2oU1QkQU2oROU22ROU22P!)c�(`�\sQsQsnQsQsUsP!)�aBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.cb_padi&c��P	!rOr)r&rHs&&rrI�hBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.cb_pad.__eq__'s��r
rrKr0s@r�cb_padr|&s����
�
r
rc�0:`�\sQsQsnU1QksQsUsP!)�_BaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.evili*c�4:�ROP2[!r)r��NotImplementedrGs&&�rrI�fBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.evil.__eq__+s����(�(��.�%�%r
rrKrLs@�rrMr�*s����
&�
&r
rM)ryr�r�)r&rrMr�s&  @r�5test_use_after_free_on_fut_callback_0_with_evil__eq__�QBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__ sK������ ��	�	�	&�6�	&�
	���f�h�'�� � ���(r
c�``�UU1QkQ[2oU2o[OOUQU29^tt^2UO	2nUORO
2U2QnROR2UO[ROQ2PPP2P!)%fhP!9h)c�D:``�\sQsQsnU1QksUU1QksQsUsU9s!)�rBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.EvilEventLoopi5c�4:�[RU_U-U@[gr)r[rtr)r&rwrxras&*,�rrt�|BaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.EvilEventLoop.call_soon6s�����!�4�2�6�2�#�#r
c�b:�UQ6XcROR2<[OV2!)rt)r�ru�__getattribute__)r&�namer��fut_callback_0s&&��rr�ڃBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.EvilEventLoop.__getattribute__:s-����;�&��,�,�^�<�&��.�.�t�:�:r
r)	rrrrrtr�r r/rp)rar1r�r�s@@��r�
EvilEventLoopr�5s����
$�
;�
;r
r�r^c��Q!rlrrr
rr��mBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.<lambda>Fs��Sr
r_)r"rr�ruryrfr�r�r�rrI)r&r��	evil_loopr�r�s&  @@r�?test_use_after_free_on_fut_callback_0_with_evil__getattribute__�[BaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__2s����
	;�
	;�/�
	;�"�O�	�
�Z�Z�
�
�t�V�Y�
7�
7��"�"�$�C��M�M�#�,�,�.�)�4�(�N��!�!�.�1����m�S�^�^�V�D�
8�
7�
7�
7�s�A&B7�7C	�C	ro)rrrrr\r`rryr.r1r4r7r;r>rPrXr^rhrxr�r�r r/rprqs@@rrr(sc����)�*��"�,�.,�0,�.,�-�,�B)� 
)�*�)�,6�B)�$E�Er
rc�(`�\sQsQsnQsQsUsP!)�CFutureDoneCallbackTestsiJc�F�[OUOQ5!r��rr�r^r%s&rry�$CFutureDoneCallbackTests._new_futureOs�����T�Y�Y�/�/r
r�rrrrryr r/r0s@rr�r�Js����
0�0r
r�c�(`�\sQsQsnQsQsUsP!)�CSubFutureDoneCallbackTestsiSc�\�QQ[O2oUUOQ5!)c��\sQsQsQsP!)�;CSubFutureDoneCallbackTests._new_future.<locals>.CSubFutureiYrrrr
rrr�Yr�r
rror�)r&rs& rry�'CSubFutureDoneCallbackTests._new_futureXs#��	��)�)�	��t�y�y�)�)r
rr�r0s@rr�r�Ss����
*�*r
r�c�(`�\sQsQsnQsQsUsP!)�PyFutureDoneCallbackTestsi^c�F�[OUOQ5!r�)rrr^r%s&rry�%PyFutureDoneCallbackTests._new_futureas��� � �d�i�i�0�0r
rr�r0s@rr�r�^s����1�1r
r�c�@``�\sQsQsnQsU1QksQsQsUsU9s	!)�BaseFutureInheritanceTestsiec��[grr"r%s&r�_get_future_cls�*BaseFutureInheritanceTests._get_future_clsgr%r
c�:�[RU_2UO2UmUO	UOO
2P!rrZr`s&�rr\� BaseFutureInheritanceTests.setUpjrcr
c��UO2oQQU2oUUOQ5oUO[Q29^tt^2UO	2PPP2P!)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�QBaseFutureInheritanceTests.test_inherit_without_calling_super_init.<locals>.MyFutisc��P!rrrvs&*,rr��ZBaseFutureInheritanceTests.test_inherit_without_calling_super_init.<locals>.MyFut.__init__ts��r
r)rrrrr�r r/r0s@r�MyFutr�ss����
�
r
r�roz!Future object is not initialized.)r�r^r�r�r�)r&rur�r�s&   r�'test_inherit_without_calling_super_init�BBaseFutureInheritanceTests.test_inherit_without_calling_super_initose���"�"�$��	�C�	�
����#��
�
#�
#��/�
�
�
�L�L�N�	
�
�
�
�s�A)�)A:	�2A:	ro)
rrrrr�r\r�r r/rprqs@@rr�r�es����"�)�
�r
r�c�(`�\sQsQsnQsQsUsP!)�PyFutureInheritanceTestsi�c�$�[O!r)rrr%s&rr��(PyFutureInheritanceTests._get_future_cls�s��� � � r
r�rrrrr�r r/r0s@rr�r��s����!�!r
r�c�(`�\sQsQsnQsQsUsP!)�CFutureInheritanceTestsi�c�$�[O!r)rr�r%s&rr��'CFutureInheritanceTests._get_future_cls�s�����r
rr�r0s@rr�r��s���� � r
r��__main__).�concurrent.futuresrr�r�r�rmr�unittestr�typesrr	rr��test.test_asynciorr�r�rrrrrr�r�base_events�
BaseEventLoopr"r3�TestCaserXrs�
skipUnless�hasattrr�rrrr�r�r�r�r�r�r�mainrr
r�<module>r�s-���	�	�
���������1��0�
�	�	��I��	�'�-�-�;�;�	�0�0�f�
�#�#��$y	'�y	'�v
���W�W�j�1�5�7�*�?�J�$7�$7�*�7�*�@
���W�W�j�1�5�7��o�z�':�':��7���O�Z�%8�%8��`E�`E�D	
���W�W�j�1�5�7�0�:�)�2�2�0�7�0�
���W�W�j�1�5�7�*�"=�",�"5�"5�*�7�*�1� ;� *� 3� 3�1���6!�9�)�2�2�!�
���W�W�j�1�5�7� �8�(�1�1� �7� ��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit