From: Terry Jan Reedy 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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c8116407775343083a8e293510fbd30326f61c4;p=thirdparty%2FPython%2Fcpython.git 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 cdcc707d61b3..43f4163daef6 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)