Lines Matching refs:lookup_error
314 codecs.register_error("test." + err, codecs.lookup_error(err))
665 surrogateescape_errors = codecs.lookup_error('surrogateescape')
709 surrogatepass_errors = codecs.lookup_error('surrogatepass')
809 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict"))
810 self.assertEqual(codecs.ignore_errors, codecs.lookup_error("ignore"))
811 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict"))
814 codecs.lookup_error("xmlcharrefreplace")
818 codecs.lookup_error("backslashreplace")
822 codecs.lookup_error("namereplace")
850 self.assertRaises(TypeError, codecs.lookup_error)
855 self.assertRaises(LookupError, codecs.lookup_error, "test.unknown")
1107 codecs.lookup_error('surrogateescape'),
1108 codecs.lookup_error('surrogatepass'),