+
    BiR                     :   R t ^ RIHt ^ RIHtHt ^ RIt^ RIt^ RIt ! R R]P                  4      t
 ! R R]P                  4      t]R8X  dN   ]! ]P                  4      ^8  d$   ]P                  ! ]P                  ^,          4       ]P                   ! 4        R# R# )	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                   P   a  ] tR t^t o ]R 4       t]R 4       t]R 4       tRtV t	R# )	BytesTestc                     R \         ^,
          ,          pV P                  \        \        P                  VR4       RpR#   Rpi ; i   xNs   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)r   assertRaisesOverflowErroroperatoraddselfxs   & -/usr/lib/python3.14/test/test_bigaddrspace.pytest_concatBytesTest.test_concat   s9    
	,-AmX\\1jIAA   :A   Ac                J    R \         ^,
          ,          pV P                  \        4      ;_uu_ 4       pVR,           pRRR4       V P                  \        4      ;_uu_ 4       pVR,          pRRR4       RpR#   + '       g   i     LC; i  + '       g   i     L'; i  Rpi ; ir   )r   r
   r   r   r   cms   &  r   test_optimized_concatBytesTest.test_optimized_concat    s|    	,-A""=11R
N 2 ""=11Rj  2 A 21 21 As9   1B 
A8%B "
B,B 8B	B B	B B"c                     R \         ^,
          ,          pV P                  \        \        P                  V^4       RpR#   Rpi ; i)r	   N)r   r
   r   r   mulr   s   & r   test_repeatBytesTest.test_repeat/   s9    	,-AmX\\1cBAAr    N)
__name__
__module____qualname____firstlineno__r   r   r   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s?              r   c                   T   a  ] tR t^8t o ^t]R 4       t]R 4       t]R 4       tRt	V t
R# )StrTestc                     R \        \        RV P                  ,          ,          4      ,          pV P                  \        \
        P                  W4       RpR#   Rpi ; ir   g?N)intr   unicodesizer
   MemoryErrorr   r   r   s   & r   r   StrTest.test_concat<   sI    	c.S43C3C-CDEEA k8<<>AAs   AA Ac                z    R \        \        RV P                  ,          ,          4      ,          pV P                  \        4      ;_uu_ 4       pW,           pRRR4       V P                  \        4      ;_uu_ 4       pW,          pRRR4       RpR#   + '       g   i     LB; i  + '       g   i     L'; i  Rpi ; ir+   )r,   r   r-   r
   r.   r   s   &  r   r   StrTest.test_optimized_concatG   s    	c.S43C3C-CDEEA"";//2E 0 "";//2 0 A 0/ 0/ As<   AB6 	B%B6 ;	B#B6 B 	B6 #B3	.B6 6B:c                     R \        \        RV P                  ,          ,          4      ,          pV P                  \        \
        P                  V^4       RpR#   Rpi ; ir+   )r,   r   r-   r
   r.   r   r   r   s   & r   r   StrTest.test_repeatV   sI    	c.S43C3C-CDEEAk8<<A>AAs   AA Ar   N)r   r    r!   r"   r-   r   r   r   r   r#   r$   r%   s   @r   r)   r)   8   sD     K     r'   r)   __main__)__doc__testr   test.supportr   r   unittestr   sysTestCaser   r)   r   lenargvset_memlimitmainr   r'   r   <module>r?      s     9   
"!! "J$h $N z
388}qSXXa[)MMO r'   