diff --git a/Lib/test/test_cppext/extension.cpp b/Lib/test/test_cppext/extension.cpp index 038f67bbbe3f74..a8cd70aacbc805 100644 --- a/Lib/test/test_cppext/extension.cpp +++ b/Lib/test/test_cppext/extension.cpp @@ -16,10 +16,9 @@ // gh-135906: Check for compiler warnings in the internal C API # include "internal/pycore_frame.h" // mimalloc emits many compiler warnings when Python is built in debug - // mode (when MI_DEBUG is not zero) - // mimalloc emits compiler warnings when Python is built on Windows - // in free-threaded mode. -# if !defined(Py_DEBUG) && !(defined(MS_WINDOWS) && defined(Py_GIL_DISABLED)) + // mode (when MI_DEBUG is not zero). + // mimalloc emits compiler warnings when Python is built on Windows. +# if !defined(Py_DEBUG) && !defined(MS_WINDOWS) # include "internal/pycore_backoff.h" # include "internal/pycore_cell.h" # endif