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

Method test_pdb_on_KeyboardInterrupt

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

Source from the content-addressed store, hash-verified

177 assert len(pdblist) == 0
178
179 def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None:
180 rep = runpdb_and_get_report(
181 pytester,
182 """
183 def test_func():
184 raise KeyboardInterrupt
185 """,
186 )
187 assert rep.failed
188 assert len(pdblist) == 1
189
190 @staticmethod
191 def flush(child):

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected