Lines Matching refs:register_error
113 codecs.register_error(
141 codecs.register_error(
188 codecs.register_error("test.relaxedutf8", relaxedutf8)
246 codecs.register_error("test.hui", handler_unicodeinternal)
261 codecs.register_error("test.handler1", handler1)
269 codecs.register_error("test.handler2", handler2)
314 codecs.register_error("test." + err, codecs.lookup_error(err))
623 codecs.register_error("test.badhandler", lambda x: res)
663 codecs.register_error("test.unencreplhandler", unencrepl)
676 self.assertRaises(TypeError, codecs.register_error, 42)
677 self.assertRaises(TypeError, codecs.register_error, "test.dummy", 42)
697 codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)
710 codecs.register_error("test.baddecodereturn1", baddecodereturn1)
720 codecs.register_error("test.baddecodereturn2", baddecodereturn2)
724 codecs.register_error("test.posreturn", handler.handle)
769 codecs.register_error("test.badencodereturn1", badencodereturn1)
774 codecs.register_error("test.badencodereturn2", badencodereturn2)
778 codecs.register_error("test.posreturn", handler.handle)