
    Yh                     (   S r SSKrSSKrSSKJr  \" S5        S r\R                  S   r \	" \\5      r
\" S\
S	S
9  \
" 5         g! \ aF    \\R                  :X  a  \r
 N*\S:X  a*  \R                  " \R                  5      r\R                  r
 NZe f = f)z
Helper for testing a C++ exception throw aborts the process.

Takes one argument, the name of the function in :mod:`_test_extension_cpp` to call.
    N)_test_extension_cppzfail_cpp_exception is runningc                  V    S n [         R                   " U 5      nUR                  5         g )Nc                  L    [         R                  " [         R                  5        g )N)r   "test_exception_switch_and_do_in_g2test_exception_throw_nonstd     S/var/www/html/env/lib/python3.13/site-packages/greenlet/tests/fail_cpp_exception.py_5run_unhandled_exception_in_greenlet_aborts.<locals>._   s    >>;;	
r	   )greenletswitch)r   g1s     r
   *run_unhandled_exception_in_greenlet_abortsr      s"    
 
		1	BIIKr	      run_as_greenlet_targetraisingT)flush)__doc__sysr   greenlet.testsr   printr   argv	func_namegetattrfuncAttributeError__name__test_exception_throw_stdgr   r   r	   r
   <module>r!      s   
   . % & HHQK		&	2D iT "   >GGG9	.	.1JJKxxs   	A B.BB