https://github.com/python/cpython/commit/b488f338cf058f46cbf0255023ca1c1669b0eb44
commit: b488f338cf058f46cbf0255023ca1c1669b0eb44
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-02-12T19:40:42+01:00
summary:
gh-135906: Test more internal headers in test_cext/test_cppext (#144751)
files:
M Lib/test/test_cext/extension.c
M Lib/test/test_cppext/extension.cpp
diff --git a/Lib/test/test_cext/extension.c b/Lib/test/test_cext/extension.c
index a6b30fd627fe99..7555b78f18c2e6 100644
--- a/Lib/test/test_cext/extension.c
+++ b/Lib/test/test_cext/extension.c
@@ -15,9 +15,11 @@
#ifdef TEST_INTERNAL_C_API
// gh-135906: Check for compiler warnings in the internal C API.
- // - Cython uses pycore_frame.h.
+ // - Cython uses pycore_critical_section.h, pycore_frame.h and
+ // pycore_template.h.
// - greenlet uses pycore_frame.h, pycore_interpframe_structs.h and
// pycore_interpframe.h.
+# include "internal/pycore_critical_section.h"
# include "internal/pycore_frame.h"
# include "internal/pycore_gc.h"
# include "internal/pycore_interp.h"
@@ -25,6 +27,7 @@
# include "internal/pycore_interpframe_structs.h"
# include "internal/pycore_object.h"
# include "internal/pycore_pystate.h"
+# include "internal/pycore_template.h"
#endif
#ifndef MODULE_NAME
diff --git a/Lib/test/test_cppext/extension.cpp
b/Lib/test/test_cppext/extension.cpp
index 92c4645039a03b..4db63df94f5233 100644
--- a/Lib/test/test_cppext/extension.cpp
+++ b/Lib/test/test_cppext/extension.cpp
@@ -15,11 +15,20 @@
#ifdef TEST_INTERNAL_C_API
// gh-135906: Check for compiler warnings in the internal C API
+ // - Cython uses pycore_critical_section.h, pycore_frame.h and
+ // pycore_template.h.
+ // - greenlet uses pycore_frame.h, pycore_interpframe_structs.h and
+ // pycore_interpframe.h.
# include "internal/pycore_frame.h"
+# include "internal/pycore_interpframe_structs.h"
+# include "internal/pycore_template.h"
+
// mimalloc emits compiler warnings on Windows.
# if !defined(MS_WINDOWS)
# include "internal/pycore_backoff.h"
# include "internal/pycore_cell.h"
+# include "internal/pycore_critical_section.h"
+# include "internal/pycore_interpframe.h"
# endif
#endif
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]