From 9b1375db1de12dc3fd8c73b81361d3f25f8734ef Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 8 Aug 2022 15:58:22 +0200 Subject: [PATCH] gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() --- Modules/_testcapi/parts.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_testcapi/parts.h b/Modules/_testcapi/parts.h index 4b672c9d05bddd..d9ef0938013af7 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);