
    [h                     "   d Z ddlZddlZddlmZ  ed           d Zej        d         Z	  e	ee          Z
n=# e$ r5 eej        k    reZ
n$edk    r ej        ej                  Zej        Z
n Y nw xY w ede
d	
            e
             dS )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                  \    d } t          j         |           }|                                 d S )Nc                  B    t          j        t           j                   d S )N)r   "test_exception_switch_and_do_in_g2test_exception_throw_nonstd     p/var/www/api.easyaligner.net/htdocs/venv_linux/lib/python3.11/site-packages/greenlet/tests/fail_cpp_exception.py_z5run_unhandled_exception_in_greenlet_aborts.<locals>._   s'    >;	
 	
 	
 	
 	
r	   )greenletswitch)r   g1s     r
   *run_unhandled_exception_in_greenlet_abortsr      s4    
 
 
 
	1		BIIKKKKKr	      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   
 


  . . . . . . % & & &   HQK		7&	22DD   >GGG9	.	.	.H1JKKx iT " " " " s   : 7A43A4