mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 08:44:45 +03:00
assert bytes again instead of False
Assert statements give a better message this way.
This commit is contained in:
parent
2a274a4760
commit
738afe3b85
|
@ -95,7 +95,7 @@ def assert_image_equal(a, b, msg=None):
|
|||
except Exception:
|
||||
pass
|
||||
|
||||
assert False, msg or "got different content"
|
||||
assert a.tobytes() == b.tobytes(), msg or "got different content"
|
||||
|
||||
|
||||
def assert_image_equal_tofile(a, filename, msg=None, mode=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user