diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 819231e..5c1d536 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -32,6 +32,7 @@ from IPython.utils.io import capture_output from IPython.utils.tempdir import (TemporaryDirectory, TemporaryWorkingDirectory) from IPython.utils.process import find_cmd +from .test_debugger import PdbTestInput @magic.magics_class @@ -602,13 +603,13 @@ def doctest_precision(): def test_debug_magic(): """Test debugging a small code with %debug - In [1]: %debug print("a b") + In [1]: with PdbTestInput(['c']): + ...: %debug print("a b") + ...: NOTE: Enter 'c' at the ipdb> prompt to continue execution. > (1)() - ipdb> c a b - In [2]: """