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