[Python-checkins] r54386 - in python/trunk: Lib/test/test_cmd_line.py Misc/NEWS

martin.v.loewis python-checkins at python.org
Wed Mar 14 21:02:39 CET 2007


Author: martin.v.loewis
Date: Wed Mar 14 21:02:31 2007
New Revision: 54386

Modified:
   python/trunk/Lib/test/test_cmd_line.py
   python/trunk/Misc/NEWS
Log:
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
Will backport.


Modified: python/trunk/Lib/test/test_cmd_line.py
==============================================================================
--- python/trunk/Lib/test/test_cmd_line.py	(original)
+++ python/trunk/Lib/test/test_cmd_line.py	Wed Mar 14 21:02:31 2007
@@ -6,7 +6,7 @@
 
 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()

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Wed Mar 14 21:02:31 2007
@@ -624,6 +624,8 @@
 Tests
 -----
 
+- Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
+
 - Added test.test_support.TransientResource which is a context manager to
   surround calls to resources that are not guaranteed to work even if
   test.test_support.requires says that the resource should exist.


More information about the Python-checkins mailing list