mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue