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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_thread.cpython-315.pyc
R
>lqj<c��]PHs]PHs]PHs]QHGs]QHGs]PHs]PH$s	]PH(s
]PH,s]QHGs\OP	Q5]
s]s\O 2sQsQQ\O&2sQQ	\2sQ
Q2sQQ
\2sQQ\O02sQQ\O&2s\Q6Xc\O62P!P!)�)�support)�threading_helper)�
lock_tests)�modulec��[O%c%[9^tt^2[U2PPP2P!P!)%fhP!9h)z2Helper function for printing out debugging output.)r�verbose�_print_mutex�print)�args&�%C:\Python315\\Lib\test\test_thread.py�
verbose_printrs+������
�\��#�J��\��
�\�\�s�>�A	�A	c�(`�\sQs]snQsQsUsP!)�BasicThreadTestc�r�[O2UmUOO2[O2Um[O2Um]Um]Um]Um[O2oUO[O,UN3P!�r)
�thread�
allocate_lock�
done_mutex�acquire�
running_mutex�random_mutex�created�running�
next_identr�threading_setup�
addCleanup�threading_cleanup)�self�keys& r�setUp�BasicThreadTest.setUps�� �.�.�0��������!�#�1�1�3���"�0�0�2�������������.�.�0�����(�:�:�A�S�A�)rrrrrr)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����
B�
Br!rc��`�\sQs]*snQsQsQsQs\O\
OQ7Q2Q2sQs
QsQ	sQ
sQsQsQ
sQsQsQsQsQsQsQsUsP!)�ThreadRunningTestsc��UO9^tt^2U9O]*
tm[QUO*2[OUO
UO12U9O]*
tmU9O]*
tmPPP2P!)%fhP!9h)�zcreating task %s)rrrr�start_new_thread�taskrr�rs&r�newtask�ThreadRunningTests.newtask,st��
�
�
�
��O�O�q� �O��,�t���>�?��#�#�D�I�I����/A�B��L�L�A��L��L�L�A��L� �
�
�
�s�BB4�4C	�=C	c	�L�UO9^tt^2[O2Q*oPPP2[QU8Q[WQ*28Q02[O
U2[QU*2UO9^tt^2U9O]*tmUO[6Xc,UO]6XcUOO2PPP2P!)%fhK�9h)%fhP!9h)���@�task � will run for ���.A�usztask %s done)r�randomr�round�time�sleeprrr�NUMTASKSr�release)r�ident�delays&& rr/�ThreadRunningTests.task4s���
�
�
�
��M�M�O�g�-�E���U�E�%��)�<L�M�N��
�
�5���n�u�,�-�
�
�
�
��L�L�A��L��|�|�x�'�D�L�L�A�,=����'�'�)� �
��
��
 �
�
�s/�C?�.D�
D�D�?D	�D	�D#	�D#	c�*�[O29^tt^2[[2FDoUO	2J	[Q2UOO2[Q2PPP2P!)%fhP!9h)z waiting for tasks to complete...�all tasks done)r�wait_threads_exit�ranger=r1rrr�r�is& r�test_starting_threads�(ThreadRunningTests.test_starting_threads?sY��
�
/�
/�
1�
1��8�_������%��<�=��O�O�#�#�%��*�+�
2�
1�
1�
1�s�AB�B	�
B	c�
�UO[O2]Q2[O]2UO[O2]Q2UO[29^tt^2[O]{2PPP2UO[29^tt^2[OQ2PPP2P!)%fhKN9h)%fhP!9h)rzinitial stack size is not 0zstack_size not reset to defaulti�)�assertEqualr�
stack_size�assertRaises�
ValueErrorr0s&r�test_stack_size�"ThreadRunningTests.test_stack_sizeHs�������*�*�,�a�1N�O����!������*�*�,�a�1R�S�
�
�
�z�
*�
*����c�"�+��
�
�z�
*�
*����e�$�+�
*�	+�
*��+�
*�
*�s$�C�=C1�C.	�'C.	�1D	�:D	ztest meant for nt and posixc	�$�[OQ2QoQFDWo[OU2UO
[O2V!U*2[QU*2JY	Q	FD�o[QU*2]Um]Um[O29^tt^2[[2FDoUO2J	[Q2UOO2[Q2PPP2J�	[O]2P![c[Q2CK8[OcSOQ2CK`h9h)%fhCJ9h)
iz3caught expected ValueError setting stack_size(4096)z4platform does not support changing thread stack sizez&stack_size(%d) failed - should succeedzsuccessfully set stack_size(%d)ztrying stack_size = (%d)z!waiting for all tasks to completerC)��r)rRrS)rrLrNr�error�skipTestrKrrrrDrEr=r1rr)r�fail_msg�tssrGs&   r�test_nt_and_posix_stack_size�/ThreadRunningTests.test_nt_and_posix_stack_sizeWs0��	"����d�#�<��(�C����c�"����V�.�.�0�#�#�~�F��;�c�A�B�)�
&�C��4�s�:�;��D�O��D�L�!�3�3�5�5��x��A��L�L�N�)��A�B����'�'�)��.�/�
6�5�	&�	���!���3�	0��/�
0��|�|�	"��M�M�!�
"�	"��6�5�5�s6�D8�<AE=	�8	E:�E:�E:�$E:�9E:�=F
�F
c�:```�[O2o[O2nRO2,nUU1Qko[O
29^tt^2[OUQ2[O[O2FDoR%fJ
L	UO[O2U]*2RO2,n[OUU1Qk2o=[O[O2FD#oR%cL[O2J%	UO[O2U2PPP2P!)%fhP!9h)c�l:�ROP2RO2RO2P!�N)�appendrr>)�mut�starteds��rr/�,ThreadRunningTests.test__count.<locals>.task}s!����N�N�4� ��K�K�M��K�K�Mr!c�(:�ROP2!r\)r])�_�dones&�r�<lambda>�0ThreadRunningTests.test__count.<locals>.<lambda>�s���T�[�[��->r!�)r�_countrrrrDr.r�sleeping_retry�LONG_TIMEOUTrKr>�weakref�ref�
gc_collect)r�origr/rb�wrrcr^r_s&    @@@r�test__count�ThreadRunningTests.test__countvs����}�}����"�"�$�����
���	�
�
/�
/�
1�
1��#�#�D�"�-��+�+�G�,@�,@�A���7��B�
���V�]�]�_�d�Q�h�7�
�K�K�M�
�D����T�#>�?�B���+�+�G�,@�,@�A�����"�"�$�B�
���V�]�]�_�d�3�+2�
1�
1�
1�s!�%AF	�/BF	�>AF	�	F	�F	c	��`�U1Qko[O2n[O29^tt^2o[O
29^tt^2RO
2[OUQ2RO
2PPP2UO[UOO2Q2UOUOO2UOUOOQU802UOUOO 2PPP2P!)%fhK�9h)%fhP!9h)c�<:�RO2[Q2g)�task failed)r>rN)r_s�rr/�:ThreadRunningTests.test_unraisable_exception.<locals>.task�s����O�O���]�+�+r!rsz'Exception ignored in thread started by rf)rrr�catch_unraisable_exceptionrrDrr.rK�str�
unraisable�	exc_value�assertIsNone�object�err_msg�assertIsNotNone�
exc_traceback)rr/�cmr_s&  @r�test_unraisable_exception�,ThreadRunningTests.test_unraisable_exception�s����	,��&�&�(��
�
/�
/�
1�
1�R�!�3�3�5�5����!��'�'��b�1����!�6�

���S����!8�!8�9�=�I����b�m�m�2�2�3����R�]�]�2�2�F�t�h�O�
Q�� � ����!<�!<�=�2�
1�5�5��2�
1�
1�s0�E�8E	�B+E�E
�E
�E�E*	�"E*	c�V`�,nU1Qko[O29^tt^2[OU2oUO	2UO[
R2]2UOUOR]*2PPP2P!)%fhP!9h)c�~:�[OQ2RO[O22P!)皙�����?)r;r<r]r�	get_ident)�finisheds�rr/�1ThreadRunningTests.test_join_thread.<locals>.task�s$����J�J�t���O�O�F�,�,�.�/r!)rrDr�start_joinable_thread�joinrK�lenr?)rr/�handler�s&  @r�test_join_thread�#ThreadRunningTests.test_join_thread�sr�����	0��
/�
/�
1�
1��1�1�$�7�F��K�K�M����S��]�A�.����V�\�\�8�A�;�7�	2�
1�
1�
1�s�A%B�B(	� B(	c��Qo[O29^tt^2[OU2o[O
Q2UO
2PPP2P!)%fhP!9h)c��P!r\rfrfr!rr/�@ThreadRunningTests.test_join_thread_already_exited.<locals>.task����r!r�)rrDrr�r;r<r��rr/r�s&  r�test_join_thread_already_exited�2ThreadRunningTests.test_join_thread_already_exited�sL��	��
/�
/�
1�
1��1�1�$�7�F��J�J�t���K�K�M�2�
1�
1�
1�s�=A)�)A:	�2A:	c���Qo[O29^tt^2[OU2oUO	2UO	2PPP2P!)%fhP!9h)c��P!r\rfrfr!rr/�8ThreadRunningTests.test_join_several_times.<locals>.task�r�r!�rrDrr�r�r�s&  r�test_join_several_times�*ThreadRunningTests.test_join_several_times�sI��	��
/�
/�
1�
1��1�1�$�7�F��K�K�M��K�K�M�	2�
1�
1�
1�s�7A#�#A4	�,A4	c�"`�[O2nRO2U1Qko[O29^tt^2[O
U2o=RO
2PPP2P!)%fhP!9h)c�*:�RO2P!r\�r)�handle_destroyeds�rr/�9ThreadRunningTests.test_joinable_not_joined.<locals>.task�s����$�$�&r!)rrrrrDr�r>)rr/r�r�s&  @r�test_joinable_not_joined�+ThreadRunningTests.test_joinable_not_joined�sb���!�/�/�1��� � �"�	'��
/�
/�
1�
1��1�1�$�7�F���$�$�&�2�
1�
1�
1�s�(A=�=B	�B	c�v````�,n,n[O2nRO2[O2nRO2UUUU1Qko[O29^tt^2[O
U2oRO
U2RO2RO2UO2PPP2[R2]6XfPgUO[Q29^tt^2R]*g)%fhKJ9h)%fhP!9h)c�:�RO2R]*O2RO	2P![coROS2Po=K3Po=hh9hRO	2h9hr)rr��	Exceptionr]r>)�e�errors�handles�start_joinable_thread_returned�task_tried_to_joins ����rr/�4ThreadRunningTests.test_join_from_self.<locals>.task�s`���*�2�2�4�
-���
���!�#�*�*�,���
!��
�
�a� � ��
!��#�*�*�,�s-�=�	A#�A#�A�A&�A#�#A&�&A8�Cannot join current thread)rrrrrDr�r]r>r�r��assertRaisesRegex�RuntimeError)rr/r�r�r�r�r�s&  @@@@r�test_join_from_self�&ThreadRunningTests.test_join_from_self�s��������)/�)=�)=�)?�&�&�.�.�0�#�1�1�3���"�"�$�	-�	-��
/�
/�
1�
1��1�1�$�7�F��N�N�6�"�*�2�2�4��&�&�(��K�K�M�
2��6�{�a����
�
#�
#�L�2N�
O�
O���)�O�2�
1��P�
O�
O�s%�:AD�

D'�D$	�D$	�'D8	�0D8	c	�l`````	�QoPnPnU2n	U2nUUUU	1QkoU2nUU1Qko[O29^tt^2[OU2nR	O	2[OU2oRO	2[
OQ2RO2RO2UO2UO[Q29^tt^2Rg)%fhL9hPPP2P!)%fhP!9h)c�R�[O2oUO2U!r\)rrr��locks r�	make_lock�>ThreadRunningTests.test_join_then_self_join.<locals>.make_lock�s���'�'�)�D��L�L�N��Kr!c�:�RO2RO2RO2P![coSnPo=P!Po=hh9hr\)r>rr�r�)r�rT�self_joiner_barrier�self_joiner_handle�self_joiner_starteds ����r�self_joiner�@ThreadRunningTests.test_join_then_self_join.<locals>.self_joinersC���
 �'�'�)��'�'�)�
