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

Method __init__

src/_pytest/recwarn.py:188–192  ·  view source on GitHub ↗
(self, *, _ispytest: bool = False)

Source from the content-addressed store, hash-verified

186 """
187
188 def __init__(self, *, _ispytest: bool = False) -> None:
189 check_ispytest(_ispytest)
190 super().__init__(record=True)
191 self._entered = False
192 self._list: list[warnings.WarningMessage] = []
193
194 @property
195 def list(self) -> list[warnings.WarningMessage]:

Callers

nothing calls this directly

Calls 2

check_ispytestFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected