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

Method __class__

testing/python/raises.py:267–268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 # Type ignored because it's bypassed intentionally.
266 @property # type: ignore
267 def __class__(self):
268 assert False, "via __class__"
269
270 with pytest.raises(AssertionError) as excinfo:
271 with pytest.raises(CrappyClass()): # type: ignore[call-overload]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected