[Python-checkins] r83983 - python/branches/py3k/Lib/test/test_subprocess.py

brian.curtin python-checkins at python.org
Fri Aug 13 22:42:57 CEST 2010


Author: brian.curtin
Date: Fri Aug 13 22:42:57 2010
New Revision: 83983

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



Modified:
   python/branches/py3k/Lib/test/test_subprocess.py

Modified: python/branches/py3k/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k/Lib/test/test_subprocess.py	(original)
+++ python/branches/py3k/Lib/test/test_subprocess.py	Fri Aug 13 22:42:57 2010
@@ -1113,11 +1113,12 @@
 
     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


More information about the Python-checkins mailing list