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

Patch by Serhiy Storchaka and Vajrasky Kok.
This commit is contained in:
Terry Jan Reedy 2013-11-04 21:43:26 -05:00
parent 2028e01313
commit 5c81164077
1 changed files with 1 additions and 1 deletions

View File

@ -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)