diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 2d101aa2f55c..cdf28a4d3d0a 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -470,7 +470,7 @@ def test_help_output_redirect(self): 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)