| 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 : |
3 �w2_� � @ s� d Z ddlmZ ddlmZmZ ddlZddlZddlZG dd� dej �Z G dd� dej �Zd d � Ze dkr�eej�dkr�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 @ s0 e Zd Zedd� �Zedd� �Zedd� �ZdS )� BytesTestc C s2 z&dt d }| jttj|dd � W d d }X d S )N� x� )r �assertRaises� OverflowError�operator�add)�self�x� r �;/opt/alt/python36/lib64/python3.6/test/test_bigaddrspace.py�test_concat s zBytesTest.test_concatc C s` zTdt d }| jt��}|dd }W d Q R X | jt��}|dd 7 }W d Q R X W d d }X d S )Nr r )r r r )r r �cmr r r �test_optimized_concat s zBytesTest.test_optimized_concatc C s. z"dt d }| jttj|d� W d d }X d S )Nr r )r r r r �mul)r r r r r �test_repeat/ s zBytesTest.test_repeatN)�__name__� __module__�__qualname__r r r r r r r r r s r c @ sB e Zd Zejdk rdndZedd� �Zedd� �Zedd � �Z d S )�StrTesti � � c C s8 z,dt td| j � }| jttj||� W d d }X d S )Nr g�������?)�intr �unicodesizer �MemoryErrorr r )r r r r r r <