mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Silence BytesWarning while testing exception
This commit is contained in:
parent
82a3f8afcb
commit
62829dc727
1 changed files with 2 additions and 1 deletions
|
@ -572,7 +572,8 @@ 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'')
|
||||
with support.check_warnings(('', BytesWarning), quiet=True):
|
||||
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