diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-27 08:24:57 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-27 10:57:02 -0400 |
commit | f9dcef3aa4d2b1858b695b552b016b1c71fd526a (patch) | |
tree | 580a1f8fa679fd84c35e747285b2fde2b2e1198f | |
parent | e78bbdd5cd402b0542620629f7093fddede2fd32 (diff) | |
download | python-coveragepy-git-f9dcef3aa4d2b1858b695b552b016b1c71fd526a.tar.gz |
Add a header to make diffs more readable
-rw-r--r-- | tests/test_farm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py index c9969c85..1f9a56d7 100644 --- a/tests/test_farm.py +++ b/tests/test_farm.py @@ -249,7 +249,9 @@ def compare(dir1, dir2, file_pattern=None, size_within=0, left_extra=False, scru text_diff.append('%s != %s' % (left_file, right_file)) left = left.splitlines() right = right.splitlines() + print(":::: diff {!r} and {!r}".format(left_file, right_file)) print("\n".join(difflib.Differ().compare(left, right))) + print(":::: end diff {!r} and {!r}".format(left_file, right_file)) assert not text_diff, "Files differ: %s" % '\n'.join(text_diff) if not left_extra: |