diff options
author | Guido van Rossum <guido@python.org> | 2007-06-15 03:35:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-15 03:35:38 (GMT) |
commit | aa588c4699877fd812c59debee71aa704b8f6dd4 (patch) | |
tree | fbade3f8b63d8b5cc68bd42664466c4cd5195981 /Lib/test/test_popen.py | |
parent | a092947d26758d39c30c42eb62bdaf02776e7913 (diff) | |
download | cpython-aa588c4699877fd812c59debee71aa704b8f6dd4.zip cpython-aa588c4699877fd812c59debee71aa704b8f6dd4.tar.gz cpython-aa588c4699877fd812c59debee71aa704b8f6dd4.tar.bz2 |
Fix some problems introduced by the str8 repr change.
Diffstat (limited to 'Lib/test/test_popen.py')
-rw-r--r-- | Lib/test/test_popen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 2457396..fba3f41 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -18,8 +18,10 @@ if ' ' in python: python = '"' + python + '"' # quote embedded space for cmdline class PopenTest(unittest.TestCase): + def _do_test_commandline(self, cmdline, expected): - cmd = '%s -c "import sys; print(sys.argv)" %s' % (python, cmdline) + cmd = '%s -c "import sys; print(list(map(str, sys.argv)))" %s' + cmd = cmd % (python, cmdline) data = os.popen(cmd).read() got = eval(data)[1:] # strip off argv[0] self.assertEqual(got, expected) |