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

Method test_pdb_on_KeyboardInterrupt

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

Source from the content-addressed store, hash-verified

145 assert len(pdblist) == 0
146
147 def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None:
148 rep = runpdb_and_get_report(
149 pytester,
150 """
151 def test_func():
152 raise KeyboardInterrupt
153 """,
154 )
155 assert rep.failed
156 assert len(pdblist) == 1
157
158 @staticmethod
159 def flush(child):

Callers

nothing calls this directly

Calls 1

runpdb_and_get_reportFunction · 0.85

Tested by

no test coverage detected