]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135906: Test more internal headers in test_cext/test_cppext (#144751)
authorVictor Stinner <vstinner@python.org>
Thu, 12 Feb 2026 18:40:42 +0000 (19:40 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Feb 2026 18:40:42 +0000 (19:40 +0100)
Lib/test/test_cext/extension.c
Lib/test/test_cppext/extension.cpp

index a6b30fd627fe99a7ea0cfcffeb31e26be1a39bd2..7555b78f18c2e64a4d08a04837cf82f1f12bedc6 100644 (file)
 
 #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
index 92c4645039a03b4eb326ed5ce3256096a7af971e..4db63df94f52334775506c55187a7aa05031eafc 100644 (file)
 
 #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