mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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,6 +572,7 @@ class UnquotingTests(unittest.TestCase):
|
|||
"%s" % result)
|
||||
self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, None)
|
||||
self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, ())
|
||||
with support.check_warnings(('', BytesWarning), quiet=True):
|
||||
self.assertRaises((TypeError, AttributeError), urllib.parse.unquote, b'')
|
||||
|
||||
def test_unquoting_badpercent(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue