diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-31 07:12:09 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-31 07:12:09 -0400 |
commit | 0df6aedabc8eebcc147936aca5dbd11d8c6d0640 (patch) | |
tree | 2a6ae6b2b3ec90d200f4ef6054d0bd1e339ac6eb | |
parent | e8691a2d8edcf40daba8a4c20220b73477cd4648 (diff) | |
download | python-coveragepy-0df6aedabc8eebcc147936aca5dbd11d8c6d0640.tar.gz |
derp, assert ends the test, wouldn't print the diff. Now it will
-rw-r--r-- | tests/test_farm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py index 9805a67..9e369cf 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: |