()
| 998 | |
| 999 | |
| 1000 | def test_custom_exc_count(): |
| 1001 | hook = mock.Mock(return_value=None) |
| 1002 | ip.set_custom_exc((SyntaxError,), hook) |
| 1003 | before = ip.execution_count |
| 1004 | ip.run_cell("def foo()", store_history=True) |
| 1005 | # restore default excepthook |
| 1006 | ip.set_custom_exc((), None) |
| 1007 | nt.assert_equal(hook.call_count, 1) |
| 1008 | nt.assert_equal(ip.execution_count, before + 1) |
| 1009 | |
| 1010 | |
| 1011 | def test_run_cell_async(): |
nothing calls this directly
no test coverage detected