summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2016-07-07 17:37:29 +0800
committerYen Chi Hsuan <[email protected]>2016-07-07 17:37:29 +0800
commitdfe5fa49aed02cf36ba9f743b11b0903554b5e56 (patch)
treeca7098dad1c9d5ebec97f3c9f9a66cbfa8a334ea /test
parent01a0c511ebfa56699c1f58164c679b24f7972681 (diff)
downloadyoutube-dl-dfe5fa49aed02cf36ba9f743b11b0903554b5e56.tar.gz
youtube-dl-dfe5fa49aed02cf36ba9f743b11b0903554b5e56.zip
[compat] Fix compat_shlex_split for non-ASCII input
Closes #9871
Diffstat (limited to 'test')
-rw-r--r--test/test_compat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_compat.py b/test/test_compat.py
index 1d7ac9f16..b57424948 100644
--- a/test/test_compat.py
+++ b/test/test_compat.py
@@ -88,6 +88,7 @@ class TestCompat(unittest.TestCase):
def test_compat_shlex_split(self):
self.assertEqual(compat_shlex_split('-option "one two"'), ['-option', 'one two'])
self.assertEqual(compat_shlex_split('-option "one\ntwo" \n -flag'), ['-option', 'one\ntwo', '-flag'])
+ self.assertEqual(compat_shlex_split('-val 中文'), ['-val', '中文'])
def test_compat_etree_fromstring(self):
xml = '''