From 5a97a93be086c19343df4352672bfda32f6cbd0c Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 10 Aug 2022 11:53:10 +0200 Subject: gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793) --- Modules/_testcapi/parts.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_testcapi/parts.h b/Modules/_testcapi/parts.h index c0e0f3a..a76ddd9 100644 --- a/Modules/_testcapi/parts.h +++ b/Modules/_testcapi/parts.h @@ -1,5 +1,8 @@ #include "Python.h" +/* Always enable assertions */ +#undef NDEBUG + int _PyTestCapi_Init_Vectorcall(PyObject *module); int _PyTestCapi_Init_VectorcallLimited(PyObject *module); int _PyTestCapi_Init_Heaptype(PyObject *module); -- cgit v0.12