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

Method _fail

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

Source from the content-addressed store, hash-verified

1738 self._log_output = []
1739
1740 def _fail(self, msg: str) -> None:
1741 __tracebackhide__ = True
1742 log_text = self._log_text
1743 self._log_output = []
1744 fail(log_text)
1745
1746 def str(self) -> str:
1747 """Return the entire original text."""

Callers 3

_match_lines_randomMethod · 0.95
_match_linesMethod · 0.95
_no_match_lineMethod · 0.95

Calls 1

failFunction · 0.90

Tested by

no test coverage detected