From fb3a630001ee40baa6f13743d32fd3a2756fcc3d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 12 Jul 2013 00:37:30 +0200 Subject: [PATCH] Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now fails with an assertion error --- Python/errors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/errors.c b/Python/errors.c index 1f955b54f04..34445b65ea4 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"); }