cpython: ffd83aeb0b67 (original) (raw)
Mercurial > cpython
changeset 69652:ffd83aeb0b67 2.7
Backport test from #11926. [#11926]
Ezio Melotti ezio.melotti@gmail.com | |
---|---|
date | Thu, 28 Apr 2011 07:59:33 +0300 |
parents | eb7c4526ccbf |
children | 0c8bc3a0130a |
files | Lib/test/test_pydoc.py |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_pydoc.py 10 |
line wrap: on
line diff
--- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -6,6 +6,7 @@ import subprocess import re import pydoc import inspect +import keyword import unittest import xml.etree import test.test_support @@ -351,9 +352,16 @@ class TestDescriptions(unittest.TestCase self.assertIn('_asdict', helptext) +class TestHelper(unittest.TestCase):
- def test_keywords(self):
self.assertEqual(sorted(pydoc.Helper.keywords),[](#l1.17)
sorted(keyword.kwlist))[](#l1.18)
+ + def test_main(): test.test_support.run_unittest(PyDocDocTest,
TestDescriptions)[](#l1.23)
TestDescriptions,[](#l1.24)
TestHelper)[](#l1.25)