]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140754)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Oct 2025 12:51:18 +0000 (13:51 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Oct 2025 12:51:18 +0000 (12:51 +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 19b336ba96f20d81bf4bb560991a4cc0e1f93636..9f2b4f005d1f8d623c2004b312da8d665315ce9a 100644 (file)
@@ -289,6 +289,8 @@ def collect_os(info_add):
         "DISTUTILS_USE_SDK",
         "DYLD_LIBRARY_PATH",
         "ENSUREPIP_OPTIONS",
+        "FORCE_COLOR",
+        "GITHUB_ACTIONS",
         "HISTORY_FILE",
         "HOME",
         "HOMEDRIVE",
@@ -305,11 +307,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)",