Commit 86f0c821 authored by Emmanuel Arias's avatar Emmanuel Arias Committed by Serhiy Storchaka

bpo-36729: Delete unused text variable on tests. (GH-12959)

parent e0dcb85b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment