[Python-checkins] r77486 - python/trunk/Lib/test/test_popen.py
benjamin.peterson
python-checkins at python.org
Thu Jan 14 03:40:11 CET 2010
Author: benjamin.peterson
Date: Thu Jan 14 03:40:10 2010
New Revision: 77486
Log:
use more robust quoting
Modified:
python/trunk/Lib/test/test_popen.py
Modified: python/trunk/Lib/test/test_popen.py
==============================================================================
--- python/trunk/Lib/test/test_popen.py (original)
+++ python/trunk/Lib/test/test_popen.py Thu Jan 14 03:40:10 2010
@@ -17,7 +17,7 @@
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)
More information about the Python-checkins
mailing list