mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Don't print the entire image as bytes on failure
This commit is contained in:
parent
8534e67546
commit
2d13166667
|
@ -92,9 +92,8 @@ class PillowTestCase(unittest.TestCase):
|
|||
self.assertEqual(
|
||||
a.size, b.size,
|
||||
msg or "got size %r, expected %r" % (a.size, b.size))
|
||||
self.assertEqual(
|
||||
a.tobytes(), b.tobytes(),
|
||||
msg or "got different content")
|
||||
if a.tobytes() != b.tobytes():
|
||||
self.fail(msg or "got different content")
|
||||
|
||||
def assert_image_similar(self, a, b, epsilon, msg=None):
|
||||
epsilon = float(epsilon)
|
||||
|
|
Loading…
Reference in New Issue
Block a user