mirror of https://github.com/python/cpython
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
This commit is contained in:
parent
365b693adc
commit
fb3a630001
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue