diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-09 14:55:37 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-09 14:55:37 (GMT) |
commit | 283f3f8ab326bfd43f9c7c7859ae9815a7545b64 (patch) | |
tree | 74a3ecf15a7c4ca00de09d2630caedd32c4431d6 | |
parent | 8011382285fe23ff0fc549f4c33cbc346c3a0dd0 (diff) | |
download | cpython-283f3f8ab326bfd43f9c7c7859ae9815a7545b64.zip cpython-283f3f8ab326bfd43f9c7c7859ae9815a7545b64.tar.gz cpython-283f3f8ab326bfd43f9c7c7859ae9815a7545b64.tar.bz2 |
Issue #23571: Oops, fix #ifdef assert()
assert() are noop when NDEBUG is defined. We want the opposite.
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index ab13476..50d893d 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2078,7 +2078,7 @@ _Py_CheckFunctionResult(PyObject *result, const char *func_name) { 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. */ |