diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-01-19 20:49:02 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-01-19 20:49:02 (GMT) |
commit | e047e6dd092a7d8f512914de78a8193ba6c518c4 (patch) | |
tree | db88c86809561678464c25a758c38bf4fc3d36fa /Lib/test | |
parent | 060e6855a802a9e9bf2e6905342f704f64a3a26d (diff) | |
download | cpython-e047e6dd092a7d8f512914de78a8193ba6c518c4.zip cpython-e047e6dd092a7d8f512914de78a8193ba6c518c4.tar.gz cpython-e047e6dd092a7d8f512914de78a8193ba6c518c4.tar.bz2 |
fix comment typos, use not arg instead of arg == "", add test coverage
for inside of the final if needquotes: within subprocess.list2cmdline().
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 33aa013..a7e309e 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -422,6 +422,8 @@ class ProcessTestCase(unittest.TestCase): '"a b c" d e') self.assertEqual(subprocess.list2cmdline(['ab"c', '\\', 'd']), 'ab\\"c \\ d') + self.assertEqual(subprocess.list2cmdline(['ab"c', ' \\', 'd']), + 'ab\\"c " \\\\" d') self.assertEqual(subprocess.list2cmdline(['a\\\\\\b', 'de fg', 'h']), 'a\\\\\\b "de fg" h') self.assertEqual(subprocess.list2cmdline(['a\\"b', 'c', 'd']), |