�"�'�'�)���
����
�s�6�	A�A�A	�	Ac�J:�RO2RO2P!r\)r>r�)�joiner_startedr�s��r�joiner�;ThreadRunningTests.test_join_then_self_join.<locals>.joiners����"�"�$��#�#�%r!皙�����?r�)rrDrr�rr;r<r>r�r�r�)
rr�r�r��
joiner_handlerTr�r�r�r�s
&    @@@@@r�test_join_then_self_join�+ThreadRunningTests.test_join_then_self_join�s����	�
��!��'�k��'�k��		�		�#���	&��
/�
/�
1�
1�!'�!=�!=�k�!J���'�'�)�#�8�8��@�M�
�"�"�$�
�J�J�s�O�
 �'�'�)��#�#�%���� ��'�'��6R�S�S���T�S��S�+2�
1�
1�
1�s+�B1D"�D	�D
�
D
�D"�"D3	�+D3	c��`�[O2nRO2U1Qko[O29^tt^2[O
U2oUO
Q2UOUO22RO2UO
2UOUO22PPP2P!)%fhP!9h)c�*:�RO2P!r\r�r�s�r�thr�6ThreadRunningTests.test_join_with_timeout.<locals>.thr0�����L�L�Nr!r�)rrrrrDr�r��assertFalse�is_doner>�
assertTrue)rr�r�r�s&  @r�test_join_with_timeout�)ThreadRunningTests.test_join_with_timeout,s�����#�#�%������	��
/�
/�
1�
1��1�1�#�6�F��K�K������V�^�^�-�.��L�L�N��K�K�M��O�O�F�N�N�,�-�
2�
1�
1�
1�s�BC�C,	�$C,	c���[O2oUO[Q29^tt^2UO	2PPP2P!)%fhP!9h�zthread not started)r�
_ThreadHandler�r�r��rr�s& r�test_join_unstarted�&ThreadRunningTests.test_join_unstarted;s=���%�%�'��
�
#�
#�L�2F�
G�
G��K�K�M�H�
G�
G�
G���A�A!	�A!	c���[O2oUO[Q29^tt^2UO	2PPP2P!)%fhP!9hr�)rr�r�r��	_set_doner�s& r�test_set_done_unstarted�*ThreadRunningTests.test_set_done_unstarted@s@���%�%�'��
�
#�
#�L�2F�
G�
G�����H�
G�
G�
G�r�c	�`�[O2nRO2U1Qko[O2o[O
29^tt^2[OVQ5UO[Q29^tt^2[OVQ5PPP2RO2UO2PPP2P!)%fhK:9h)%fhP!9h)c�*:�RO2P!r\r�r�s�r�func�<ThreadRunningTests.test_start_duplicate_handle.<locals>.funcIr�r!�r�zthread already started)rrrr�rrDr�r�r�r>r�)rr�r�r�s&  @r�test_start_duplicate_handle�.ThreadRunningTests.test_start_duplicate_handleEs�����#�#�%������	��%�%�'��
�
/�
/�
1�
1��(�(��=��'�'��6N�O�O��,�,�T�A�P��L�L�N��K�K�M�2�
1�O�O��2�
1�
1�s0� 6C3�C 	�.(C3� C0
�)C0
�+C3�3D	�<D	c���Qo[O29^tt^2[OUPQ5oUO	2PPP2P!)%fhP!9h)c��P!r\rfrfr!rr��<ThreadRunningTests.test_start_with_none_handle.<locals>.funcUr�r!r�r�)rr�r�s&  r�test_start_with_none_handle�.ThreadRunningTests.test_start_with_none_handleTsB��	��
/�
/�
1�
1��1�1�$�t�D�F��K�K�M�2�
1�
1�
1�s�)A�A&	�A&	)rr)�nt�posix)r"r#r$r%r1r/rHrO�unittest�skipIf�os�namerXrorr�r�r�r�r�r�r�r�r�r�r�r&r'r(s@rr+r+*s������	*�,�
%��_�_�R�W�W�O�3�5R�S��T��<!4�F>�$8���
'��:6�p
.��
�

��r!r+c�.`�\sQsQsnQsQsQsUsP!)�Barrier�]c��Vm]Um[O2Um[O2UmUO
O
2P!r)�num_threads�waitingrr�
checkin_mutex�checkout_mutexr)rr�s&&r�__init__�Barrier.__init__^sC��&�����$�2�2�4���$�2�2�4������#�#�%r!c�0�UOO2UO]*UmUOUO6Xc5UO]*
UmUOO2P!UOO2UOO2UO]*
UmUO]6XcUOO2P!UOO2P!)r-)r�rr�r�r�r>r0s&r�enter�
Barrier.enteres������"�"�$��|�|�a�'����<�<�4�+�+�+��+�+�a�/�D�L����'�'�)�����"�"�$����#�#�%��|�|�a�'����<�<�1�����&�&�(�����#�#�%r!)r�r�r�r�)r"r#r$r%r�r�r&r'r(s@rr�r�]s����&�&�&r!r�c�.`�\sQsQsnQsQsQsUsP!)�BarrierTest�vc��[O29^tt^2[[2Um[Um[
[2FD%o[OUOU12J'	[Q2UOO2[Q2PPP2P!)%fhP!9h)zwaiting for tasks to endz
tasks done)
rrDr�r=�barrrErr.�task2rrrrFs& r�test_barrier�BarrierTest.test_barrierxsx��
�
/�
/�
1�
1��x�(�D�H�#�D�L��8�_���'�'��
�
�Q�D�9�%��4�5��O�O�#�#�%��,�'�2�
1�
1�
1�s�B	B2�2C	�;C	c���[[2FD�oU]6Xc]oL9UO9^tt^2[O2Q*oPPP2[	QU8Q[WQ*28Q02[OU2[	QU8QU802UOO2[	QU*2J�	UO9^tt^2U9O]*tmUO]6HoPPP2W%cUOO2P!P!)%fhK�9h)%fhKI9h)rr4r5r6r7r8z
 entering ztask %s leaving barrier)rE�NUMTRIPSrr9rr:r;r<r�r�rrrr>)rr?rGr@r�s&&   rr��BarrierTest.task2�s����x��A���z����&�&�&�"�M�M�O�g�5�E�'�� �%����"4�6�
7��J�J�u���5�!�<�=��H�H�N�N���3�e�;�<�!��
�
�
��L�L�A��L��|�|�q�(�H� ���O�O�#�#�%��'�&�� �
�s#�E	�))E�E
�	E
�E#	�E#	)r�r)r"r#r$r%r�r�r&r'r(s@rr�r�vs����(�&�&r!r�c�0�\sQsQs\O
sQsP!)�	LockTests�rf)r"r#r$r%rr�locktyper&rfr!rrr�s
���#�#�Hr!rc�z`�\sQsQsnQs\O2\OQ22s	Qs
QsUsP!)�TestForkInThread�c�L�[O2vUmUmP!r\)r��pipe�read_fd�write_fdr0s&rr�TestForkInThread.setUp�s��&(�g�g�i�#���d�mr!c��`�PnU1Qko[O29^tt^2[OVOUO
12UO
[OUO]2Q2[OUO
2PPP2UOR2[OR]Q5P!)%fhK;9h)Nc�:�[O[QQ59^tt^2[O29n%cPPP2P!PPP2[O
U2[OUQ2[O]2P!)%fhKV9h[O]2h9h)�ignore)�category�action�OK)�warnings�catch_warnings�DeprecationWarningr��fork�close�write�_exit)rr�pids&&�r�fork_thread�7TestForkInThread.test_forkinthread.<locals>.fork_thread�s�����(�(�2D�08�:�:��7�7�9�$�C�$��:�:�%�:�
�����!�����5�)������:�:�������s#�B�B�-B2�B/	�(B/	�2C
r)�exitcode)
rrDrr.rrrKr��readrr|r�wait_process)rrrs& @r�test_forkinthread�"TestForkInThread.test_forkinthread�s������	�$�
/�
/�
1�
1��#�#�K�,�,��
�
�1N�O����R�W�W�T�\�\�1�5�u�=��H�H�T�]�]�#�2�
	
���S�!����S�1�-�
2�
1�s�A>C�C)	�"C)	c���[OUO2[OUO2P![cK0h9h[cP!h9hr\)r�rr�OSErrorrr0s&r�tearDown�TestForkInThread.tearDown�sS��	��H�H�T�\�\�"�	��H�H�T�]�]�#��	�	��	��
�	��	�s.� A� A�	A�A�A�	A&�!A&�%A&)rr)
r"r#r$r%rr�
requires_forkr�reap_threadsr!r%r&r'r(s@rrr�s?����0�
�����"�"�.�#��.�:	�	r!r�__main__)r�r�r9�testr�test.supportr�_threadrr;rrjr�requires_working_threadingr=rrrr�TestCaserr+r�r�rrr"�mainrfr!r�<module>r0s���	��
��)�������+�+�4�8�
�����#�#�%���B�h�'�'�B�p��p�f	&�&�2#&�/�#&�J$�
�$�$�$�,�x�(�(�,�^�z���M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit