]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152698)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jun 2026 15:36:24 +0000 (17:36 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 15:36:24 +0000 (15:36 +0000)
commit848cb25624ab44c9fef2966c777419376b65af1b
treee11665f9bd5fdce9b9d90abda90ca86548b07c7d
parent2c9972c697d149390bdf9d54563212a427c5477b
[3.13] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152698)

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