Commits

Tim Hatch  committed 4ff1cf3

When displaying a roundtrip error, show the diff

  • Participants
  • Parent commits 2f2a9d7

Comments (0)

Files changed (1)

File 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