summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-12 00:37:30 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-07-12 00:37:30 +0200
commit0f0e064b4acc5c926afa935dcdb38cfe79337e31 (patch)
tree354aaff803e2f8913d94585f9ae2835b53324e4f /Python/errors.c
parent9a21e3b0669ba722bd665c7c42c9d4350c31dadf (diff)
downloadcpython-0f0e064b4acc5c926afa935dcdb38cfe79337e31.tar.gz
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 1f955b54f0..34445b65ea 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");
}