diff Python/errors.c @ 84574:2f7c4df5cc46

Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now fails with an assertion error
author Victor Stinner <victor.stinner@gmail.com>
date Fri, 12 Jul 2013 00:37:30 +0200
parents e3ec8b176a80
children a685f4c6e0b6
line wrap: on
line diff
--- 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");
 }