gh-116869: Fix test_cext for Free Threading (#117043)

Don't check for warnings on Free Threading.
This commit is contained in:
Victor Stinner 2024-03-19 23:23:17 +01:00 committed by GitHub
parent 438de10c16
commit d5ebf8b71f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -40,9 +40,11 @@ class TestExt(unittest.TestCase):
def test_build_c99(self): def test_build_c99(self):
self.check_build('_test_c99_cext', std='c99') self.check_build('_test_c99_cext', std='c99')
@unittest.skipIf(support.Py_GIL_DISABLED, 'incompatible with Free Threading')
def test_build_limited(self): def test_build_limited(self):
self.check_build('_test_limited_cext', limited=True) self.check_build('_test_limited_cext', limited=True)
@unittest.skipIf(support.Py_GIL_DISABLED, 'broken for now with Free Threading')
def test_build_limited_c11(self): def test_build_limited_c11(self):
self.check_build('_test_limited_c11_cext', limited=True, std='c11') self.check_build('_test_limited_c11_cext', limited=True, std='c11')

View File

@ -11,7 +11,7 @@ from setuptools import setup, Extension
SOURCE = 'extension.c' SOURCE = 'extension.c'
if not support.MS_WINDOWS: if not support.MS_WINDOWS and not support.Py_GIL_DISABLED:
# C compiler flags for GCC and clang # C compiler flags for GCC and clang
CFLAGS = [ CFLAGS = [
# The purpose of test_cext extension is to check that building a C # The purpose of test_cext extension is to check that building a C