]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793)
authorPetr Viktorin <encukou@gmail.com>
Wed, 10 Aug 2022 09:53:10 +0000 (11:53 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Aug 2022 09:53:10 +0000 (11:53 +0200)
Modules/_testcapi/parts.h

index c0e0f3aa1cc21be71d46469acb39e1605d4ef125..a76ddd93c0efb90620ee57c8222734729d84d2ed 100644 (file)
@@ -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);