Commit 7a1b4352 authored by Benjamin Peterson's avatar Benjamin Peterson

use more robust quoting

parent 852a27db
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment