mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fix an oversight in r83294. unquote() should reject bytes. Issue #9301.
This commit is contained in:
parent
62069d3ce7
commit
c049fca0da
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue