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

Method test_pdb_on_BdbQuit

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

Source from the content-addressed store, hash-verified

165 assert "entering PDB" not in stdout, stdout
166
167 def test_pdb_on_BdbQuit(self, pytester, pdblist) -> None:
168 rep = runpdb_and_get_report(
169 pytester,
170 """
171 import bdb
172 def test_func():
173 raise bdb.BdbQuit
174 """,
175 )
176 assert rep.failed
177 assert len(pdblist) == 0
178
179 def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None:
180 rep = runpdb_and_get_report(

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected