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

Method test_skip_simple

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

Source from the content-addressed store, hash-verified

1000
1001class TestTracebackCutting:
1002 def test_skip_simple(self):
1003 with pytest.raises(pytest.skip.Exception) as excinfo:
1004 pytest.skip("xxx")
1005 assert excinfo.traceback[-1].frame.code.name == "skip"
1006 assert excinfo.traceback[-1].ishidden()
1007 assert excinfo.traceback[-2].frame.code.name == "test_skip_simple"
1008 assert not excinfo.traceback[-2].ishidden()
1009
1010 def test_traceback_argsetup(self, pytester: Pytester) -> None:
1011 pytester.makeconftest(

Callers

nothing calls this directly

Calls 1

ishiddenMethod · 0.80

Tested by

no test coverage detected