summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2008-12-31 10:22:01 -0600
committerthatch <devnull@localhost>2008-12-31 10:22:01 -0600
commitdcee51e8a7559ea221a35e0ae233e35140286662 (patch)
tree51593203a0240cbc17aea43da706c7d083d7b22c /tests
parent3eda54220aedd871c385f983e800d2a47a1354cf (diff)
downloadpygments-dcee51e8a7559ea221a35e0ae233e35140286662.tar.gz
In the tests, be more clear about what lexer generated an error token
Diffstat (limited to 'tests')
-rw-r--r--tests/test_examplefiles.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index baf6978a..820a7bcd 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -49,6 +49,7 @@ def check_lexer(lx, absfn):
ntext = []
for type, val in lx.get_tokens(text):
ntext.append(val)
- assert type != Error, 'lexer generated error token for ' + absfn
+ assert type != Error, 'lexer %s generated error token for %s' % \
+ (lx, absfn)
if u''.join(ntext) != text:
raise AssertionError('round trip failed for ' + absfn)