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

Method __getattr__

testing/test_compat.py:41–45  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

39 return f"<Evil left={self.left}>"
40
41 def __getattr__(self, attr):
42 if not self.left:
43 raise RuntimeError("it's over") # pragma: no cover
44 self.left -= 1
45 return self
46
47 evil = Evil()
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected