]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsureP...
authorJason R. Coombs <jaraco@jaraco.com>
Fri, 1 Jul 2022 15:32:56 +0000 (11:32 -0400)
committerGitHub <noreply@github.com>
Fri, 1 Jul 2022 15:32:56 +0000 (17:32 +0200)
commitc4f82ea0de37edee2aca60c0c32df2539a098d7e
treef2ccf32ce74654dcb2a0677640b88ef0bbc68b36
parent02b30a8ef8fe591e7f5ebc00a885811a98f1d357
[3.11] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94003)

This change does three things:

1. Extract a function for trapping output in subprocesses.
2. Emit both stdout and stderr when encountering an error.
3. Apply the change to `ensurepip._uninstall` check.
(cherry picked from commit 6066f450b91f1cbebf33a245c14e660052ccd90a)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Lib/test/test_venv.py
Misc/NEWS.d/next/Tests/2022-06-17-13-55-11.gh-issue-93957.X4ovYV.rst [new file with mode: 0644]