summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:23:38 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:23:38 -0500
commit1319d28abb4e059083c7bbf896d9412c74c4d351 (patch)
tree5071f8b63a924b2dae9ab31d427b4fe66b635d41
parent4c342d0c040a493c3a93b2f25638a8ecea622067 (diff)
downloadpython-coveragepy-git-1319d28abb4e059083c7bbf896d9412c74c4d351.tar.gz
A more helpful error message when gold files don't match.
-rw-r--r--test/test_farm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_farm.py b/test/test_farm.py
index bc1d7a30..78b93541 100644
--- a/test/test_farm.py
+++ b/test/test_farm.py
@@ -226,7 +226,10 @@ class FarmTestCase(object):
# print "%d %d" % (big, little)
# print "Left: ---\n%s\n-----\n%s" % (left, right)
wrong_size.append(f)
- assert not wrong_size, "File sizes differ: %s" % wrong_size
+ assert not wrong_size, (
+ "File sizes differ between %s and %s: %s" % (
+ dir1, dir2, wrong_size
+ ))
else:
# filecmp only compares in binary mode, but we want text mode. So
# look through the list of different files, and compare them