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

Class CrappyClass

testing/test_compat.py:185–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 assert safe_isclass(type) is True
184
185 class CrappyClass(Exception):
186 # Type ignored because it's bypassed intentionally.
187 @property # type: ignore
188 def __class__(self):
189 assert False, "Should be ignored"
190
191 assert safe_isclass(CrappyClass()) is False
192

Callers 1

test_safe_isclassFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_safe_isclassFunction · 0.56