8000 gh-116869: Fix test_cext for Free Threading by vstinner · Pull Request #117043 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116869: Fix test_cext for Free Threading #117043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/test/test_cext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ def test_build_c11(self):
def test_build_c99(self):
self.check_build('_test_c99_cext', std='c99')

@unittest.skipIf(support.Py_GIL_DISABLED, 'incompatible with Free Threading')
def test_build_limited(self):
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):
self.check_build('_test_limited_c11_cext', limited=True, std='c11')

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_cext/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


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
CFLAGS = [
# The purpose of test_cext extension is to check that building a C
Expand Down
0