diff options
| author | Raymond Hettinger <python@rcn.com> | 2005-10-15 16:41:53 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2005-10-15 16:41:53 +0000 |
| commit | 4b0f20def3528469f3579445783d2d5db3f50c48 (patch) | |
| tree | 93c246da1d3c738592edf5d53ad83279b70a7dfb /Lib/test/test_urllib.py | |
| parent | 239322b97e40d55b7406b09b953ac4c1fe10dcc5 (diff) | |
| download | cpython-git-4b0f20def3528469f3579445783d2d5db3f50c48.tar.gz | |
Teach unquote() to handle unicode inputs
Diffstat (limited to 'Lib/test/test_urllib.py')
| -rw-r--r-- | Lib/test/test_urllib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 94f0f9efb9..4579c479d1 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -415,6 +415,10 @@ class UnquotingTests(unittest.TestCase): self.assertEqual(expect, result, "using unquote_plus(): %s != %s" % (expect, result)) + def test_unquote_with_unicode(self): + r = urllib.unquote(u'br%C3%BCckner_sapporo_20050930.doc') + self.assertEqual(r, u'br\xc3\xbcckner_sapporo_20050930.doc') + class urlencode_Tests(unittest.TestCase): """Tests for urlencode()""" |
