Lines Matching refs:lookup_error
278 codecs.register_error("test." + err, codecs.lookup_error(err))
629 surrogateescape_errors = codecs.lookup_error('surrogateescape')
673 surrogatepass_errors = codecs.lookup_error('surrogatepass')
770 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict"))
771 self.assertEqual(codecs.ignore_errors, codecs.lookup_error("ignore"))
772 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict"))
775 codecs.lookup_error("xmlcharrefreplace")
779 codecs.lookup_error("backslashreplace")
783 codecs.lookup_error("namereplace")
811 self.assertRaises(TypeError, codecs.lookup_error)
816 self.assertRaises(LookupError, codecs.lookup_error, "test.unknown")
1063 codecs.lookup_error('surrogateescape'),
1064 codecs.lookup_error('surrogatepass'),