]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 83983 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Fri, 13 Aug 2010 21:01:52 +0000 (21:01 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Fri, 13 Aug 2010 21:01:52 +0000 (21:01 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83983 | brian.curtin | 2010-08-13 15:42:57 -0500 (Fri, 13 Aug 2010) | 3 lines

  Fix #9588. Add sys.executable to two shell=True tests.
........

Lib/test/test_subprocess.py

index ccb7a690ff7e4b8a00570910573010db3c4e005e..bce7b0bf00fdb4a9b03eeb50a01c8104bcff028f 100644 (file)
@@ -898,11 +898,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