MCPcopy Index your code
hub / github.com/ipython/ipython / test_custom_exc_count

Function test_custom_exc_count

tests/test_interactiveshell.py:1141–1149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1139
1140
1141def 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
1152def test_run_cell_async():

Callers

nothing calls this directly

Calls 2

set_custom_excMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…