Skip to content

Commit 4096df8

Browse files
committed
Skip more tests
1 parent 821326d commit 4096df8

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 and not sysconfig.get_config_var('Py_GIL_DISABLED'):
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)