U Wg@sdZddlZddlZddlmZedddZejdZze eeZ WnBe k reej krheZ nedkreej ZejZ nYnXed e d d e dS) 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 runningcCsdd}t|}|dS)NcSsttjdS)N)rZ"test_exception_switch_and_do_in_g2Ztest_exception_throw_nonstdrrQ/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/fail_cpp_exception.py_ sz5run_unhandled_exception_in_greenlet_aborts.._)greenletswitch)rg1rrr*run_unhandled_exception_in_greenlet_aborts s r Zrun_as_greenlet_targetZraisingT)flush)__doc__sysrZgreenlet.testsrprintr argv func_namegetattrfuncAttributeError__name__Ztest_exception_throw_stdgrrrrrs"