]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152699)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jun 2026 15:47:12 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 15:47:12 +0000 (15:47 +0000)
commite9d064f395199a6e8509ff73b5111cff055e22d8
treec0e19e02b4e2599e6ec5239b67d138c779815e57
parent0f3e91b1f87697fe143032577f3e2f0f964fe672
[3.15] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152699)

gh-152680: Detect container/VM in test.pythoninfo (GH-152668)

On Apple, log the hardware model as "system.hardware".

* Log the "CI", "IMAGE_OS_VERSION" and "container"
  environment variables.
* Add run_command() and first_line() functions.
(cherry picked from commit f1c536372199cfb9c2e7b360b7bf04208c9eee82)

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