From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 19 Feb 2018 20:49:46 +0000 (-0800) Subject: bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758) X-Git-Tag: v3.6.5rc1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef0bb5c7b76a49a5f3c5b85b5f9112cfefe54328;p=python bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758) (cherry picked from commit 5537646bfacec463b450871dde31cb06c44a0556) Co-authored-by: Zachary Ware --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index d7eb982dc5..5c6429cc02 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1183,7 +1183,7 @@ class ProcessTestCase(BaseTestCase): msvcrt.CrtSetReportFile(report_type, msvcrt.CRTDBG_FILE_STDERR) try: - subprocess.Popen([cmd], + subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) except OSError: