https://github.com/python/cpython/commit/d26fe798c7feac115067ad0e18177f1ef0a4c9b3
commit: d26fe798c7feac115067ad0e18177f1ef0a4c9b3
branch: 3.14
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-10-13T19:34:59Z
summary:
[3.14] gh-157649: Skip limited C API tests on Free Threading (#159371)
files:
M Lib/test/test_cext/__init__.py
diff --git a/Lib/test/test_cext/__init__.py b/Lib/test/test_cext/__init__.py
index b4b33502472255..6277b6d0a308a0 100644
--- a/Lib/test/test_cext/__init__.py
+++ b/Lib/test/test_cext/__init__.py
@@ -52,6 +52,10 @@ def check_build(self, extension_name, std=None,
limited=False,
# Old Apple clang++ default C++ std is gnu++98, use C++11 instead
std = 'c++11'
+ if limited and support.Py_GIL_DISABLED:
+ raise unittest.SkipTest("Free Threading doesn't support "
+ "the limited C API")
+
pkg_dir = 'pkg'
os.mkdir(pkg_dir)
self.addCleanup(os_helper.rmtree, pkg_dir)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]