MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_breakpoint

Method test_breakpoint

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

Source from the content-addressed store, hash-verified

2466 swap_attr(sys, 'breakpointhook', sys.__breakpointhook__))
2467
2468 def test_breakpoint(self):
2469 with patch('pdb.set_trace') as mock:
2470 breakpoint()
2471 mock.assert_called_once()
2472
2473 def test_breakpoint_with_breakpointhook_set(self):
2474 my_breakpointhook = MagicMock()

Callers

nothing calls this directly

Calls 3

patchFunction · 0.90
breakpointFunction · 0.85
assert_called_onceMethod · 0.80

Tested by

no test coverage detected