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_bigaddrspace.cpython-310.pyc
o

�9jR�@s�dZddlmZddlmZmZddlZddlZddlZGdd�dej	�Z
Gdd�dej	�Zed	krGe
ej�d
krAe�ejd
�e��dSdS)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@s0eZdZedd��Zedd��Zedd��ZdS)�	BytesTestcCs0zdtd}|�ttj|d�Wd}dSd}w�N�x�s�xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)r�assertRaises�
OverflowError�operator�add��self�x�r�-/usr/lib/python3.10/test/test_bigaddrspace.py�test_concatszBytesTest.test_concatcCs�zBdtd}|�t��}|d}Wd�n1swY|�t��}|d7}Wd�n
1s4wYWd}dSWd}dSd}wr)rr	r
�rr�cmrrr�test_optimized_concat s
�
��zBytesTest.test_optimized_concatcCs0zdtd}|�ttj|d�Wd}dSd}w)Nrr)rr	r
r�mulr
rrr�test_repeat/szBytesTest.test_repeatN)�__name__�
__module__�__qualname__rrrrrrrrrs


rc@s4eZdZdZedd��Zedd��Zedd��ZdS)	�StrTest�cCs:zdttd|j�}|�ttj||�Wd}dSd}w�Nr皙�����?)�intr�unicodesizer	�MemoryErrorrrr
rrrr<szStrTest.test_concatcCs�zGdttd|j�}|�t��}||}Wd�n1s wY|�t��}||7}Wd�n
1s9wYWd}dSWd}dSd}wr)rrr r	r!rrrrrGs
�
��zStrTest.test_optimized_concatcCs:zdttd|j�}|�ttj|d�Wd}dSd}w)Nrr�)rrr r	r!rrr
rrrrVszStrTest.test_repeatN)rrrr rrrrrrrrr8s


r�__main__�)�__doc__�testr�test.supportrr�unittestr�sys�TestCaserrr�len�argv�set_memlimit�mainrrrr�<module>s
%'�

Youez - 2016 - github.com/yon3zu
LinuXploit