MCPcopy Create free account
hub / github.com/pytest-dev/pytest / ObjWithErrorInRepr

Class ObjWithErrorInRepr

testing/code/test_excinfo.py:546–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544
545 def test_repr_local_with_error(self) -> None:
546 class ObjWithErrorInRepr:
547 def __repr__(self):
548 raise NotImplementedError
549
550 p = FormattedExcinfo(showlocals=True, truncate_locals=False)
551 loc = {"x": ObjWithErrorInRepr(), "__builtins__": {}}

Calls

no outgoing calls