gh-140373: Correctly emit PY_UNWIND event when generator is closed (GH-140767)
This commit is contained in:
@@ -2466,6 +2466,10 @@ monitor_unwind(PyThreadState *tstate,
|
||||
do_monitor_exc(tstate, frame, instr, PY_MONITORING_EVENT_PY_UNWIND);
|
||||
}
|
||||
|
||||
bool
|
||||
_PyEval_NoToolsForUnwind(PyThreadState *tstate) {
|
||||
return no_tools_for_global_event(tstate, PY_MONITORING_EVENT_PY_UNWIND);
|
||||
}
|
||||
|
||||
static int
|
||||
monitor_handled(PyThreadState *tstate,
|
||||
|
||||
Reference in New Issue
Block a user