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/_testcapimodule.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/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 8e18b14..101d549 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -10,7 +10,10 @@ The Visual Studio projects builds _testcapi with Py_BUILD_CORE_MODULE macro defined, but only the public C API must be tested here. */ + #undef Py_BUILD_CORE_MODULE +/* Always enable assertions */ +#undef NDEBUG #define PY_SSIZE_T_CLEAN |