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

Function test_magic_error_status

tests/test_magic.py:115–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113
114
115def test_magic_error_status():
116 def fail(shell):
117 1 / 0
118
119 _ip.register_magic_function(fail)
120 result = _ip.run_cell("%fail")
121 assert isinstance(result.error_in_exec, ZeroDivisionError)
122
123
124def test_config():

Callers

nothing calls this directly

Calls 2

run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…