403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
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:/Python312/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/__pycache__/test_bigaddrspace.cpython-312.pyc
�

���g���&�dZddlmZddlmZmZddlZddlZddlZGd�dej�Z
Gd�dej�Zed	k(rFe
ej�d
kDrejejd
�ej �yy)aT
These tests are meant to exercise that requests to create objects bigger
than what the address space allows are properly met with an OverflowError
(rather than crash weirdly).

Primarily, this means 32-bit builds with at least 2 GiB of available memory.
You need to pass the -M option to regrtest (e.g. "-M 2.1G") for tests to
be enabled.
�)�support)�bigaddrspacetest�MAX_Py_ssize_tNc�<�eZdZed��Zed��Zed��Zy)�	BytesTestc�|�	dtdz
z}|jttj|d�d}y#d}wxYw�N�x�s�xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)r�assertRaises�
OverflowError�operator�add��self�xs  �+C:\Python312\\Lib\test\test_bigaddrspace.py�test_concatzBytesTest.test_concats9��
	����,�-�A����m�X�\�\�1�j�I��A���A���27�;c���	dtdz
z}|jt�5}|dz}ddd�|jt�5}|dz
}ddd�d}y#1swY�/xYw#1swYd}yxYw#d}wxYwr	)rrr
�rr�cms   r�test_optimized_concatzBytesTest.test_optimized_concat sw��	����,�-�A��"�"�=�1�R��
�N��2��"�"�=�1�R��j� ��2��A�2�1��2��A���A�s?�!A1�A�A1�A#�A1�A �A1�#A.�(A1�.A1�1A5c�|�	dtdz
z}|jttj|d�d}y#d}wxYw)Nr
r)rrr
r�mulrs  r�test_repeatzBytesTest.test_repeat/s9��	����,�-�A����m�X�\�\�1�c�B��A���A�rN)�__name__�
__module__�__qualname__rrrr��rrrs<�������������r!rc�@�eZdZdZed��Zed��Zed��Zy)�StrTest�c��	dttd|jzz�z}|jtt
j||�d}y#d}wxYw�Nr皙�����?)�intr�unicodesizer�MemoryErrorrrrs  rrzStrTest.test_concat<sK��	��c�.�S�4�3C�3C�-C�D�E�E�A�
���k�8�<�<��A�>��A���A���AA
�
Ac��	dttd|jzz�z}|jt�5}||z}ddd�|jt�5}||z
}ddd�d}y#1swY�/xYw#1swYd}yxYw#d}wxYwr&)r(rr)rr*rs   rrzStrTest.test_optimized_concatGs���	��c�.�S�4�3C�3C�-C�D�E�E�A��"�"�;�/�2���E��0��"�"�;�/�2��a���0��A�0�/��0��A���A�s?�7B�A-�B�A9�"B�-A6�2B�9B�>B�B�Bc��	dttd|jzz�z}|jtt
j|d�d}y#d}wxYw)Nrr'�)r(rr)rr*rrrs  rrzStrTest.test_repeatVsI��	��c�.�S�4�3C�3C�-C�D�E�E�A����k�8�<�<��A�>��A���A�r+N)rrrr)rrrrr r!rr#r#8sA���K������������r!r#�__main__�)�__doc__�testr�test.supportrr�unittestr�sys�TestCaserr#r�len�argv�set_memlimit�mainr r!r�<module>r;s�����9���
�"��!�!�"�J$�h���$�N�z��
�3�8�8�}�q������S�X�X�a�[�)��H�M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit