()
| 1139 | |
| 1140 | |
| 1141 | def test_custom_exc_count(): |
| 1142 | hook = mock.Mock(return_value=None) |
| 1143 | ip.set_custom_exc((SyntaxError,), hook) |
| 1144 | before = ip.execution_count |
| 1145 | ip.run_cell("def foo()", store_history=True) |
| 1146 | # restore default excepthook |
| 1147 | ip.set_custom_exc((), None) |
| 1148 | assert hook.call_count == 1 |
| 1149 | assert ip.execution_count == before + 1 |
| 1150 | |
| 1151 | |
| 1152 | def test_run_cell_async(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…