Skip to content

Commit 5b27d20

Browse files
committed
fixup
1 parent 5a6f11f commit 5b27d20

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Modules/_testinternalcapi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,10 +2087,13 @@ reset_rare_event_counters(PyObject *self, PyObject *Py_UNUSED(type))
20872087

20882088
interp->rare_events.set_class = 0;
20892089
interp->rare_events.set_bases = 0;
2090+
interp->rare_events.set_eval_frame_func = 0;
20902091
interp->rare_events.builtin_dict = 0;
20912092
interp->rare_events.func_modification = 0;
20922093

20932094
return Py_None;
2095+
}
2096+
20942097

20952098
#ifdef Py_GIL_DISABLED
20962099
static PyObject *

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4124,7 +4124,7 @@ _PySys_Create(PyThreadState *tstate, PyObject **sysmod_p)
41244124
}
41254125
err = PyDict_SetItemString(sysdict, "_jit", jit);
41264126
Py_DECREF(jit);
4127-
if (err < 0) {
4127+
if (err) {
41284128
goto error;
41294129
}
41304130

0 commit comments

Comments
 (0)