(self)
| 1000 | |
| 1001 | class 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( |