]> granicus.if.org Git - python/commitdiff
Issue #19397: test_pydoc now works with -S (help not added to builtins).
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 5 Nov 2013 02:43:26 +0000 (21:43 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 5 Nov 2013 02:43:26 +0000 (21:43 -0500)
Patch by Serhiy Storchaka and Vajrasky Kok.

Lib/test/test_pydoc.py

index cdcc707d61b3d3ab800c46fba0c9340273ceef4d..43f4163daef635b24f19288845a6b7664440947e 100644 (file)
@@ -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)