From 5c8116407775343083a8e293510fbd30326f61c4 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 4 Nov 2013 21:43:26 -0500 Subject: [PATCH] Issue #19397: test_pydoc now works with -S (help not added to builtins). Patch by Serhiy Storchaka and Vajrasky Kok. --- Lib/test/test_pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0