[Python-checkins] cpython (2.7): Backport test from #11926.
ezio.melotti
python-checkins at python.org
Thu Apr 28 06:59:53 CEST 2011
http://hg.python.org/cpython/rev/ffd83aeb0b67
changeset: 69652:ffd83aeb0b67
branch: 2.7
parent: 69648:eb7c4526ccbf
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Thu Apr 28 07:59:33 2011 +0300
summary:
Backport test from #11926.
files:
Lib/test/test_pydoc.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -6,6 +6,7 @@
import re
import pydoc
import inspect
+import keyword
import unittest
import xml.etree
import test.test_support
@@ -351,9 +352,16 @@
self.assertIn('_asdict', helptext)
+class TestHelper(unittest.TestCase):
+ def test_keywords(self):
+ self.assertEqual(sorted(pydoc.Helper.keywords),
+ sorted(keyword.kwlist))
+
+
def test_main():
test.test_support.run_unittest(PyDocDocTest,
- TestDescriptions)
+ TestDescriptions,
+ TestHelper)
if __name__ == "__main__":
test_main()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list