U W½g ã@spdZddlZedddgZdd„Zej e¡Ze ¡edgksFt ‚e ¡edd gks^t ‚de_ e ¡dS) z@ A test helper for seeing what happens when slp_switch() fails. éNzfail_slp_switch is runningT)ÚflushcCs>t d¡t ¡j ¡t d¡t ¡j ¡t d¡dS)Nééé)ÚrunsÚappendÚgreenletZ getcurrentÚparentÚswitch©r r úN/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/fail_slp_switch.pyÚfuncs   r rr) Ú__doc__rÚprintrr Z _greenletZUnswitchableGreenletÚgr ÚAssertionErrorZforce_slp_switch_errorr r r r Ús