diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 22:37:30 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 22:37:30 (GMT) |
commit | fb3a630001ee40baa6f13743d32fd3a2756fcc3d (patch) | |
tree | 5695aab83845c1c8a9664f85709332cea6e2a3e1 /Python | |
parent | 365b693adc1d3a48cfd8e4e93a02ee169096e902 (diff) | |
download | cpython-fb3a630001ee40baa6f13743d32fd3a2756fcc3d.zip cpython-fb3a630001ee40baa6f13743d32fd3a2756fcc3d.tar.gz cpython-fb3a630001ee40baa6f13743d32fd3a2756fcc3d.tar.bz2 |
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
Diffstat (limited to 'Python')
-rw-r--r-- | Python/errors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c index 1f955b5..34445b6 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"); } |