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

Method test_init_override

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

Source from the content-addressed store, hash-verified

3223 self.check_note(MyRuntimeError(msg), msg, MyRuntimeError)
3224
3225 def test_init_override(self):
3226 class CustomInit(RuntimeError):
3227 def __init__(self):
3228 pass
3229 self.check_note(CustomInit, "")
3230
3231 def test_new_override(self):
3232 class CustomNew(RuntimeError):

Callers

nothing calls this directly

Calls 1

check_noteMethod · 0.95

Tested by

no test coverage detected