Files
python-numpydoc/262.patch
2020-05-07 19:25:24 -06:00

24 lines
790 B
Diff

From 2e4dd944d375cf771e95aef4fb34305ac6431632 Mon Sep 17 00:00:00 2001
From: Eric Larson <larson.eric.d@gmail.com>
Date: Thu, 7 May 2020 17:34:55 -0400
Subject: [PATCH] FIX: Get doc of actual class
---
numpydoc/tests/test_docscrape.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/numpydoc/tests/test_docscrape.py b/numpydoc/tests/test_docscrape.py
index 94ad22a..1780ec4 100644
--- a/numpydoc/tests/test_docscrape.py
+++ b/numpydoc/tests/test_docscrape.py
@@ -828,8 +828,7 @@ class Dummy(object):
"""
pass
- obj = Dummy()
- s = str(FunctionDoc(obj, role='func'))
+ s = str(FunctionDoc(Dummy, role='func'))
assert(':func:`func_a`, :func:`func_b`' in s)
assert(' some relationship' in s)
assert(':func:`func_d`' in s)