summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorEmmanuel Arias <emmanuelarias30@gmail.com>2019-04-29 02:24:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-04-29 02:24:24 (GMT)
commit86f0c8215c2fdaeef58d185ff00b854a45971f84 (patch)
tree6bb9efb6027c9a488e4fdcd1cfb45e8ea676e2f4 /Lib/test/test_pydoc.py
parente0dcb85b7d64153d1741698c04a6736c9669603a (diff)
downloadcpython-86f0c8215c2fdaeef58d185ff00b854a45971f84.zip
cpython-86f0c8215c2fdaeef58d185ff00b854a45971f84.tar.gz
cpython-86f0c8215c2fdaeef58d185ff00b854a45971f84.tar.bz2
bpo-36729: Delete unused text variable on tests. (GH-12959)
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index c2bd9f3..67c6c5d 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -1250,7 +1250,6 @@ cm(x) method of builtins.type instance
class X:
attr = Descr()
- text = pydoc.plain(pydoc.render_doc(X.attr))
self.assertEqual(self._get_summary_lines(X.attr), """\
<test.test_pydoc.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>""")
@@ -1276,17 +1275,14 @@ foo(...)
class X:
attr = Descr()
- text = pydoc.plain(pydoc.render_doc(X.attr))
self.assertEqual(self._get_summary_lines(X.attr), "")
X.attr.__doc__ = 'Custom descriptor'
- text = pydoc.plain(pydoc.render_doc(X.attr))
self.assertEqual(self._get_summary_lines(X.attr), """\
Custom descriptor
""")
X.attr.__name__ = 'foo'
- text = pydoc.plain(pydoc.render_doc(X.attr))
self.assertEqual(self._get_summary_lines(X.attr), """\
foo
Custom descriptor