MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_callback_None_index

Method test_callback_None_index

Lib/test/multibytecodec_support.py:139–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 'test.cjktest')
138
139 def test_callback_None_index(self):
140 def myreplace(exc):
141 return ('x', None)
142 codecs.register_error("test.cjktest", myreplace)
143 self.assertRaises(TypeError, self.encode, self.unmappedunicode,
144 'test.cjktest')
145
146 def test_callback_backward_index(self):
147 def myreplace(exc):

Callers

nothing calls this directly

Calls 2

register_errorMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected