MCPcopy Create free account
hub / github.com/ipython/ipython / test_magic_error_status

Function test_magic_error_status

IPython/core/tests/test_magic.py:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def test_magic_error_status():
99 def fail(shell):
100 1/0
101 _ip.register_magic_function(fail)
102 result = _ip.run_cell('%fail')
103 assert isinstance(result.error_in_exec, ZeroDivisionError)
104
105
106def test_config():

Callers

nothing calls this directly

Calls 2

run_cellMethod · 0.45

Tested by

no test coverage detected