summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-13 20:42:57 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-08-13 20:42:57 (GMT)
commitd835cf1c84f2b29d54f583139e03b95b906b6081 (patch)
treee4cd691e32189c89433ea359648d8e32b60053a2 /Lib/test/test_subprocess.py
parent5e7918c712dcdf772d9a086256334f9e349d6319 (diff)
downloadcpython-d835cf1c84f2b29d54f583139e03b95b906b6081.zip
cpython-d835cf1c84f2b29d54f583139e03b95b906b6081.tar.gz
cpython-d835cf1c84f2b29d54f583139e03b95b906b6081.tar.bz2
Fix #9588. Add sys.executable to two shell=True tests.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-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 27401da..68ffb33 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