Skip to content

Commit 245ba3d

Browse files
authored
gh-144490: Fix test_cppext on Windows (#144628)
Don't include pycore_backoff.h and pycore_cell.h on Windows, since they emit C++ compiler warnings.
1 parent fd6b639 commit 245ba3d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_cppext/extension.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
// gh-135906: Check for compiler warnings in the internal C API
1717
# include "internal/pycore_frame.h"
1818
// mimalloc emits many compiler warnings when Python is built in debug
19-
// mode (when MI_DEBUG is not zero)
20-
// mimalloc emits compiler warnings when Python is built on Windows
21-
// in free-threaded mode.
22-
# if !defined(Py_DEBUG) && !(defined(MS_WINDOWS) && defined(Py_GIL_DISABLED))
19+
// mode (when MI_DEBUG is not zero).
20+
// mimalloc emits compiler warnings when Python is built on Windows.
21+
# if !defined(Py_DEBUG) && !defined(MS_WINDOWS)
2322
# include "internal/pycore_backoff.h"
2423
# include "internal/pycore_cell.h"
2524
# endif

0 commit comments

Comments
 (0)