diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index d7eb982dc574b9..5c6429cc02278d 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1183,7 +1183,7 @@ def test_nonexisting_with_pipes(self): msvcrt.CrtSetReportFile(report_type, msvcrt.CRTDBG_FILE_STDERR) try: - subprocess.Popen([cmd], + subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) except OSError: