We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff325b2 commit 4239645Copy full SHA for 4239645
graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_thread.py
@@ -99,6 +99,9 @@ def test_register_new_thread(self):
99
if (!PyObject_CallNoArgs(callable)) {
100
PyErr_WriteUnraisable(callable);
101
}
102
+ if (PyThreadState_Get() == NULL || PyThreadState_Get() == NULL) {
103
+ PyErr_WriteUnraisable(callable);
104
+ }
105
PyGILState_Release(gstate);
106
return NULL;
107
0 commit comments