OwlCyberSecurity - MANAGER
Edit File: fail_cpp_exception.cpython-312.pyc
� [��g� � �( � d Z ddlZddlZddlmZ ed� d� Zej d Z e ee� Z ede d � � e � y# e$ rD eej k( reZ n/edk( r) ej ej � Zej Z n� Y �[w xY w)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_cppzfail_cpp_exception is runningc �T � d� } t j | � }|j � y )Nc �J � t j t j � y )N)r �"test_exception_switch_and_do_in_g2�test_exception_throw_nonstd� � �R/opt/hc_python/lib64/python3.12/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 s"