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

Function _report_unserialization_failure

src/_pytest/reports.py:245–256  ·  view source on GitHub ↗
(
    type_name: str, report_class: type[BaseReport], reportdict
)

Source from the content-addressed store, hash-verified

243
244
245def _report_unserialization_failure(
246 type_name: str, report_class: type[BaseReport], reportdict
247) -> NoReturn:
248 url = "https://github.com/pytest-dev/pytest/issues"
249 stream = StringIO()
250 pprint("-" * 100, stream=stream)
251 pprint(f"INTERNALERROR: Unknown entry type returned: {type_name}", stream=stream)
252 pprint(f"report_name: {report_class}", stream=stream)
253 pprint(reportdict, stream=stream)
254 pprint(f"Please report this bug at {url}", stream=stream)
255 pprint("-" * 100, stream=stream)
256 raise RuntimeError(stream.getvalue())
257
258
259def _format_failed_longrepr(

Callers 1

deserialize_repr_entryFunction · 0.85

Calls 1

getvalueMethod · 0.45

Tested by

no test coverage detected