diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index fafdbf9..4a7c8fb 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -827,7 +827,7 @@ def test_edit_interactive(): except code.InteractivelyDefined as e: nt.assert_equal(e.index, n) else: - nt.fail("Should have raised InteractivelyDefined") + raise AssertionError("Should have raised InteractivelyDefined") def test_edit_cell():