]> 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:45:33 +0000 (21:45 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 5 Nov 2013 02:45:33 +0000 (21:45 -0500)
Patch by Serhiy Storchaka and Vajrasky Kok.

Lib/test/test_pydoc.py

index 9e62f2859fe390ce82703a32ac53cd78c29ddac9..755819610d943bb52011d9e3df58c4c0d9b21a46 100644 (file)
@@ -421,7 +421,7 @@ class TestDescriptions(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)