summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-10-31 07:12:09 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-10-31 07:12:09 -0400
commit5c03ff614c2106b5a7e567761ddcd990005ca949 (patch)
tree36c567bd1d518916d4cbb8155eb4712846564ef2
parent0d392269aac4f59cd42f8c545788510914ce4f4d (diff)
downloadpython-coveragepy-git-5c03ff614c2106b5a7e567761ddcd990005ca949.tar.gz
derp, assert ends the test, wouldn't print the diff. Now it will
-rw-r--r--tests/test_farm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py
index 9805a67e..9e369cf3 100644
--- a/tests/test_farm.py
+++ b/tests/test_farm.py
@@ -258,12 +258,12 @@ class FarmTestCase(object):
# print "%d %d" % (big, little)
# print "Left: ---\n%s\n-----\n%s" % (left, right)
wrong_size.append("%s (%s,%s)" % (f, size_l, size_r))
- assert not wrong_size, (
- "File sizes differ between %s and %s: %s" % (
+ if wrong_size:
+ print("File sizes differ between %s and %s: %s" % (
dir1, dir2, ", ".join(wrong_size)
))
- # We'll show the diff if the files differed enough in size.
+ # We'll show the diff iff the files differed enough in size.
show_diff = bool(wrong_size)
if show_diff: