Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for gh-2697

  • Loading branch information...
commit a0fb02fa4871a6a3da011b4710678c47c07d45d0 1 parent 77e6bd2
Bradley M. Froehle authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 IPython/core/tests/test_debugger.py
19 IPython/core/tests/test_debugger.py
View
@@ -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
+ '''
Please sign in to comment.
Something went wrong with that request. Please try again.