]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93975: Nicer error reporting in test_venv (GH-93959)
authorJason R. Coombs <jaraco@jaraco.com>
Sat, 18 Jun 2022 20:47:27 +0000 (16:47 -0400)
committerGitHub <noreply@github.com>
Sat, 18 Jun 2022 20:47:27 +0000 (13:47 -0700)
commit6066f450b91f1cbebf33a245c14e660052ccd90a
tree127189eacc48e30156c05666da4ff09277a42238
parentdd78aae34bc3c0fcf14b2e7be64e08246ee277cc
gh-93975: Nicer error reporting in test_venv (GH-93959)

- gh-93957: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip.
- Update changelog

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.
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]