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

Method repr_failure

src/_pytest/python.py:1745–1752  ·  view source on GitHub ↗
(  # type: ignore[override]
        self,
        excinfo: ExceptionInfo[BaseException],
    )

Source from the content-addressed store, hash-verified

1743
1744 # TODO: Type ignored -- breaks Liskov Substitution.
1745 def repr_failure( # type: ignore[override]
1746 self,
1747 excinfo: ExceptionInfo[BaseException],
1748 ) -> Union[str, TerminalRepr]:
1749 style = self.config.getoption("tbstyle", "auto")
1750 if style == "auto":
1751 style = "long"
1752 return self._repr_failure_py(excinfo, style=style)
1753
1754
1755class FunctionDefinition(Function):

Callers

nothing calls this directly

Calls 2

_repr_failure_pyMethod · 0.80
getoptionMethod · 0.45

Tested by

no test coverage detected