]> granicus.if.org Git - python/commitdiff
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 19 Feb 2018 21:00:22 +0000 (13:00 -0800)
committerGitHub <noreply@github.com>
Mon, 19 Feb 2018 21:00:22 +0000 (13:00 -0800)
(cherry picked from commit 5537646bfacec463b450871dde31cb06c44a0556)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
Lib/test/test_subprocess.py

index 858a70131205863bc94df900c8d0b6c170a28e13..b3ccb0de63a84cdef72a0d6e3df8815e6fb584de 100644 (file)
@@ -1179,7 +1179,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: