summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-15 20:00:20 (GMT)
committerGitHub <noreply@github.com>2020-04-15 20:00:20 (GMT)
commitfbf2786c4c89430e2067016603078cf3500cfe94 (patch)
tree151141df42e6e058127ef59eae7f95c5e4644991 /Lib/test/test_pydoc.py
parentba1bcffe5cafc1bb0ac6fdf9ecef51e75e342707 (diff)
downloadcpython-fbf2786c4c89430e2067016603078cf3500cfe94.zip
cpython-fbf2786c4c89430e2067016603078cf3500cfe94.tar.gz
cpython-fbf2786c4c89430e2067016603078cf3500cfe94.tar.bz2
bpo-40257: Output object's own docstring in pydoc (GH-19479)
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index ebd8d4a..800913b 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -1254,7 +1254,8 @@ cm(x) method of builtins.type instance
X.attr.__doc__ = 'Custom descriptor'
self.assertEqual(self._get_summary_lines(X.attr), """\
-<test.test_pydoc.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>""")
+<test.test_pydoc.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>
+ Custom descriptor""")
X.attr.__name__ = 'foo'
self.assertEqual(self._get_summary_lines(X.attr), """\