From: Martin v. Löwis Date: Wed, 14 Mar 2007 20:02:38 +0000 (+0000) Subject: Patch #1559413: Fix test_cmd_line if sys.executable contains a space. X-Git-Tag: v2.5.1c1~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7520df439a9cd3eff2ae39802e9331df17018d75;p=thirdparty%2FPython%2Fcpython.git Patch #1559413: Fix test_cmd_line if sys.executable contains a space. --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 5e898634d960..cacae7a697aa 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -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() diff --git a/Misc/NEWS b/Misc/NEWS index bae1ebe26ed0..add3bbbf23cd 100644 --- 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.