diff options
| author | shadchin <[email protected]> | 2024-04-29 17:40:20 +0300 | 
|---|---|---|
| committer | shadchin <[email protected]> | 2024-04-29 17:48:26 +0300 | 
| commit | 7c22315882c782249141997bd489b4889da7012f (patch) | |
| tree | 4f618bf1fa6a655c35b998f96e063945304f1732 /contrib/tools/python3 | |
| parent | 0b92aadeaf8c1fe98b8b8018a6b956f385d40bb9 (diff) | |
Fix hang in test finalization
6e8dab73d326f936d9039c28bdec6673411fbe3c
Diffstat (limited to 'contrib/tools/python3')
| -rw-r--r-- | contrib/tools/python3/Python/pystate.c | 2 | 
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;  | 
