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

Function test_exception_printing_skip

testing/test_runner.py:688–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

686
687
688def test_exception_printing_skip() -> None:
689 assert pytest.skip.Exception == pytest.skip.Exception
690 try:
691 pytest.skip("hello")
692 except pytest.skip.Exception:
693 excinfo = ExceptionInfo.from_current()
694 s = excinfo.exconly(tryshort=True)
695 assert s.startswith("Skipped")
696
697
698def test_importorskip(monkeypatch) -> None:

Callers

nothing calls this directly

Calls 2

from_currentMethod · 0.80
exconlyMethod · 0.80

Tested by

no test coverage detected