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

Method test_skip_simple

testing/python/collect.py:1115–1122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1113
1114class TestTracebackCutting:
1115 def test_skip_simple(self):
1116 with pytest.raises(pytest.skip.Exception) as excinfo:
1117 pytest.skip("xxx")
1118 if sys.version_info >= (3, 11):
1119 assert excinfo.traceback[-1].frame.code.raw.co_qualname == "_Skip.__call__"
1120 assert excinfo.traceback[-1].ishidden(excinfo)
1121 assert excinfo.traceback[-2].frame.code.name == "test_skip_simple"
1122 assert not excinfo.traceback[-2].ishidden(excinfo)
1123
1124 def test_traceback_argsetup(self, pytester: Pytester) -> None:
1125 pytester.makeconftest(

Callers

nothing calls this directly

Calls 1

ishiddenMethod · 0.80

Tested by

no test coverage detected