summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-11-05 02:45:33 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-11-05 02:45:33 (GMT)
commitc0e60476a4cf56146a6dfba4b10196391f2d3c60 (patch)
treef6a32508387c2f872abaa0b5a7a636a5d129444c /Lib/test/test_pydoc.py
parente765a20003e7c5fd6a2add84c21849be345ecc7e (diff)
downloadcpython-c0e60476a4cf56146a6dfba4b10196391f2d3c60.zip
cpython-c0e60476a4cf56146a6dfba4b10196391f2d3c60.tar.gz
cpython-c0e60476a4cf56146a6dfba4b10196391f2d3c60.tar.bz2
Issue #19397: test_pydoc now works with -S (help not added to builtins).
Patch by Serhiy Storchaka and Vajrasky Kok.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 9e62f28..7558196 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -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)