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

Method test_pdb_on_skip

testing/test_debugging.py:145–155  ·  view source on GitHub ↗
(self, pytester, pdblist)

Source from the content-addressed store, hash-verified

143 assert not pdblist
144
145 def test_pdb_on_skip(self, pytester, pdblist) -> None:
146 rep = runpdb_and_get_report(
147 pytester,
148 """
149 import pytest
150 def test_func():
151 pytest.skip("hello")
152 """,
153 )
154 assert rep.skipped
155 assert len(pdblist) == 0
156
157 def test_pdb_on_top_level_raise_skiptest(self, pytester, pdblist) -> None:
158 stdout = runpdb_and_get_stdout(

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected