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.
........
This commit is contained in:
R. David Murray 2009-05-27 20:56:59 +00:00
parent ed23ab677c
commit 1f1b9d3d0d
3 changed files with 10 additions and 0 deletions

View file

@ -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):