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

Method test_pdb_on_xfail

testing/test_debugging.py:132–143  ·  view source on GitHub ↗
(self, pytester: Pytester, pdblist)

Source from the content-addressed store, hash-verified

130 assert tb[-1].name == "test_func"
131
132 def test_pdb_on_xfail(self, pytester: Pytester, pdblist) -> None:
133 rep = runpdb_and_get_report(
134 pytester,
135 """
136 import pytest
137 @pytest.mark.xfail
138 def test_func():
139 assert 0
140 """,
141 )
142 assert "xfail" in rep.keywords
143 assert not pdblist
144
145 def test_pdb_on_skip(self, pytester, pdblist) -> None:
146 rep = runpdb_and_get_report(

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected