summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-01-19 22:49:37 +0000
committerGregory P. Smith <greg@mad-scientist.com>2008-01-19 22:49:37 +0000
commit70eb2f91b45e126ca8219d965b1d14968b0405cc (patch)
tree72ef3cbac75909f93ab5f195488e1b9b7dd6483a /Lib/test/test_subprocess.py
parent92ffc634e48268d357f6bde2ed1b7ac26bfb2631 (diff)
downloadcpython-git-70eb2f91b45e126ca8219d965b1d14968b0405cc.tar.gz
Fix issue 1300: Quote command line arguments that contain a '|' character in
subprocess.list2cmdline (windows).
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index a7e309ef56..9886f3d8fa 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -434,6 +434,8 @@ class ProcessTestCase(unittest.TestCase):
'"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):