safe_shlex_split: Fix broken \' in test.

This commit is contained in:
Florian Bruhin 2014-09-18 16:56:50 +02:00
parent 7de0b85dda
commit 0c4d15ea5a

View File

@ -137,7 +137,7 @@ class SafeShlexSplitTests(unittest.TestCase):
def test_escaped_single(self):
"""Test safe_shlex_split with a single escaped string."""
items = utils.safe_shlex_split(r"one 'two\' three' four")
items = utils.safe_shlex_split(r"one 'two'\'' three' four")
self.assertEqual(items, ['one', "two' three", 'four'])
def test_unbalanced_quotes(self):