Skip to content

Commit 3cab144

Browse files
Swap out __main__ instead of injecting into it.
1 parent 9c06ffc commit 3cab144

File tree

2 files changed

+174
-227
lines changed

2 files changed

+174
-227
lines changed

Modules/_interpretersmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ _make_call(struct interp_call *call,
601601
unwrap_not_shareable(tstate, failure);
602602
return -1;
603603
}
604+
assert(!_PyErr_Occurred(tstate));
604605

605606
// Make the call.
606607
PyObject *resobj = PyObject_Call(func, args, kwargs);

0 commit comments

Comments
 (0)