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

Method test_pdb_on_BdbQuit

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

Source from the content-addressed store, hash-verified

133 assert len(pdblist) == 0
134
135 def test_pdb_on_BdbQuit(self, pytester, pdblist) -> None:
136 rep = runpdb_and_get_report(
137 pytester,
138 """
139 import bdb
140 def test_func():
141 raise bdb.BdbQuit
142 """,
143 )
144 assert rep.failed
145 assert len(pdblist) == 0
146
147 def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None:
148 rep = runpdb_and_get_report(

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected