Skip to content

Commit 40f4f0a

Browse files
committed
Feat: include free_threaded flag in result-json
1 parent 7c3fae8 commit 40f4f0a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/tox/tox_env/python/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def _get_env_journal_python(self) -> dict[str, Any]:
312312
"is_64": self.base_python.is_64,
313313
"sysplatform": self.base_python.platform,
314314
"extra_version_info": None,
315+
"free_threaded": self.base_python.free_threaded,
315316
}
316317

317318
@abstractmethod

tests/session/cmd/test_sequential.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test_result_json_sequential(
8989
"sysplatform": py_info.platform,
9090
"version": py_info.version,
9191
"version_info": list(py_info.version_info),
92+
"free_threaded": py_info.free_threaded,
9293
}
9394
packaging_setup = get_cmd_exit_run_id(log_report, ".pkg", "setup")
9495
assert "result" not in log_report["testenvs"][".pkg"]

0 commit comments

Comments
 (0)