From: Terry Jan Reedy Date: Tue, 5 Nov 2013 02:45:33 +0000 (-0500) Subject: Issue #19397: test_pydoc now works with -S (help not added to builtins). X-Git-Tag: v2.7.8~290^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0e60476a4cf56146a6dfba4b10196391f2d3c60;p=python Issue #19397: test_pydoc now works with -S (help not added to builtins). Patch by Serhiy Storchaka and Vajrasky Kok. --- diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 9e62f2859f..755819610d 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -421,7 +421,7 @@ class TestDescriptions(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)