| 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 : |
R
>lqjd c �( � Q s ] PHs] QHGs ] QHGs ] PHs] PHs] PH s] QH$G
s
\O P Q5 ]s]2s
\O 2 s Q Q\O 2 s Q Q\O$ 2 s\Q 6X c \O* 2 P! 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 ` � \ sQ s]"s n ] s] sQ sQsU sP! )�TempFileGreedyc � � [ O 2 U m [ O 2 [ [ 2 F DC o [ O Q 2 oUO 2 U 9O ]*
tm
JE P! S 9O ]*
tm [ S O Q5 J} 9 h)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&