mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
fix issue #6121 by stripping spaces from the argument in the 'help'
function.
This commit is contained in:
parent
1afec5d6bf
commit
d67ea7d4c6
3 changed files with 12 additions and 0 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue