Skip to content

Commit b7a7431

Browse files
ci: Exclude free-threading Django tests from tox
1 parent 2f966c6 commit b7a7431

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

scripts/populate_tox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
],
105105
"<3.1": ["pytest-django<4.0"],
106106
},
107+
"free-threading": False,
107108
},
108109
"dramatiq": {
109110
"package": "dramatiq",

scripts/populate_tox/populate_tox.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -787,12 +787,14 @@ def _add_python_versions_to_release(
787787
release,
788788
)
789789

790-
py_versions_with_supported_free_threaded_wheel = set(
791-
version
792-
for version in supported_py_versions
793-
if version >= MIN_FREE_THREADING_SUPPORT
794-
and _supports_free_threading(package, release, version, release_pypi_data)
795-
)
790+
py_versions_with_supported_free_threaded_wheel = set()
791+
if not TEST_SUITE_CONFIG[integration].get("free-threading", True):
792+
py_versions_with_supported_free_threaded_wheel.update(
793+
version
794+
for version in supported_py_versions
795+
if version >= MIN_FREE_THREADING_SUPPORT
796+
and _supports_free_threading(package, release, version, release_pypi_data)
797+
)
796798

797799
release.python_versions = pick_python_versions_to_test(
798800
supported_py_versions,

0 commit comments

Comments
 (0)