+
    Bi
                         ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt ]P                  ! R4       ^ RIH	t	 ^RI
Ht  ! R R	]4      t]R
8X  d   ]P                  ! 4        R# R# )    N)support)import_helper)threading_helper_interpreters)interpreters)TestBasec                      a  ] tR t^t o ]P
                  ! R4      R 4       t]P                  ! ^R	RR7      R 4       t]	P                  ! 4       ]P                  ! ^R
RR7      R 4       4       tRtV tR# )StressTestscpuc                    . p\        ^d4       F)  p\        P                  ! 4       pVP                  V4       K+  	  ?\        P
                  ! 4        R# )d   N)ranger   createappendr   
gc_collect)selfalive_interps   &   9/usr/lib/python3.14/test/test_interpreters/test_stress.pytest_create_many_sequential'StressTests.test_create_many_sequential   s@    sA!((*FLL       F)sizememusedry_runc                n  aa . o\         P                  ! 4       oVV3R  lp\        V4       Uu. uF  p\         P                  ! VR7      NK  	  pp\        P
                  ! V4      ;_uu_ 4        SP                  4        RRR4       >\        P                  ! 4        R# u upi   + '       g   i     L-; i)c                     < SP                  \        P                  4      '       g   \        h\        P
                  ! 4       p SP                  V 4       R # )N)waitr   SHORT_TIMEOUTTimeoutErrorr   r   r   )r   r   starts    r   task3StressTests.test_create_many_threaded.<locals>.task   s8    ::g3344""!((*FLL r   targetN)		threadingEventr   Threadr   start_threadssetr   r   )r   r   r#   r   threadsr   r"   s   &&   @@r   test_create_many_threaded%StressTests.test_create_many_threaded   sz    !	! ;@+F+Q9##40+F++G44IIK 5	 G44s    B.B$$B4	c                  aa \         P                  ! 4       o\        P                  ! 4       pR VP                   R2oVV3R lp\        V4       Uu. uF  p\         P                  ! VR7      NK  	  pp\        P                  ! V4      ;_uu_ 4        SP                  4        RRR4       \        P                  ! 4        R# u upi   + '       g   i     L,; i)zOif True:
            import _interpreters
            _interpreters.run_string(z, '1')
            c                  l  < \         P                  ! 4       p \         P                   R 2pSP                  \        P
                  4      '       g   \        hRpV'       g    V P                  S4       RpK  R#   \         P                   d(   pTP                  P                  R8w  d   h  Rp?KW  Rp?ii ; i)z: interpreter already runningFTzinterpreter already runningN)r   r   InterpreterErrorr   r   r    r!   execExecutionFailedexcinfomsg)r   alreadyrunningsuccessexcscriptr"   s       r   runIStressTests.test_many_threads_running_interp_in_other_interp.<locals>.run6   s    !((*F!-!>!> ? @< <N ::g3344""G#KK' #G  $33 K{{*GG HKs    A7 7B3B..B3r%   N)r'   r(   r   r   idr   r)   r   r*   r+   r   r   )r   r   r   r:   r   r,   r9   r"   s   &&    @@r   0test_many_threads_running_interp_in_other_interp<StressTests.test_many_threads_running_interp_in_other_interp+   s     !$$&&&,ii[ 1
	#$ :?tEA9##3/E++G44IIK 5 F44s    CCC	 Ni   i   )__name__
__module____qualname____firstlineno__r   requires_resourcer   
bigmemtestr-   r   requires_working_threadingr=   __static_attributes____classdictcell__)__classdict__s   @r   r
   r
      s}     
 u% & S5A B 002S5A B 3r   r
   __main__)r'   unittesttestr   test.supportr   r   import_module
concurrentr   utilsr   r
   r@   mainr?   r   r   <module>rR      sM       & )   O , # >( >B zMMO r   