From: Petr Viktorin Date: Wed, 10 Aug 2022 09:53:10 +0000 (+0200) Subject: gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793) X-Git-Tag: v3.12.0a1~687 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a97a93be086c19343df4352672bfda32f6cbd0c;p=thirdparty%2FPython%2Fcpython.git gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793) --- diff --git a/Modules/_testcapi/parts.h b/Modules/_testcapi/parts.h index c0e0f3aa1cc2..a76ddd93c0ef 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);