diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-31 08:56:55 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-31 08:56:55 (GMT) |
commit | c049fca0da0b81b04060d52443af493afa560ee8 (patch) | |
tree | 6ed83d033f4f76f006d086848126e2526acb151f /Lib/test/test_urllib.py | |
parent | 62069d3ce743c6f5f91ef3700d6bc2cc69172359 (diff) | |
download | cpython-c049fca0da0b81b04060d52443af493afa560ee8.zip cpython-c049fca0da0b81b04060d52443af493afa560ee8.tar.gz cpython-c049fca0da0b81b04060d52443af493afa560ee8.tar.bz2 |
Fix an oversight in r83294. unquote() should reject bytes. Issue #9301.
Diffstat (limited to 'Lib/test/test_urllib.py')
-rw-r--r-- | Lib/test/test_urllib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index c68fe54..cea153e 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -557,6 +557,7 @@ class UnquotingTests(unittest.TestCase): "%s" % result) self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, None) self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, ()) + self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, b'') def test_unquoting_badpercent(self): # Test unquoting on bad percent-escapes |