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

Method test_new_override

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

Source from the content-addressed store, hash-verified

3218 self.check_note(CustomInit, "")
3219
3220 def test_new_override(self):
3221 class CustomNew(RuntimeError):
3222 def __new__(cls):
3223 return super().__new__(cls)
3224 self.check_note(CustomNew, "")
3225
3226 def test_instance_attribute(self):
3227 msg = "This should be noted"

Callers

nothing calls this directly

Calls 1

check_noteMethod · 0.95

Tested by

no test coverage detected