403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_bigaddrspace.cpython-36.pyc
3

�w2_��@s�dZddlmZddlmZmZddlZddlZddlZGdd�dej	�Z
Gdd�dej	�Zd	d
�Ze
dkr�eej�dkr�ejejd�e�dS)
aS
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 GB 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)�	BytesTestcCs2z&dtd}|jttj|dd�Wdd}XdS)N�x�)r�assertRaises�
OverflowError�operator�add)�self�x�r�;/opt/alt/python36/lib64/python3.6/test/test_bigaddrspace.py�test_concatszBytesTest.test_concatcCs`zTdtd}|jt��}|dd}WdQRX|jt��}|dd7}WdQRXWdd}XdS)Nrr)rrr	)rr
�cmrrr�test_optimized_concat szBytesTest.test_optimized_concatcCs.z"dtd}|jttj|d�Wdd}XdS)Nrr)rrr	r
�mul)rr
rrr�test_repeat/szBytesTest.test_repeatN)�__name__�
__module__�__qualname__rrrrrrrrrsrc@sBeZdZejdkrdndZedd��Zedd��Zedd	��Z	d
S)�StrTesti��cCs8z,dttd|j�}|jttj||�Wdd}XdS)Nr
g�������?)�intr�unicodesizer�MemoryErrorr
r)rr
rrrr<szStrTest.test_concatcCsbzVdttd|j�}|jt��}||}WdQRX|jt��}||7}WdQRXWdd}XdS)Nr
g�������?)rrrrr)rr
rrrrrGszStrTest.test_optimized_concatcCs8z,dttd|j�}|jttj|d�Wdd}XdS)Nr
g�������?r)rrrrrr
r)rr
rrrrVszStrTest.test_repeatN)
rrr�sys�
maxunicoderrrrrrrrrr8srcCstjtt�dS)N)rZrun_unittestrrrrrr�	test_main_sr �__main__�)�__doc__ZtestrZtest.supportrrZunittestr
rZTestCaserrr r�len�argvZset_memlimitrrrr�<module>	s%'

Youez - 2016 - github.com/yon3zu
LinuXploit