Skip to content

Commit e203fd5

Browse files
committed
Release the GIL while joining the thread in test_thread_state_release_with_destructor.
1 parent 95cdd3a commit e203fd5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/_testinternalcapi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,9 @@ test_thread_state_release_with_destructor(PyObject *self, PyObject *unused)
31053105
return PyErr_NoMemory();
31063106
}
31073107

3108+
Py_BEGIN_ALLOW_THREADS
31083109
PyThread_join_thread(handle);
3110+
Py_END_ALLOW_THREADS
31093111
Py_RETURN_NONE;
31103112
}
31113113

0 commit comments

Comments
 (0)