]> granicus.if.org Git - python/commit
bpo-31178: Avoid concatenating bytes with str in subprocess error (#3066)
authorAmmar Askar <ammar_askar@hotmail.com>
Wed, 6 Sep 2017 06:41:30 +0000 (02:41 -0400)
committerGregory P. Smith <greg@krypto.org>
Wed, 6 Sep 2017 06:41:30 +0000 (23:41 -0700)
commit3fc499bca18454b9f432b9b0106cab662bfeb549
tree294f00f9922bff52dad0fea08afd8d28db45a3f5
parent6877111648ac3e042ee5d0458cbeb65dd1a84b2d
bpo-31178: Avoid concatenating bytes with str in subprocess error (#3066)

Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
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]