Skip to content

Commit c04567a

Browse files
authored
Feat: include free_threaded flag in result-json (#3534)
1 parent 7c3fae8 commit c04567a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/changelog/3534.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ``free_threaded`` flag to to ``"python"`` entries in json output of ``--result-json``.

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy