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

Class SomeClass

testing/io/test_saferepr.py:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 """
171
172 class SomeClass:
173 def __getattribute__(self, attr):
174 raise RuntimeError
175
176 def __repr__(self):
177 raise RuntimeError
178
179 assert saferepr(SomeClass()).startswith(
180 "<[RuntimeError() raised in repr()] SomeClass object at 0x"

Callers 1

test_broken_getattributeFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_broken_getattributeFunction · 0.56