mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#11926: merge with 3.1.
This commit is contained in:
commit
44aad855dd
3 changed files with 23 additions and 10 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue