Commits

Tim Hatch committed 4ff1cf3

When displaying a roundtrip error, show the diff

Comments (0)

Files changed (1)

tests/test_examplefiles.py

                 (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