]> granicus.if.org Git - python/commit
[3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error (GH-3066...
authorGregory P. Smith <greg@krypto.org>
Wed, 6 Sep 2017 20:34:17 +0000 (13:34 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 20:34:17 +0000 (13:34 -0700)
commit3bad1650a03fdc8cfdd4cce154e1b2c07e3e4fa0
tree74d19d67b8a7757c13cb75f4e1119559f1a98867
parent3aea3c298b510fffac0f33195c7380a19c60f4e2
[3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error (GH-3066) (#3388)

Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
(cherry picked from commit 3fc499bca18454b9f432b9b0106cab662bfeb549)
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2017-09-05-14-55-28.bpo-31178.JrSFo7.rst [new file with mode: 0644]