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

Function test_exception_printing_skip

testing/test_runner.py:784–791  ·  testing/test_runner.py::test_exception_printing_skip
()

Source from the content-addressed store, hash-verified

782
783
784def test_exception_printing_skip() -> None:
785 assert pytest.skip.Exception == pytest.skip.Exception
786 try:
787 pytest.skip(class="st">"hello")
788 except pytest.skip.Exception:
789 excinfo = ExceptionInfo.from_current()
790 s = excinfo.exconly(tryshort=True)
791 assert s.startswith(class="st">"Skipped")
792
793
794def test_importorskip(monkeypatch) -> None:

Callers

nothing calls this directly

Calls 2

from_currentMethod · 0.80
exconlyMethod · 0.80

Tested by

no test coverage detected