summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index e1f51d62..b8fb00d6 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -27,10 +27,12 @@ random.shuffle(test_content)
test_content = ''.join(test_content) + '\n'
-def test_lexer_import_all():
+def test_lexer_instantiate_all():
# instantiate every lexer, to see if the token type defs are correct
+ def verify(name):
+ getattr(lexers, name)
for x in lexers.LEXERS:
- c = getattr(lexers, x)()
+ yield verify, x
def test_lexer_classes():