Skip to content

Commit

Permalink
Silence BytesWarning while testing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Aug 14, 2010
1 parent 82a3f8a commit 62829dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_urllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ def test_unquoting(self):
"%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
Expand Down

0 comments on commit 62829dc

Please sign in to comment.