From 7cf67b0426611923c40735036bd94de84b760881 2020-07-17 14:03:47 From: Quentin Peter Date: 2020-07-17 14:03:47 Subject: [PATCH] add test --- diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 56feb82..819231e 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -599,6 +599,19 @@ def doctest_precision(): Out[5]: '3.141593e+00' """ +def test_debug_magic(): + """Test debugging a small code with %debug + + In [1]: %debug print("a b") + NOTE: Enter 'c' at the ipdb> prompt to continue execution. + > (1)() + + ipdb> c + a b + + In [2]: + """ + def test_psearch(): with tt.AssertPrints("dict.fromkeys"): _ip.run_cell("dict.fr*?")