From: Victor Stinner Date: Thu, 11 Jul 2013 22:37:30 +0000 (+0200) Subject: Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now X-Git-Tag: v3.4.0a1~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb3a630001ee40baa6f13743d32fd3a2756fcc3d;p=thirdparty%2FPython%2Fcpython.git Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now fails with an assertion error --- diff --git a/Python/errors.c b/Python/errors.c index 1f955b54f049..34445b65ea49 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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"); }