summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Python')
-rw-r--r--contrib/tools/python3/Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/Python/pystate.c b/contrib/tools/python3/Python/pystate.c
index 0ebbdfbfb41..7acf4f9854c 100644
--- a/contrib/tools/python3/Python/pystate.c
+++ b/contrib/tools/python3/Python/pystate.c
@@ -356,7 +356,7 @@ holds_gil(PyThreadState *tstate)
assert(tstate != NULL);
#ifndef NDEBUG
if (!tstate_is_alive(tstate)) {
- return 0;
+ return PyGILState_Check();
}
#endif
_PyRuntimeState *runtime = tstate->interp->runtime;