summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-20 10:45:31 +0200
committerGeorg Brandl <georg@python.org>2014-09-20 10:45:31 +0200
commit263571018b4057691369c7e8b567f36c66326dd0 (patch)
tree80cb03b057e7b2a230d601722419d45b0d2b95cb /tests/test_basic_api.py
parent653009f0f5fdc7d70610d12c7fd05e68d4e0af59 (diff)
downloadpygments-263571018b4057691369c7e8b567f36c66326dd0.tar.gz
Make each instantiation a single test
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():