aboutsummaryrefslogtreecommitdiffstats
path: root/testing/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/command.py')
-rw-r--r--testing/command.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/testing/command.py b/testing/command.py
index 307a59761..2bed65070 100644
--- a/testing/command.py
+++ b/testing/command.py
@@ -261,14 +261,15 @@ def main():
key, value = things
os.environ[key] = value
+ version = sys.version.replace("\n", " ")
print(
dedent(
- """\
+ f"""\
System:
- Platform={sys.__dict__["platform"]}
- Executable={sys.__dict__["executable"]}
- Version={sys.version.replace("\n", " ")}
- API version={sys.__dict__["api_version"]}
+ Platform={sys.platform}
+ Executable={sys.executable}
+ Version={version}
+ API version={sys.api_version}
Environment:"""
)