From: Brian Curtin Date: Fri, 13 Aug 2010 20:42:57 +0000 (+0000) Subject: Fix #9588. Add sys.executable to two shell=True tests. X-Git-Tag: v3.2a2~353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d835cf1c84f2b29d54f583139e03b95b906b6081;p=thirdparty%2FPython%2Fcpython.git Fix #9588. Add sys.executable to two shell=True tests. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 27401da2be9c..68ffb33c5f6c 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1113,11 +1113,12 @@ class CommandsWithSpaces (BaseTestCase): def test_shell_string_with_spaces(self): # call() function with string argument with spaces on Windows - self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1) + self.with_spaces('"%s" "%s" "%s"' % (sys.executable, self.fname, + "ab cd"), shell=1) def test_shell_sequence_with_spaces(self): # call() function with sequence argument with spaces on Windows - self.with_spaces([self.fname, "ab cd"], shell=1) + self.with_spaces([sys.executable, self.fname, "ab cd"], shell=1) def test_noshell_string_with_spaces(self): # call() function with string argument with spaces on Windows