diff --git a/IPython/core/tests/test_debugger.py b/IPython/core/tests/test_debugger.py index 5dbc397..41f67e7 100644 --- a/IPython/core/tests/test_debugger.py +++ b/IPython/core/tests/test_debugger.py @@ -121,3 +121,22 @@ def test_ipdb_magics(): Constructor Docstring:Docstring for ExampleClass.__init__ ipdb> continue ''' + +def test_ipdb_magics(): + '''Test ipdb with a very short function. + + >>> def bar(): + ... pass + + Run ipdb. + + >>> with PdbTestInput([ + ... 'continue', + ... ]): + ... debugger.Pdb().runcall(bar) + > (2)bar() + 1 def bar(): + ----> 2 pass + + ipdb> continue + '''