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.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index e5ba623d..41aa01dc 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -22,8 +22,8 @@ class LexersTest(unittest.TestCase):
def test_import_all(self):
# instantiate every lexer, to see if the token type defs are correct
- for x in pygments.lexers.LEXERS.keys():
- c = getattr(pygments.lexers, x)()
+ for x in lexers.LEXERS.keys():
+ c = getattr(lexers, x)()
def test_lexer_classes(self):
a = self.assert_
@@ -41,7 +41,9 @@ class LexersTest(unittest.TestCase):
for token in tokens:
a(isinstance(token, tuple))
a(isinstance(token[0], _TokenType))
- a(isinstance(token[1], str))
+ if isinstance(token[1], str):
+ print repr(token[1])
+ a(isinstance(token[1], unicode))
txt += token[1]
ae(txt, test_content, "%s lexer roundtrip failed: %r != %r" %
(lexer.name, test_content, txt))