(original) (raw)
changeset: 84574:2f7c4df5cc46 user: Victor Stinner victor.stinner@gmail.com date: Fri Jul 12 00:37:30 2013 +0200 files: Python/errors.c description: Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now fails with an assertion error diff -r d9446c2a2fd4 -r 2f7c4df5cc46 Python/errors.c --- a/Python/errors.c Fri Jul 12 00:11:58 2013 +0200 +++ b/Python/errors.c Fri Jul 12 00:37:30 2013 +0200 @@ -675,6 +675,7 @@ void PyErr_BadInternalCall(void) { + assert(0 && "bad argument to internal function"); PyErr_Format(PyExc_SystemError, "bad argument to internal function"); } /victor.stinner@gmail.com