Permalink
Browse files

Add test for gh-2697

  • Loading branch information...
1 parent 77e6bd2 commit a0fb02fa4871a6a3da011b4710678c47c07d45d0 @bfroehle committed Dec 23, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 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)
+ > <doctest ...>(2)bar()
+ 1 def bar():
+ ----> 2 pass
+ <BLANKLINE>
+ ipdb> continue
+ '''

0 comments on commit a0fb02f

Please sign in to comment.