def test_magic_error_status():

    def fail(shell):
        (1 / 0)
    _ip.register_magic_function(fail)
    result = _ip.run_cell('%fail')
    assert isinstance(result.error_in_exec, ZeroDivisionError)
def test_magic_error_status():

    def fail(shell):
        (1 / 0)
    _ip.register_magic_function(fail)
    result = _ip.run_cell('%fail')
    assert isinstance(result.error_in_exec, ZeroDivisionError)