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

Method test_longreprtext_failure

testing/test_runner.py:985–994  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

983 assert "Skipped" in call.report.longreprtext
984
985 def test_longreprtext_failure(self, pytester: Pytester) -> None:
986 reports = pytester.runitem(
987 """
988 def test_func():
989 x = 1
990 assert x == 4
991 """
992 )
993 rep = reports[1]
994 assert "assert 1 == 4" in rep.longreprtext
995
996 def test_captured_text(self, pytester: Pytester) -> None:
997 reports = pytester.runitem(

Callers

nothing calls this directly

Calls 1

runitemMethod · 0.45

Tested by

no test coverage detected