summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2011-03-14 00:26:31 -0700
committerTim Hatch <tim@timhatch.com>2011-03-14 00:26:31 -0700
commitf70f56a7cca3548f913983aae27f85fe61351cd3 (patch)
tree80dcf28cbc4c06657837699c779969a3ce383d23 /tests/test_examplefiles.py
parent13312988a0152909007fa62e8f8e308c115414da (diff)
downloadpygments-f70f56a7cca3548f913983aae27f85fe61351cd3.tar.gz
When displaying a roundtrip error, show the diff
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index 877cbecf..5c5e22eb 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -64,6 +64,8 @@ def check_lexer(lx, absfn, outfn):
(lx, absfn)
tokens.append((type, val))
if u''.join(ntext) != text:
+ print '\n'.join(difflib.unified_diff(u''.join(ntext).splitlines(),
+ text.splitlines()))
raise AssertionError('round trip failed for ' + absfn)
# check output against previous run if enabled