summaryrefslogtreecommitdiff
path: root/test/test_farm.py
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
commit3ce4ef98bc60cd0c0a6517e4fc10eb794806c8c8 (patch)
treedad2ca358180bf06274795971ef8cb0b9bdf08fe /test/test_farm.py
parent63af28d0ee994b53fce75a89702acfa830d6e0a5 (diff)
downloadpython-coveragepy-3ce4ef98bc60cd0c0a6517e4fc10eb794806c8c8.tar.gz
A more helpful error message when gold files don't match.
Diffstat (limited to 'test/test_farm.py')
-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 bc1d7a3..78b9354 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