mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 19:45:56 +03:00
Fix size check on expan for image_rotate
This commit is contained in:
parent
7d59183c1d
commit
20abc9cdfe
|
@ -13,9 +13,12 @@ class TestImageRotate(PillowTestCase):
|
|||
self.assertEqual(out.mode, mode)
|
||||
if angle % 180 == 0:
|
||||
self.assertEqual(out.size, im.size)
|
||||
elif im.size == (0, 0):
|
||||
self.assertEqual(out.size, im.size)
|
||||
else:
|
||||
self.assertNotEqual(out.size, im.size)
|
||||
|
||||
|
||||
for mode in ("1", "P", "L", "RGB", "I", "F"):
|
||||
im = hopper(mode)
|
||||
rotate(im, mode, 45)
|
||||
|
|
Loading…
Reference in New Issue
Block a user