summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-04-20 16:49:13 (GMT)
committerGitHub <noreply@github.com>2020-04-20 16:49:13 (GMT)
commit5dd21f5d1c9b5a9316deca4535932675f04efeee (patch)
treef6edb18f03e99034153b84c0d10c89f77cb47c27 /Modules/_testcapimodule.c
parent9b0b5d2baebd0b6a545317200c313a6a7408731e (diff)
downloadcpython-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.c3
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