]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 14 Mar 2007 20:02:38 +0000 (20:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 14 Mar 2007 20:02:38 +0000 (20:02 +0000)
Lib/test/test_cmd_line.py
Misc/NEWS

index 5e898634d96044d92073107eac259fb9451f4bf2..cacae7a697aa74ecd38c804d0f5b264a13d6522d 100644 (file)
@@ -6,7 +6,7 @@ import subprocess
 
 class CmdLineTest(unittest.TestCase):
     def start_python(self, cmd_line):
-        outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
+        outfp, infp = popen2.popen4('"%s" %s' % (sys.executable, cmd_line))
         infp.close()
         data = outfp.read()
         outfp.close()
index bae1ebe26ed0ed235e7811a005745ee9d8457e54..add3bbbf23cd6e3f47bd8d70a517e8239dda9cb8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -520,6 +520,8 @@ Extension Modules
 Tests
 -----
 
+- Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
+
 - Fix bsddb test_basics.test06_Transactions to check the version
   number properly.