diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-01-14 02:40:10 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-01-14 02:40:10 (GMT) |
| commit | 7a1b4352973ae572b0e296c2647937cbaa10e4ab (patch) | |
| tree | f1700380b774902c41c2820dc82c32210bf74ae8 /Lib/test/test_popen.py | |
| parent | 852a27db96f2371f57a17de9a683150d013e2f4f (diff) | |
| download | cpython-7a1b4352973ae572b0e296c2647937cbaa10e4ab.zip cpython-7a1b4352973ae572b0e296c2647937cbaa10e4ab.tar.gz cpython-7a1b4352973ae572b0e296c2647937cbaa10e4ab.tar.bz2 | |
use more robust quoting
Diffstat (limited to 'Lib/test/test_popen.py')
| -rw-r--r-- | Lib/test/test_popen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 454ba17..95f6d20 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) |
