summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-05-27 20:56:59 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-05-27 20:56:59 (GMT)
commit1f1b9d3d0de4dcf272f7908ce001833ac4cdabbb (patch)
treec56fed30ab3d6aa76124064add7d5311f6ec2563 /Lib/test/test_pydoc.py
parented23ab677ccc73329c5e0ba431410cf90076e8e1 (diff)
downloadcpython-1f1b9d3d0de4dcf272f7908ce001833ac4cdabbb.zip
cpython-1f1b9d3d0de4dcf272f7908ce001833ac4cdabbb.tar.gz
cpython-1f1b9d3d0de4dcf272f7908ce001833ac4cdabbb.tar.bz2
Merged revisions 72966 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72966 | r.david.murray | 2009-05-27 16:07:21 -0400 (Wed, 27 May 2009) | 4 lines fix issue #6121 by stripping spaces from the argument in the 'help' function. ........
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 95a11af..03b3539 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -254,6 +254,12 @@ class PyDocDocTest(unittest.TestCase):
self.assertEqual(expected, result,
"documentation for missing module found")
+ def test_input_strip(self):
+ missing_module = " test.i_am_not_here "
+ result = str(run_pydoc(missing_module), 'ascii')
+ expected = missing_pattern % missing_module.strip()
+ self.assertEqual(expected, result)
+
class TestDescriptions(unittest.TestCase):