changeset: 94921:52c7017fdcdd user: Victor Stinner date: Mon Mar 09 15:55:37 2015 +0100 files: Objects/abstract.c description: Issue #23571: Oops, fix #ifdef assert() assert() are noop when NDEBUG is defined. We want the opposite. diff -r 0469af231d22 -r 52c7017fdcdd Objects/abstract.c --- a/Objects/abstract.c Mon Mar 09 10:05:50 2015 -0700 +++ b/Objects/abstract.c Mon Mar 09 15:55:37 2015 +0100 @@ -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. */