From dcee51e8a7559ea221a35e0ae233e35140286662 Mon Sep 17 00:00:00 2001 From: thatch Date: Wed, 31 Dec 2008 10:22:01 -0600 Subject: In the tests, be more clear about what lexer generated an error token --- tests/test_examplefiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_examplefiles.py') 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) -- cgit v1.2.1