Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_threadedtempfile.cpython-310.pyc
o

�9j~�@s�dZddlZddlmZddlZddlZddlZddlmZdZ	dZ
e��ZGdd�dej
�ZGd	d
�d
ej�ZedkrBe��dSdS)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.
�N)�threading_helper)�	print_exc��2c@seZdZdZdZdd�ZdS)�TempFileGreedyrcCsnt��|_t��tt�D]'}zt�d�}|�	�Wn|j
d7_
t|jd�Yq
|jd7_q
dS)Nzw+b�)�file)
�io�StringIO�errors�
startEvent�wait�range�FILES_PER_THREAD�tempfile�
TemporaryFile�close�error_countr�ok_count)�self�i�f�r�1/usr/lib/python3.10/test/test_threadedtempfile.py�run$s

�zTempFileGreedy.runN)�__name__�
__module__�__qualname__rrrrrrrr src@seZdZdd�ZdS)�ThreadedTempFileTestcCs�dd�tt�D�}t�|tj��Wd�n1swYtdd�|D��}dd�|D�}dt|�|d�|�f}|�	|g|�|�	|tt
�dS)NcSsg|]}t��qSr)r)�.0rrrr�
<listcomp>4sz2ThreadedTempFileTest.test_main.<locals>.<listcomp>css�|]}|jVqdS)N)r�r�trrr�	<genexpr>7s�z1ThreadedTempFileTest.test_main.<locals>.<genexpr>cSs*g|]}|jrt|j�t|j����qSr)r�str�namer�getvaluer!rrrr 8s�zErrors: errors %d ok %d
%s�
)r�NUM_THREADSr�
start_threadsr�set�sum�len�join�assertEqualr)r�threads�okr�msgrrr�	test_main3s��
�zThreadedTempFileTest.test_mainN)rrrr2rrrrr2sr�__main__)�__doc__r�test.supportr�unittestr	�	threading�	tracebackrr(r�Eventr�Threadr�TestCaserr�mainrrrr�<module>s�

Youez - 2016 - github.com/yon3zu
LinuXploit