403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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.pyc
R
>lqj��c�,�Qs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH G	s	]QH(Gs]PH0s]QH0G
s
]PH8s]QH<Gs]QHHGsQsQsQsQ	sQ
Q\2sQQ
\O4O62sQQ2sQQ\O<2sQQ2s \OB\"\
Q2Q2QQ\ \O<22s#\OB\"\
Q2Q2QQ\ \O<22s$QQ\ \O<2s%QQ2s&\OB\"\
Q2Q2QQ\&\O<22s'\OB\"\
Q2Q2Q Q!\&\O<22s(Q"Q#\&\O<2s)Q$Q%2s*Q&Q'\*\O<2s+\OB\"\
Q2Q2Q(Q)\*\O<22s,\-Q*6Xc\O\2P!P!)+zTests for futures.py.)�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!rrrrr
�first_cbr���rc��P!rrrrr
�last_cbrrrc��\sQs]#sQsQsP!)�
ReachableCodezyException to raise to indicate that some code was reached.

Use this exception if using mocks is not a good alternative.
r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__rrr
rr#s��rrc�2`�\sQs]*snQsQsQsQsUsP!)�SimpleEvilEventLoopzEBase class for UAF and other evil stuff requiring an evil event loop.c��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)	rrrrrr&r,r�__classdictcell__��
__classdict__s@r
r!r!*s����O���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)r5r$s&r
�	cancelled�DuckFuture.cancelledEs�����rc�t�UO9%f%UOPI9%fUOPI!r)r5�_DuckFuture__result�_DuckFuture__exceptionr$s&r
r4�DuckFuture.doneHs>��� � �0�0��=�=��,�0�0��#�#�4�/�	1rc��UOUO22UOd
UOgUO!r)�assertFalser9r=r<r$s&r
�result�DuckFuture.resultMs9��������)�*����'��"�"�"��}�}�rc�Z�UOUO22UO!r)r@r9r=r$s&r
�	exception�DuckFuture.exceptionSs#��������)�*����rc�t�UOUO22UOU2VmP!r)r@r4�assertIsNotNoner<)r%rAs&&r
�
set_result�DuckFuture.set_resultWs)���������%����V�$��
rc�t�UOUO22UOU2VmP!r)r@r4rGr=)r%rDs&&r
�
set_exception�DuckFuture.set_exception\s*���������%����Y�'�$�rc#� �UO2%f
P	UmUw�	UOUO22UO2!3h�T)r4�_asyncio_future_blocking�
assertTruerAr$s&r
�__iter__�DuckFuture.__iter__as;����y�y�{�{�,0�D�)��J�����	�	��$��{�{�}��s
�A�;A)�__cancelled�__exception�__resultrO)rrrrrOr5r<r=r6r9r4rArDrHrKrQrr.r/s@r
r2r26sI���� %���K��H��K�� �1�
� ��
%�
�rr2c�@``�\sQs]isnU1QksQsQsQsUsU9s	!)�	DuckTestsc�:�[RU_2UO2UmUO	UOO
2P!r��super�setUp�
new_test_loop�loop�
addCleanupr+�r%�	__class__s&�r
r[�DuckTests.setUpk�0���
��
���&�&�(��	�����	�	���(rc�j�[2o[OU2oUOV!2P!r)r2r�wrap_future�assertIs�r%r�gs&  r
�test_wrap_future�DuckTests.test_wrap_futureps%���L������"���
�
�a�rc�j�[2o[OU2oUOV!2P!r)r2r�
ensure_futurererfs&  r
�test_ensure_future�DuckTests.test_ensure_futureus%���L���!�!�!�$���
�
�a�r�r])
rrrrr[rhrlrr.�
__classcell__�r`r0s@@r
rWrWis����)�
�
�rrWc�``�\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!rrYr_s&�r
r[�BaseFutureTests.setUp�rbrc��UO[*oUOUO[12UO	U[
2P!r)rt�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#�rOr$s&r
�__init__�8BaseFutureTests.test_isfuture.<locals>.MyFuture.__init__�s
��05��-rr�)rrrrrOr�rr.r/s@r
�MyFuturer��s����'+�$�
6�
6rr�rn)
r@r�isfuturerPr�Mockrxr]�typer6)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!�rn)rxr]r@r9r4r6rP�r%rs& r
�test_initial_state�"BaseFutureTests.test_initial_state�s\�����$�)�)��,���������'��������"�	���
�������
�&rc��UO[Q29^tt^2UO2PPP2P!)%fhP!9h)�no current event loop)�assertRaisesRegex�RuntimeErrorrxr$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)rxr$s�r
�test�?BaseFutureTests.test_constructor_use_running_loop.<locals>.test�s�����#�#�%�%�s�)r]�run_until_completere�_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^rxrer�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�	TypeErrorrxr$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)rnc��P!rrrs&r
�<lambda>�4BaseFutureTests.test_uninitialized.<locals>.<lambda>�s��Drc��P!rrrs&r
r�r��s��tr)rt�__new__r]r�r�InvalidStateErrorrArDr��AttributeErrorrHrK�	Exceptionr6�add_done_callback�remove_done_callback�repr�	__await__�iterr@r9r4�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)rn�_cancel_message�
my message)
rxr]�
assertHasAttrr~r�r6r�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)rnr�zmy new message)	rxr]r6r�r~r�rr�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�)rxr]rPr6r9r4r�rr�rArDr�rHrKr@r�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�)rxr]r�rr�rArHr@r9rPr4r~rDrKr6r�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�rxr]r�rr�rDrKr@r9rPr4rAr~rHr6)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!)rnz!StopIteration .* cannot be raised)rxr]rKr@r9rPr4r�r�rArD�	__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�rrrrrrr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�)rxr]rKr�r�rDr�s& r
�test_exception_class�$BaseFutureTests.test_exception_classAs;�����$�)�)��,��	����%����a�k�k�m�\�:rc�V`�UOUOQ5nU1QkoU2oUO[U2Q2UO[U2R2RO	]*2UO[U2Q2UO[U2Q2P!)rnc3�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�)rxr]r~�nextrH)r%r�rgrs&  @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!)Trn�<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_debugrx�_source_tracebackr~r�rtrr6rHrAr�rKrerDr�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!)���_copy_future_staternz*raise concurrent.futures.InvalidStateError)�asyncio.futuresr�
concurrentr�FuturerHrxr]rPr4r~rArKr�r�r6r9r��
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)z{Test _copy_future_state from concurrent.futures.Future.

This tests the optimized path using _get_snapshot when available.
rrnztest exception�invalid)rrrrrrHrxr]rPr4r~rArK�
ValueErrorr�r}rDr6r9r�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)rnc3�.: �RFPiw�K
P!K3hrr)r�s�r
�coro�'BaseFutureTests.test_iter.<locals>.coro�s
�����N�N�s���c�:�R2vqP!rr)�arg1�arg2rBs  �r
r��'BaseFutureTests.test_iter.<locals>.tests�����J�D�$rzawait wasn't used)rxr]r�r�r6)r%r�rBr�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)rnzcan only be set to False)rxr]r�r1�_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�)rxr]r@�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�)rxr]rKr�r6r@rOrPrQs&& 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�)rxr]rHr@rOrPrQs&& 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�)rxr]rHrAr@rOrPrQs&& r
�test_tb_logger_result_retrieved�/BaseFutureTests.test_tb_logger_result_retrieved"sI�����D�I�I��.�����r���
�
���������+�+�,rc�*�UOUOQ5oUO[Q22=[O
UO2[O2UOUOO2P!�rn�boom)rxr]rKr�r��run_brieflyr�
gc_collectrPrOrPrQs&& 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_)rxr]rKr�rDr@rOrPrQs&& 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_)	rxr]rKr�r�rAr@rOrPrQs&& 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�oirn��wait)rr�ThreadPoolExecutor�submitrrdr]r�rPr�r~�assertNotEqualrnro�shutdown)r%rr�ex�f1�f2�res�idents&      r
rh� 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�)rxr]rrdre�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!rrmrps&r
rr�:BaseFutureTests.test_wrap_future_without_loop.<locals>.runVrtrrur�rv)	rrrxryr�r�rrdr{)r%rrr|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!rrmrps&r
rr�>BaseFutureTests.test_wrap_future_use_running_loop.<locals>.run_rtrruc��:: �[OR2!3hr)rrd)r}s�r
r��?BaseFutureTests.test_wrap_future_use_running_loop.<locals>.testcs�����&�&�r�*�*�s�rv)	rrrxryr]r�rer�r{)r%rrr|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!rrmrps&r
rr�=BaseFutureTests.test_wrap_future_use_global_loop.<locals>.runmrtrrurv)rr�r]r^rrrxryrdrer�r{)r%rrr|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�)rrrrrdr]r6r�rarPr9r�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�)rrrrrdr]rHr6r�rar@r9r~rArPr�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!)Trn:N�N�test_future_source_traceback���)r]rrx�sys�	_getframe�f_linenor�r�listr~�__file__)r%r�rs&  r
r��,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�

�	$�$��$�$rn�^z exception was never retrieved
)�exc_info)r]rrxrKr�rarrbrtrr�r"rO�assert_called_once_withr�ANY�	call_argsr�r��compile�DOTALL)	r%�debugrRr�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!rNr�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�)rxr]r6r�_set_result_unless_cancelledrPr9r�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)rnzStopIteration was expected)��)	rxr]rHrQ�send�failr�rvr~)r%r��firAr|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)rn�zebra�ignore)�category�elephant)rxr]r��assertWarns�DeprecationWarningr�r��throw�warnings�catch_warnings�filterwarningsr�r1r�)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&r
r,�=BaseFutureTests.test_future_del_collect.<locals>.Evil.__del__�s���
�
�rr)rrrrr,rr.r/s@r
�Evilr��s����
�
rr�rn)rrxr]rH)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�)
rxr]r6rArr�rG�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�)
rxr]r6rDrr�rGr�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)rnzis already initialized)�msg)rxr]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	rn);rrrrrxr[r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr-r>rHrLr�patchrSrVrYr\rcrfrirhr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr.rorps@@r
rrrr{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rr�_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�)rxr]r�r�rOrKr�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!)rnc��]!�r�r��_s&r
r��2CFutureTests.test_callbacks_copy.<locals>.<lambda>���qrc��]!)r�rr�s&r
r�r�r�r)rxr]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�rtr�r�rrr.r/s@r
r�r��s:���������#�*�*�������s�$�0�0�0r�c�l�\sQsQsQQ\O
2s\sQs	P!\c	PsQs	P!h9h)�CSubFutureTests�c��\sQsQsQsP!)�CSubFutureTests.CSubFuture�rr�rrr
�
CSubFuturerr�rr
r)
rrrrrr�r
rtr�rrrr
rrs4���	��)�)�	���������s�$�3�3�3rc�0�\sQsQs\O
sQsP!)�
PyFutureTests�$r)rrrrr�	_PyFuturertrrrr
rr$s
��
�
�
�Crrc�``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsUsU9s!)�BaseFutureDoneCallbackTests�(c�P:�[RU_2UO2UmP!r)rZr[r\r]r_s&�r
r[�!BaseFutureDoneCallbackTests.setUp*s���
��
���&�&�(��	rc�H�[OUO2P!r)r�rar]r$s&r
ra�'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&r
rx�'BaseFutureDoneCallbackTests._new_future7���!�!rc��,oUO2oUOU]*2oUOU]2oUOU]d2oUOU2UOU2UOU2UOU2UOU2UO	U,2UOQ2UO
2UO	U]]d,2UO	UO2Q2P!�r��foo�rxr r�r�r~rHrarA�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()rxr�r r~rHrarA)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)rxr�r r~r�rKrarD)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))	rxr r�r~r�rrHrarA)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�rrrrrJrr.�r0r�s@�r
�evilrD�s����
�
rrN�rxr�r}rrGr��r%r�rNr�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!)rBc�0:`�\sQsQsnU1QksQsUsP!)�OBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_clear.<locals>.evil��c�,:�ROU2P!r)r�rHs&&�r
rJ�VBaseFutureDoneCallbackTests.test_remove_done_callbacks_list_clear.<locals>.evil.__eq__�s����(�(��/rrrLrMs@�r
rNrU�s����
0�
0rrNrOrPs&  @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)rxr�r}rHr�rar])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!)rBc�4:`�\sQsQsnUUU1QksQsUsP!)�QBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_2.<locals>.evil�c�T:�R]*
nRR6cRO[2P
!r�)r�rG)r%rI�	extra_cbsr��
max_extra_cbss&&���r
rJ�XBaseFutureDoneCallbackTests.test_schedule_callbacks_list_mutation_2.<locals>.evil.__eq__�s%����Q��	��}�,��)�)�"�-�rrrL)r0rfr�rgs@���r
rNrc�s����
�
rrNrO)r%r�rNrfr�rgs&  @@@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!�.rrrr
r��OBaseFutureDoneCallbackTests.test_evil_call_soon_list_mutation.<locals>.<lambda>s��crc�n:�R%c)RO[2ROR2P!P	nP!rN)r��int)rvrw�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��objectrxrer�r�r}rprH�assertInr)r%rs�fake_event_looprqr�rrs&  @@@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	!rNr)r%rIs&&r
rJ�hBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.cb_pad.__eq__'s��rrrLr/s@r
�cb_padr}&s����
�
rr�c�0:`�\sQsQsnU1QksQsUsP!)�_BaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.evili*c�4:�ROP2[!r)r��NotImplementedrHs&&�r
rJ�fBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__eq__.<locals>.evil.__eq__+s����(�(��.�%�%rrrLrMs@�r
rNr�*s����
&�
&rrN)rxr�r�)r%r�rNr�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)rZrur)r%rvrwr`s&*,�r
ru�|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!)ru)r�rv�__getattribute__)r%�namer��fut_callback_0s&&��r
r�ڃBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.EvilEventLoop.__getattribute__:s-����;�&��,�,�^�<�&��.�.�t�:�:rr)	rrrrrur�rr.ro)r`r0r�r�s@@��r
�
EvilEventLoopr�5s����
$�
;�
;rr�r]c��Q!rmrrrr
r��mBaseFutureDoneCallbackTests.test_use_after_free_on_fut_callback_0_with_evil__getattribute__.<locals>.<lambda>Fs��Srr`)r!rr�rvrxrer�r�r�rrH)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	rn)rrrrr[rar rxr/r2r5r8r<r?rQrYr_riryr�r�rr.rorps@@r
rr(sc����)�*��"�,�.,�0,�.,�-�,�B)� 
)�*�)�,6�B)�$E�Errc�(`�\sQsQsnQsQsUsP!)�CFutureDoneCallbackTestsiJc�F�[OUOQ5!r��rr�r]r$s&r
rx�$CFutureDoneCallbackTests._new_futureOs�����T�Y�Y�/�/rr�rrrrrxrr.r/s@r
r�r�Js����
0�0rr�c�(`�\sQsQsnQsQsUsP!)�CSubFutureDoneCallbackTestsiSc�\�QQ[O2oUUOQ5!)c��\sQsQsQsP!)�;CSubFutureDoneCallbackTests._new_future.<locals>.CSubFutureiYrr�rrr
r
r�Yr�rr
rnr�)r%r
s& r
rx�'CSubFutureDoneCallbackTests._new_futureXs#��	��)�)�	��t�y�y�)�)rrr�r/s@r
r�r�Ss����
*�*rr�c�(`�\sQsQsnQsQsUsP!)�PyFutureDoneCallbackTestsi^c�F�[OUOQ5!r�)rrr]r$s&r
rx�%PyFutureDoneCallbackTests._new_futureas��� � �d�i�i�0�0rrr�r/s@r
r�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!rrYr_s&�r
r[� BaseFutureInheritanceTests.setUpjrbrc��UO2oQQU2oUUOQ5oUO[Q29^tt^2UO	2PPP2P!)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�QBaseFutureInheritanceTests.test_inherit_without_calling_super_init.<locals>.MyFutisc��P!rrrus&*,r
r��ZBaseFutureInheritanceTests.test_inherit_without_calling_super_init.<locals>.MyFut.__init__ts��rr)rrrrr�rr.r/s@r
�MyFutr�ss����
�
rr�rnz!Future object is not initialized.)r�r]r�r�r�)r%rtr�r�s&   r
�'test_inherit_without_calling_super_init�BBaseFutureInheritanceTests.test_inherit_without_calling_super_initose���"�"�$��	�C�	�
����#��
�
#�
#��/�
�
�
�L�L�N�	
�
�
�
�s�A)�)A:	�2A:	rn)
rrrrr�r[r�rr.rorps@@r
r�r�es����"�)�
�rr�c�(`�\sQsQsnQsQsUsP!)�PyFutureInheritanceTestsi�c�$�[O!r)rrr$s&r
r��(PyFutureInheritanceTests._get_future_cls�s��� � � rr�rrrrr�rr.r/s@r
r�r��s����!�!rr�c�(`�\sQsQsnQsQsUsP!)�CFutureInheritanceTestsi�c�$�[O!r)rr�r$s&r
r��'CFutureInheritanceTests._get_future_cls�s�����rrr�r/s@r
r�r��s���� � rr��__main__)/r�concurrent.futuresrr�r�r�rnr �unittestr�typesrrrr��test.test_asynciorr�r�rrrrrr�r�base_events�
BaseEventLoopr!r2�TestCaserWrr�
skipUnless�hasattrr�rrrr�r�r�r�r�r�r�mainrr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