Skip to content

Commit 3ccad47

Browse files
committed
Tweak test that expects limited API builds to fail on ft build
1 parent d48c46d commit 3ccad47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

testing/cffi0/test_zintegration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def test_set_py_limited_api(self):
181181
pytest.skip(str(e))
182182
orig_version = setuptools.__version__
183183
# free-threaded Python does not yet support limited API
184-
expecting_limited_api = not hasattr(sys, 'gettotalrefcount') and not sysconfig.get_config_var("Py_GIL_DISABLED")
184+
expecting_limited_api = (
185+
not hasattr(sys, 'gettotalrefcount') and not
186+
(sysconfig.get_config_var("Py_GIL_DISABLED") and sys.version_info < (3, 15))
187+
)
185188
try:
186189
setuptools.__version__ = '26.0.0'
187190
from setuptools import Extension

0 commit comments

Comments
 (0)