(msg="", called=[0])
| 245 | KeyboardInterrupt cause debugging to cease. |
| 246 | """ |
| 247 | def raising_input(msg="", called=[0]): |
| 248 | called[0] += 1 |
| 249 | if called[0] == 1: |
| 250 | raise KeyboardInterrupt() |
| 251 | else: |
| 252 | raise AssertionError("input() should only be called once!") |
| 253 | |
| 254 | with patch.object(builtins, "input", raising_input): |
| 255 | debugger.InterruptiblePdb().set_trace() |
nothing calls this directly
no outgoing calls
no test coverage detected