diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-28 04:51:14 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-28 04:51:14 (GMT) |
commit | 44aad855ddb0fed3a76c839598a9c3be31d0b7cb (patch) | |
tree | 4579df393960fd3da0945661aefc2e2138cbb8bf /Lib/test/test_pydoc.py | |
parent | 4f7412356d669fcd035f0ee220242a35310ba51b (diff) | |
parent | b185a04aa10209df7c5fa329696e3c33c38eba7a (diff) | |
download | cpython-44aad855ddb0fed3a76c839598a9c3be31d0b7cb.zip cpython-44aad855ddb0fed3a76c839598a9c3be31d0b7cb.tar.gz cpython-44aad855ddb0fed3a76c839598a9c3be31d0b7cb.tar.bz2 |
#11926: merge with 3.1.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 92f7963..bcddff3 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -3,6 +3,7 @@ import sys import difflib import inspect import pydoc +import keyword import re import string import subprocess @@ -465,11 +466,17 @@ class PydocUrlHandlerTest(unittest.TestCase): self.assertEqual(result, title) +class TestHelper(unittest.TestCase): + def test_keywords(self): + self.assertEqual(sorted(pydoc.Helper.keywords), + sorted(keyword.kwlist)) + def test_main(): test.support.run_unittest(PydocDocTest, TestDescriptions, PydocServerTest, PydocUrlHandlerTest, + TestHelper, ) if __name__ == "__main__": |