commit | 70eb2f91b45e126ca8219d965b1d14968b0405cc | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Sat Jan 19 22:49:37 2008 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Sat Jan 19 22:49:37 2008 +0000 |
tree | 72ef3cbac75909f93ab5f195488e1b9b7dd6483a | |
parent | 92ffc634e48268d357f6bde2ed1b7ac26bfb2631 [diff] [blame] |
Fix issue 1300: Quote command line arguments that contain a '|' character in subprocess.list2cmdline (windows).
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index a7e309e..9886f3d 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py
@@ -434,6 +434,8 @@ '"a\\\\b\\ c" d e') self.assertEqual(subprocess.list2cmdline(['ab', '']), 'ab ""') + self.assertEqual(subprocess.list2cmdline(['echo', 'foo|bar']), + 'echo "foo|bar"') def test_poll(self):