MCPcopy Index your code
hub / github.com/python/cpython / test_breakpoint

Method test_breakpoint

Lib/test/test_builtin.py:2517–2520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2515 swap_attr(sys, 'breakpointhook', sys.__breakpointhook__))
2516
2517 def test_breakpoint(self):
2518 with patch('pdb.set_trace') as mock:
2519 breakpoint()
2520 mock.assert_called_once()
2521
2522 def test_breakpoint_with_breakpointhook_set(self):
2523 my_breakpointhook = MagicMock()

Callers

nothing calls this directly

Calls 2

patchFunction · 0.90
assert_called_onceMethod · 0.80

Tested by

no test coverage detected