summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-18 14:13:21 (GMT)
committerGitHub <noreply@github.com>2020-04-18 14:13:21 (GMT)
commit7e64414f57b70dc5bc0ab19a3162a0735f9bfabf (patch)
tree89751f89c42a08b7335098b470ba6ddc395b184c /Lib/test/test_pydoc.py
parentc606624af8d4cb3b4a052fb263bb983b3f87585b (diff)
downloadcpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.zip
cpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.tar.gz
cpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.tar.bz2
bpo-40257: Improve help for the typing module (GH-19546)
* Show docstring for special forms. * Show docstring for special generic aliases. * Show documentation for __origin__ for generic aliases.
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 800913b..6d358f4 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -1255,7 +1255,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>
- Custom descriptor""")
+ Custom descriptor
+""")
X.attr.__name__ = 'foo'
self.assertEqual(self._get_summary_lines(X.attr), """\