Skip to content

Commit 4617807

Browse files
authored
FIX: Get doc of actual class (#262)
1 parent b4c5fd1 commit 4617807

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpydoc/tests/test_docscrape.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,7 @@ class Dummy(object):
828828
"""
829829
pass
830830

831-
obj = Dummy()
832-
s = str(FunctionDoc(obj, role='func'))
831+
s = str(FunctionDoc(Dummy, role='func'))
833832
assert(':func:`func_a`, :func:`func_b`' in s)
834833
assert(' some relationship' in s)
835834
assert(':func:`func_d`' in s)

0 commit comments

Comments
 (0)