()
| 940 | |
| 941 | |
| 942 | def test_timeit_raise_on_interrupt(): |
| 943 | ip = get_ipython() |
| 944 | |
| 945 | with pytest.raises(KeyboardInterrupt): |
| 946 | thread = Thread(target=_interrupt_after_1s) |
| 947 | thread.start() |
| 948 | ip.run_cell_magic("timeit", "", "from time import sleep; sleep(2)") |
| 949 | thread.join() |
| 950 | |
| 951 | |
| 952 | @dec.skipif(execution.profile is None) |
nothing calls this directly
no test coverage detected
searching dependent graphs…