diff options
| author | R. David Murray <rdmurray@bitdance.com> | 2009-05-27 20:16:24 (GMT) |
|---|---|---|
| committer | R. David Murray <rdmurray@bitdance.com> | 2009-05-27 20:16:24 (GMT) |
| commit | 2edb85d692f1708754a8c1331b0c28b3b6bb7c30 (patch) | |
| tree | dd0b643a1fcd541781ef60ca7a12f2e44c6768c5 /Lib/test | |
| parent | 4f1e16338d8b467880589277da447d7a6c725d99 (diff) | |
| download | cpython-2edb85d692f1708754a8c1331b0c28b3b6bb7c30.zip cpython-2edb85d692f1708754a8c1331b0c28b3b6bb7c30.tar.gz cpython-2edb85d692f1708754a8c1331b0c28b3b6bb7c30.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')
| -rw-r--r-- | Lib/test/test_pydoc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 91a9977..7990d3a 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -237,6 +237,14 @@ 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 = run_pydoc(missing_module) + expected = missing_pattern % missing_module.strip() + self.assertEqual(expected, result, + "white space was not stripped from module name " + "or other error output mismatch") + class TestDescriptions(unittest.TestCase): |
