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

fails with an assertion error
This commit is contained in:
Victor Stinner 2013-07-12 00:37:30 +02:00
parent 365b693adc
commit fb3a630001
1 changed files with 1 additions and 0 deletions

View File

@ -675,6 +675,7 @@ _PyErr_BadInternalCall(const char *filename, int lineno)
void void
PyErr_BadInternalCall(void) PyErr_BadInternalCall(void)
{ {
assert(0 && "bad argument to internal function");
PyErr_Format(PyExc_SystemError, PyErr_Format(PyExc_SystemError,
"bad argument to internal function"); "bad argument to internal function");
} }