Skip to content

Commit b488f33

Browse files
authored
gh-135906: Test more internal headers in test_cext/test_cppext (#144751)
1 parent e66f4a5 commit b488f33

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Lib/test/test_cext/extension.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@
1515

1616
#ifdef TEST_INTERNAL_C_API
1717
// gh-135906: Check for compiler warnings in the internal C API.
18-
// - Cython uses pycore_frame.h.
18+
// - Cython uses pycore_critical_section.h, pycore_frame.h and
19+
// pycore_template.h.
1920
// - greenlet uses pycore_frame.h, pycore_interpframe_structs.h and
2021
// pycore_interpframe.h.
22+
# include "internal/pycore_critical_section.h"
2123
# include "internal/pycore_frame.h"
2224
# include "internal/pycore_gc.h"
2325
# include "internal/pycore_interp.h"
2426
# include "internal/pycore_interpframe.h"
2527
# include "internal/pycore_interpframe_structs.h"
2628
# include "internal/pycore_object.h"
2729
# include "internal/pycore_pystate.h"
30+
# include "internal/pycore_template.h"
2831
#endif
2932

3033
#ifndef MODULE_NAME

Lib/test/test_cppext/extension.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@
1515

1616
#ifdef TEST_INTERNAL_C_API
1717
// gh-135906: Check for compiler warnings in the internal C API
18+
// - Cython uses pycore_critical_section.h, pycore_frame.h and
19+
// pycore_template.h.
20+
// - greenlet uses pycore_frame.h, pycore_interpframe_structs.h and
21+
// pycore_interpframe.h.
1822
# include "internal/pycore_frame.h"
23+
# include "internal/pycore_interpframe_structs.h"
24+
# include "internal/pycore_template.h"
25+
1926
// mimalloc emits compiler warnings on Windows.
2027
# if !defined(MS_WINDOWS)
2128
# include "internal/pycore_backoff.h"
2229
# include "internal/pycore_cell.h"
30+
# include "internal/pycore_critical_section.h"
31+
# include "internal/pycore_interpframe.h"
2332
# endif
2433
#endif
2534

0 commit comments

Comments
 (0)