MCPcopy Index your code
hub / github.com/python/cpython / test_init_override

Method test_init_override

Lib/test/test_codecs.py:3214–3218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3212 self.check_note(MyRuntimeError(msg), msg, MyRuntimeError)
3213
3214 def test_init_override(self):
3215 class CustomInit(RuntimeError):
3216 def __init__(self):
3217 pass
3218 self.check_note(CustomInit, "")
3219
3220 def test_new_override(self):
3221 class CustomNew(RuntimeError):

Callers

nothing calls this directly

Calls 1

check_noteMethod · 0.95

Tested by

no test coverage detected