From: Benjamin Peterson Date: Thu, 14 Jan 2010 02:40:10 +0000 (+0000) Subject: use more robust quoting X-Git-Tag: v2.7a3~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a1b4352973ae572b0e296c2647937cbaa10e4ab;p=thirdparty%2FPython%2Fcpython.git use more robust quoting --- diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 454ba171e4a2..95f6d209763f 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -17,7 +17,7 @@ python = sys.executable class PopenTest(unittest.TestCase): def _do_test_commandline(self, cmdline, expected): - cmd = '%r -c "import sys;print sys.argv" %s' % (python, cmdline) + cmd = '"%s" -c "import sys;print sys.argv" %s' % (python, cmdline) data = os.popen(cmd).read() got = eval(data)[1:] # strip off argv[0] self.assertEqual(got, expected)