From 3173d88f3f08488fbd31614120fb6bf6fe971b9b Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 21 Aug 2002 01:47:48 +0000 Subject: [PATCH] dump help without prompting [SVN r15019] --- test/docstring.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/docstring.py b/test/docstring.py index 54bbfc45..fd9d3cfe 100644 --- a/test/docstring.py +++ b/test/docstring.py @@ -33,9 +33,11 @@ def run(args = None): result = doctest.testmod(sys.modules.get(__name__)) + import pydoc + docmodule = pydoc.TextDoc().docmodule try: print 'printing module help:' - help(docstring_ext) + print docmodule(docstring_ext) except object, x: print '********* failed **********' print x