summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 1180b4b..ae960de 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -5,6 +5,11 @@
* standard Python regression test, via Lib/test/test_capi.py.
*/
+/* The Visual Studio projects builds _testcapi with Py_BUILD_CORE_MODULE
+ define, but we only want to test the public C API, not the internal
+ C API. */
+#undef Py_BUILD_CORE_MODULE
+
#define PY_SSIZE_T_CLEAN
#include "Python.h"