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

Method repr_failure

src/_pytest/nodes.py:458–469  ·  view source on GitHub ↗

Return a representation of a collection or test failure. .. seealso:: :ref:`non-python tests` :param excinfo: Exception information for the failure.

(
        self,
        excinfo: ExceptionInfo[BaseException],
        style: TracebackStyle | None = None,
    )

Source from the content-addressed store, hash-verified

456 )
457
458 def repr_failure(
459 self,
460 excinfo: ExceptionInfo[BaseException],
461 style: TracebackStyle | None = None,
462 ) -> str | TerminalRepr:
463 """Return a representation of a collection or test failure.
464
465 .. seealso:: :ref:`non-python tests`
466
467 :param excinfo: Exception information for the failure.
468 """
469 return self._repr_failure_py(excinfo, style)
470
471
472def get_fslocation_from_item(node: Node) -> tuple[str | Path, int | None]:

Callers 2

_format_failed_longreprFunction · 0.45

Calls 1

_repr_failure_pyMethod · 0.95

Tested by

no test coverage detected