From: Terry Jan Reedy <tjreedy@udel.edu> Date: Tue, 5 Nov 2013 02:43:26 +0000 (-0500) Subject: Issue #19397: test_pydoc now works with -S (help not added to builtins). X-Git-Tag: v3.4.0b1~392^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c8116407775343083a8e293510fbd30326f61c4;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 cdcc707d61..43f4163dae 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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)