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

Method __bool__

src/_pytest/python_api.py:103–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 )
102
103 def __bool__(self):
104 __tracebackhide__ = True
105 raise AssertionError(
106 "approx() is not supported in a boolean context.\nDid you mean: `assert a == approx(b)`?"
107 )
108
109 # Ignore type because of https://github.com/python/mypy/issues/4266.
110 __hash__ = None # type: ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected