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

Function serialize_repr_crash

src/_pytest/reports.py:565–571  ·  view source on GitHub ↗
(
        reprcrash: ReprFileLocation | None,
    )

Source from the content-addressed store, hash-verified

563 return result
564
565 def serialize_repr_crash(
566 reprcrash: ReprFileLocation | None,
567 ) -> dict[str, Any] | None:
568 if reprcrash is not None:
569 return dataclasses.asdict(reprcrash)
570 else:
571 return None
572
573 def serialize_exception_longrepr(rep: BaseReport) -> dict[str, Any]:
574 assert rep.longrepr is not None

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected