diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py
index afbdd5d..a52ab02 100644
--- a/IPython/core/tests/test_magic.py
+++ b/IPython/core/tests/test_magic.py
@@ -604,7 +604,7 @@ def test_debug_magic():
     """Test debugging a small code with %debug
     
     In [1]: with PdbTestInput(['c']):
-       ...:     %debug print("a b")
+       ...:     %debug print("a b") #doctest: +ELLIPSIS
        ...:
     ...
     ipdb> c