mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix issue 1300: Quote command line arguments that contain a '|' character in
subprocess.list2cmdline (windows).
This commit is contained in:
parent
92ffc634e4
commit
70eb2f91b4
2 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue