diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-14 20:02:31 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-14 20:02:31 (GMT) |
commit | cd1210a55fd11dc10da6d22a5cef4c26f90672eb (patch) | |
tree | 68cfc884d7b089a6b316a777f3acd12139a116bc | |
parent | 71436f022996b82b2e2518ee5dd08d1a2923eaae (diff) | |
download | cpython-cd1210a55fd11dc10da6d22a5cef4c26f90672eb.zip cpython-cd1210a55fd11dc10da6d22a5cef4c26f90672eb.tar.gz cpython-cd1210a55fd11dc10da6d22a5cef4c26f90672eb.tar.bz2 |
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
Will backport.
-rw-r--r-- | Lib/test/test_cmd_line.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 5e89863..cacae7a 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() @@ -624,6 +624,8 @@ Extension Modules 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. |