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

Function fail

IPython/core/tests/test_magic.py:99–100  ·  view source on GitHub ↗
(shell)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected