Lines Matching defs:error
5 import urllib.error
105 # "Exception ignored in". Override close() to silence this error.
472 # urlopen() should raise OSError for many error codes.
485 # urlopen() should raise OSError for many error codes.
495 with self.assertRaisesRegex(urllib.error.HTTPError, msg):
509 self.assertRaises(urllib.error.HTTPError, urlopen,
525 with self.assertRaises(urllib.error.URLError) as e:
541 with self.assertRaises(urllib.error.URLError):
546 with self.assertRaises(urllib.error.URLError) as e:
552 with self.assertRaises(urllib.error.URLError) as e:
849 with self.assertRaises(urllib.error.ContentTooShortError):
868 with self.assertRaises(urllib.error.ContentTooShortError):
1013 # Encoding argument should raise type error on bytes input
1049 # Characters in BMP, encoded with Latin-1, with replace error handling
1056 # Characters in BMP, Latin-1, with xmlcharref error handling