aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2024-04-29 17:40:20 +0300
committershadchin <shadchin@yandex-team.com>2024-04-29 17:48:26 +0300
commit7c22315882c782249141997bd489b4889da7012f (patch)
tree4f618bf1fa6a655c35b998f96e063945304f1732 /contrib/tools
parent0b92aadeaf8c1fe98b8b8018a6b956f385d40bb9 (diff)
downloadydb-7c22315882c782249141997bd489b4889da7012f.tar.gz
Fix hang in test finalization
6e8dab73d326f936d9039c28bdec6673411fbe3c
Diffstat (limited to 'contrib/tools')
-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 0ebbdfbfb4..7acf4f9854 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;