diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-04-20 16:49:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 16:49:13 (GMT) |
commit | 5dd21f5d1c9b5a9316deca4535932675f04efeee (patch) | |
tree | f6edb18f03e99034153b84c0d10c89f77cb47c27 /Modules/_testinternalcapi.c | |
parent | 9b0b5d2baebd0b6a545317200c313a6a7408731e (diff) | |
download | cpython-5dd21f5d1c9b5a9316deca4535932675f04efeee.zip cpython-5dd21f5d1c9b5a9316deca4535932675f04efeee.tar.gz cpython-5dd21f5d1c9b5a9316deca4535932675f04efeee.tar.bz2 |
bpo-39849: Enable assertions in _testcapimodule.c and _testinternalcapi.c (GH-19623)
Diffstat (limited to 'Modules/_testinternalcapi.c')
-rw-r--r-- | Modules/_testinternalcapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index 9330e26..1b7563c 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -6,6 +6,9 @@ # error "Py_BUILD_CORE_BUILTIN or Py_BUILD_CORE_MODULE must be defined" #endif +/* Always enable assertions */ +#undef NDEBUG + #define PY_SSIZE_T_CLEAN #include "Python.h" |