관리-도구
편집 파일: fail_cpp_exception.cpython-38.pyc
U �g� � @ s� d Z ddlZddlZddlmZ ed� dd� Zejd Zze ee�Z W nB ek r� eejkrheZ nedkr�e�ej �ZejZ n� Y nX ed 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 runningc C s dd� } t � | �}|�� d S )Nc S s t �t j� d S )N)r Z"test_exception_switch_and_do_in_g2Ztest_exception_throw_nonstd� r r �Q/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/fail_cpp_exception.py�_ s �z5run_unhandled_exception_in_greenlet_aborts.<locals>._)�greenlet�switch)r �g1r r r �*run_unhandled_exception_in_greenlet_aborts s r � Zrun_as_greenlet_targetZraisingT)�flush)�__doc__�sysr Zgreenlet.testsr �printr �argv� func_name�getattr�func�AttributeError�__name__Ztest_exception_throw_std�gr r r r r �<module> s"