Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Test for getdoc() returning None.

  • Loading branch information...
commit b20fb8e701e808fee3866b3886affd9c9647a0e2 1 parent 72ad5d8
Thomas Kluyver authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 IPython/core/tests/test_oinspect.py
7 IPython/core/tests/test_oinspect.py
@@ -145,8 +145,15 @@ class B(object):
145 145 def getdoc(self):
146 146 return "custom docstring"
147 147
  148 + class C(object):
  149 + """standard docstring"""
  150 + def getdoc(self):
  151 + return None
  152 +
148 153 a = A()
149 154 b = B()
  155 + c = C()
150 156
151 157 nt.assert_equal(oinspect.getdoc(a), "standard docstring")
152 158 nt.assert_equal(oinspect.getdoc(b), "custom docstring")
  159 + nt.assert_equal(oinspect.getdoc(c), "standard docstring")

0 comments on commit b20fb8e

Please sign in to comment.
Something went wrong with that request. Please try again.