Skip to content

Commit d5ebf8b

Browse files
authored
gh-116869: Fix test_cext for Free Threading (#117043)
Don't check for warnings on Free Threading.
1 parent 438de10 commit d5ebf8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/test_cext/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ def test_build_c11(self):
4040
def test_build_c99(self):
4141
self.check_build('_test_c99_cext', std='c99')
4242

43+
@unittest.skipIf(support.Py_GIL_DISABLED, 'incompatible with Free Threading')
4344
def test_build_limited(self):
4445
self.check_build('_test_limited_cext', limited=True)
4546

47+
@unittest.skipIf(support.Py_GIL_DISABLED, 'broken for now with Free Threading')
4648
def test_build_limited_c11(self):
4749
self.check_build('_test_limited_c11_cext', limited=True, std='c11')
4850

Lib/test/test_cext/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
SOURCE = 'extension.c'
14-
if not support.MS_WINDOWS:
14+
if not support.MS_WINDOWS and not support.Py_GIL_DISABLED:
1515
# C compiler flags for GCC and clang
1616
CFLAGS = [
1717
# The purpose of test_cext extension is to check that building a C

0 commit comments

Comments
 (0)