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

Method repr_failure

src/_pytest/nodes.py:484–495  ·  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: "Optional[_TracebackStyle]" = None,
    )

Source from the content-addressed store, hash-verified

482 )
483
484 def repr_failure(
485 self,
486 excinfo: ExceptionInfo[BaseException],
487 style: "Optional[_TracebackStyle]" = None,
488 ) -> Union[str, TerminalRepr]:
489 """Return a representation of a collection or test failure.
490
491 .. seealso:: :ref:`non-python tests`
492
493 :param excinfo: Exception information for the failure.
494 """
495 return self._repr_failure_py(excinfo, style)
496
497
498def get_fslocation_from_item(node: "Node") -> Tuple[Union[str, Path], Optional[int]]:

Callers 2

from_item_and_callMethod · 0.45

Calls 1

_repr_failure_pyMethod · 0.95

Tested by

no test coverage detected