[py-svn] r38310 - py/trunk/py/apigen/source

hpk at codespeak.net hpk at codespeak.net
Fri Feb 9 20:45:05 CET 2007


Author: hpk
Date: Fri Feb  9 20:45:04 2007
New Revision: 38310

Modified:
   py/trunk/py/apigen/source/color.py
Log:
assertion to be sure about keywords


Modified: py/trunk/py/apigen/source/color.py
==============================================================================
--- py/trunk/py/apigen/source/color.py	(original)
+++ py/trunk/py/apigen/source/color.py	Fri Feb  9 20:45:04 2007
@@ -14,6 +14,13 @@
                    'global', 'import', 'lambda', 'pass', 'print']
     linejoin = r'\\'
 
+def assert_keywords():
+    from keyword import kwlist
+    all = PythonSchema.keyword + PythonSchema.alt_keyword
+    for x in kwlist:
+        assert x in all
+assert_keywords()
+
 class Token(object):
     data = None
     type = 'unknown'



More information about the pytest-commit mailing list