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

Method test_pdb_on_xfail

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

Source from the content-addressed store, hash-verified

108 assert tb[-1].name == "test_func"
109
110 def test_pdb_on_xfail(self, pytester: Pytester, pdblist) -> None:
111 rep = runpdb_and_get_report(
112 pytester,
113 """
114 import pytest
115 @pytest.mark.xfail
116 def test_func():
117 assert 0
118 """,
119 )
120 assert "xfail" in rep.keywords
121 assert not pdblist
122
123 def test_pdb_on_skip(self, pytester, pdblist) -> None:
124 rep = runpdb_and_get_report(

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected