Skip to content

Commit 4aa86a0

Browse files
committed
Remove bad assertions.
Legacy subinterpreters are allowed to call fork()
1 parent 2baafff commit 4aa86a0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎Python/ceval_gil.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,6 @@ PyEval_ReleaseThread(PyThreadState *tstate)
622622
PyStatus
623623
_PyEval_ReInitThreads(PyThreadState *tstate)
624624
{
625-
assert(tstate->interp == _PyInterpreterState_Main());
626-
627625
for (PyInterpreterState *interp = PyInterpreterState_Head(); interp != NULL;
628626
interp = interp->next) {
629627
struct _gil_runtime_state *gil = interp->ceval.gil;

0 commit comments

Comments
 (0)