Commit fb3a6300 authored by Victor Stinner's avatar Victor Stinner

Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now

fails with an assertion error
parent 365b693a
......@@ -675,6 +675,7 @@ _PyErr_BadInternalCall(const char *filename, int lineno)
void
PyErr_BadInternalCall(void)
{
assert(0 && "bad argument to internal function");
PyErr_Format(PyExc_SystemError,
"bad argument to internal function");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment