From d2951f62b333848cbac7638328168e5fd7482145 2012-06-11 21:07:51 From: Thomas Kluyver Date: 2012-06-11 21:07:51 Subject: [PATCH] Add failing test for gh-1914 --- diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py index f4f6e1a..42c1516 100644 --- a/IPython/core/tests/test_oinspect.py +++ b/IPython/core/tests/test_oinspect.py @@ -283,3 +283,8 @@ def test_getdoc(): nt.assert_equal(oinspect.getdoc(a), "standard docstring") nt.assert_equal(oinspect.getdoc(b), "custom docstring") nt.assert_equal(oinspect.getdoc(c), "standard docstring") + +def test_pdef(): + # See gh-1914 + def foo(): pass + inspector.pdef(foo, 'foo')