403Webshell
Server IP : 43.129.54.214  /  Your IP : 216.73.217.113
Web Server : nginx/1.24.0
System : Linux VM-4-108-ubuntu 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/local/qcloud/python/lib/python3.7/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/qcloud/python/lib/python3.7/test/__pycache__/test_threadedtempfile.cpython-37.pyc
B

��fv�@s�dZdZdZddlZddlmZmZddlZddlZddl	Z	ddl
mZe	��Z
Gdd�de	j�ZGd	d
�d
ej�Zedkr�e��dS)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.
��2�N)�
start_threads�
import_module)�	print_excc@seZdZdZdZdd�ZdS)�TempFileGreedyrcCstt��|_t��x\tt�D]P}yt�d�}|�	�Wn&|j
d7_
t|jd�YqX|jd7_qWdS)Nzw+b�)�file)
�io�StringIO�errors�
startEvent�wait�range�FILES_PER_THREAD�tempfileZ
TemporaryFile�close�error_countr�ok_count)�self�i�f�r�D/usr/local/qcloud/python/lib/python3.7/test/test_threadedtempfile.py�run!s

zTempFileGreedy.runN)�__name__�
__module__�__qualname__rrrrrrrrsrc@seZdZdd�ZdS)�ThreadedTempFileTestc	Cs�dd�tt�D�}t|tj��WdQRXtdd�|D��}dd�|D�}dt|�|d�|�f}|�|g|�|�|tt	�dS)NcSsg|]
}t��qSr)r)�.0rrrr�
<listcomp>1sz2ThreadedTempFileTest.test_main.<locals>.<listcomp>css|]}|jVqdS)N)r)r�trrr�	<genexpr>4sz1ThreadedTempFileTest.test_main.<locals>.<genexpr>cSs*g|]"}|jrt|j�t|j����qSr)r�str�namer�getvalue)rr!rrrr 5szErrors: errors %d ok %d
%s�
)
r�NUM_THREADSrr
�set�sum�len�joinZassertEqualr)rZthreads�okr�msgrrr�	test_main0s

zThreadedTempFileTest.test_mainN)rrrr.rrrrr/sr�__main__)�__doc__r'rrZtest.supportrrZunittestr
Z	threading�	tracebackrZEventr
ZThreadrZTestCaserr�mainrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit