]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140753)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Oct 2025 12:54:04 +0000 (13:54 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Oct 2025 12:54:04 +0000 (12:54 +0000)
gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747)
(cherry picked from commit 376559bf54762d7b6e0a14591a1f284c8f09a855)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/pythoninfo.py

index 23e49772291b0d5132b2ba119e9c7455188c2762..6f6e0903d860555d57f0e37a421e4bf03bc4fff5 100644 (file)
@@ -291,6 +291,8 @@ def collect_os(info_add):
         "DISTUTILS_USE_SDK",
         "DYLD_LIBRARY_PATH",
         "ENSUREPIP_OPTIONS",
+        "FORCE_COLOR",
+        "GITHUB_ACTIONS",
         "HISTORY_FILE",
         "HOME",
         "HOMEDRIVE",
@@ -307,11 +309,13 @@ def collect_os(info_add):
         "MAKEFLAGS",
         "MIXERDEV",
         "MSSDK",
+        "NO_COLOR",
         "PATH",
         "PATHEXT",
         "PIP_CONFIG_FILE",
         "PLAT",
         "POSIXLY_CORRECT",
+        "PYTHON_COLORS",
         "PY_SAX_PARSER",
         "ProgramFiles",
         "ProgramFiles(x86)",