diff options
author | thatch <devnull@localhost> | 2008-12-31 10:22:01 -0600 |
---|---|---|
committer | thatch <devnull@localhost> | 2008-12-31 10:22:01 -0600 |
commit | dcee51e8a7559ea221a35e0ae233e35140286662 (patch) | |
tree | 51593203a0240cbc17aea43da706c7d083d7b22c /tests | |
parent | 3eda54220aedd871c385f983e800d2a47a1354cf (diff) | |
download | pygments-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.py | 3 |
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) |