Commit ee984099 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #19397: test_pydoc now works with -S (help not added to builtins).

Patch by Serhiy Storchaka and Vajrasky Kok.
parent ff799833
......@@ -404,7 +404,7 @@ class PydocDocTest(unittest.TestCase):
def test_namedtuple_public_underscore(self):
NT = namedtuple('NT', ['abc', 'def'], rename=True)
with captured_stdout() as help_io:
help(NT)
pydoc.help(NT)
helptext = help_io.getvalue()
self.assertIn('_1', helptext)
self.assertIn('_replace', helptext)
......
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