Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb3a630

Browse files
committed
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
1 parent 365b693 commit fb3a630

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/errors.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ _PyErr_BadInternalCall(const char *filename, int lineno)
675675
void
676676
PyErr_BadInternalCall(void)
677677
{
678+
assert(0 && "bad argument to internal function");
678679
PyErr_Format(PyExc_SystemError,
679680
"bad argument to internal function");
680681
}

0 commit comments

Comments
 (0)