Your IP : 216.73.216.213
�
��f� c @ s� d Z d d l m Z d d l m Z m Z d d l Z d d l Z d d l Z Gd d � d e j � Z
Gd d � d e j � Z d d
� Z e
d k r� e e j � d k r� e j e j d � n e � n d S(
uS
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.
i ( u support( u bigaddrspacetestu MAX_Py_ssize_tNc B sJ | Ee Z d Z e d d � � Z e d d � � Z e d d � � Z d S( u BytesTestc C s= z/ d t d } | j t t j | d d � Wd d } Xd S( Ns xi� ( u MAX_Py_ssize_tu assertRaisesu
OverflowErroru operatoru addu None( u selfu x( ( u; /opt/alt/python33/lib64/python3.3/test/test_bigaddrspace.pyu test_concat s !u BytesTest.test_concatc C sl z^ d t d } | j t � � } | d d } Wd QX| j t � � } | d d 7} Wd QXWd d } Xd S( Ns xi� ( u MAX_Py_ssize_tu assertRaisesu
OverflowErroru None( u selfu xu cm( ( u; /opt/alt/python33/lib64/python3.3/test/test_bigaddrspace.pyu test_optimized_concat s u BytesTest.test_optimized_concatc C s9 z+ d t d } | j t t j | d � Wd d } Xd S( Ns xi� ( u MAX_Py_ssize_tu assertRaisesu
OverflowErroru operatoru mulu None( u selfu x( ( u; /opt/alt/python33/lib64/python3.3/test/test_bigaddrspace.pyu test_repeat/ s u BytesTest.test_repeatN( u __name__u
__module__u __qualname__u bigaddrspacetestu test_concatu test_optimized_concatu test_repeat( u
__locals__( ( u; /opt/alt/python33/lib64/python3.3/test/test_bigaddrspace.pyu BytesTest s u BytesTestc B se | Ee Z d Z e j d k r% d n d Z e d d � � Z e d d � � Z e d d � � Z d
S( u StrTesti i i c C sF z8 d t t d | j � } | j t t j | | � Wd d } Xd S( Nu xg�������?( u intu MAX_Py_ssize_tu unicodesizeu assertRaisesu MemoryErroru operatoru addu None( u selfu x( ( u; /opt/alt/python33/lib64/python3.3/test/test_bigaddrspace.pyu test_concat<