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

Function _format_failed_longrepr

src/_pytest/reports.py:259–269  ·  view source on GitHub ↗
(
    item: Item, call: CallInfo[None], excinfo: ExceptionInfo[BaseException]
)

Source from the content-addressed store, hash-verified

257
258
259def _format_failed_longrepr(
260 item: Item, call: CallInfo[None], excinfo: ExceptionInfo[BaseException]
261):
262 if call.when == "call":
263 longrepr = item.repr_failure(excinfo)
264 else:
265 # Exception in setup or teardown.
266 longrepr = item._repr_failure_py(
267 excinfo, style=item.config.getoption("tbstyle", "auto")
268 )
269 return longrepr
270
271
272def _format_exception_group_all_skipped_longrepr(

Callers 1

from_item_and_callMethod · 0.85

Calls 3

_repr_failure_pyMethod · 0.80
getoptionMethod · 0.80
repr_failureMethod · 0.45

Tested by

no test coverage detected