]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152700)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jun 2026 15:41:30 +0000 (17:41 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 15:41:30 +0000 (15:41 +0000)
commit67d4cbf189d68a5ea66063c33bf0ae600f24e053
treec0209f5074609c0522ddb57139250b0c6962ee4f
parentfd4965de331ccbc0bc5003664275f6ccbcac160e
[3.14] gh-152680: Detect container/VM in test.pythoninfo (GH-152668) (#152700)

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