bpo-39849: Enable assertions in _testcapimodule.c and _testinternalcapi.c (GH-19623)
This commit is contained in:
parent
9b0b5d2bae
commit
5dd21f5d1c
|
@ -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
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
# error "Py_BUILD_CORE_BUILTIN or Py_BUILD_CORE_MODULE must be defined"
|
||||
#endif
|
||||
|
||||
/* Always enable assertions */
|
||||
#undef NDEBUG
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "Python.h"
|
||||
|
|
Loading…
Reference in New Issue