[Python-checkins] cpython: Issue #23571: Oops, fix #ifdef assert()
victor.stinner
python-checkins at python.org
Tue Mar 10 13:25:48 CET 2015
https://hg.python.org/cpython/rev/52c7017fdcdd
changeset: 94921:52c7017fdcdd
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Mar 09 15:55:37 2015 +0100
summary:
Issue #23571: Oops, fix #ifdef assert()
assert() are noop when NDEBUG is defined. We want the opposite.
files:
Objects/abstract.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/abstract.c b/Objects/abstract.c
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2078,7 +2078,7 @@
{
int err_occurred = (PyErr_Occurred() != NULL);
-#ifdef NDEBUG
+#ifndef NDEBUG
/* In debug mode: abort() with an assertion error. Use two different
assertions, so if an assertion fails, it's possible to know
if result was set or not and if an exception was raised or not. */
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list