summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-13 20:59:27 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-08-13 20:59:27 (GMT)
commitf263c0594c9277d80a8ab23a72393f3c2a33d23f (patch)
tree5e11cc2adb1bd5646ac5aee89d8bd539a7a1f2cc /Lib
parent06124c0df85475191e3c9bb2cc06b461dbd643fb (diff)
downloadcpython-f263c0594c9277d80a8ab23a72393f3c2a33d23f.zip
cpython-f263c0594c9277d80a8ab23a72393f3c2a33d23f.tar.gz
cpython-f263c0594c9277d80a8ab23a72393f3c2a33d23f.tar.bz2
Merged revisions 83983 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 3657d75..64fbe21 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -921,11 +921,12 @@ if mswindows:
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