8000 bpo-36729: Delete unused text variable on tests. (GH-12959) · python/cpython@86f0c82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86f0c82

Browse files
eamanuserhiy-storchaka
authored andcommitted
bpo-36729: Delete unused text variable on tests. (GH-12959)
1 parent e0dcb85 commit 86f0c82

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/test/test_pydoc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,6 @@ def __get__(self, obj, cls):
12501250
class X:
12511251
attr = Descr()
12521252

1253-
text = pydoc.plain(pydoc.render_doc(X.attr))
12541253
self.assertEqual(self._get_summary_lines(X.attr), """\
12551254
<test.test_pydoc.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>""")
12561255

@@ -1276,17 +1275,14 @@ def __set__(self, obj, cls):
12761275
class X:
12771276
attr = Descr()
12781277

1279-
text = pydoc.plain(pydoc.render_doc(X.attr))
12801278
self.assertEqual(self._get_summary_lines(X.attr), "")
12811279

12821280
X.attr.__doc__ = 'Custom descriptor'
1283-
text = pydoc.plain(pydoc.render_doc(X.attr))
12841281
self.assertEqual(self._get_summary_lines(X.attr), """\
12851282
Custom descriptor
12861283
""")
12871284

12881285
X.attr.__name__ = 'foo'
1289-
text = pydoc.plain(pydoc.render_doc(X.attr))
12901286
self.assertEqual(self._get_summary_lines(X.attr), """\
12911287
foo
12921288
Custom descriptor

0 commit comments

Comments
 (0)
0