MCPcopy
hub / github.com/pytest-dev/pytest / __class__

Method __class__

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

Source from the content-addressed store, hash-verified

376 # Type ignored because it's bypassed intentionally.
377 @property # type: ignore
378 def __class__(self):
379 assert False, "via __class__"
380
381 with pytest.raises(AssertionError) as excinfo:
382 with pytest.raises(CrappyClass()): # type: ignore[call-overload]

Callers 2

test_samefileFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_samefileFunction · 0.36