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

Method _fail

src/_pytest/pytester.py:1795–1799  ·  view source on GitHub ↗
(self, msg: str)

Source from the content-addressed store, hash-verified

1793 self._log_output = []
1794
1795 def _fail(self, msg: str) -> None:
1796 __tracebackhide__ = True
1797 log_text = self._log_text
1798 self._log_output = []
1799 fail(log_text)
1800
1801 def str(self) -> str:
1802 """Return the entire original text."""

Callers 3

_match_lines_randomMethod · 0.95
_match_linesMethod · 0.95
_no_match_lineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected