mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Zero image size test
This commit is contained in:
parent
0a922b962f
commit
7d59183c1d
|
@ -15,13 +15,19 @@ class TestImageRotate(PillowTestCase):
|
|||
self.assertEqual(out.size, im.size)
|
||||
else:
|
||||
self.assertNotEqual(out.size, im.size)
|
||||
for mode in "1", "P", "L", "RGB", "I", "F":
|
||||
|
||||
for mode in ("1", "P", "L", "RGB", "I", "F"):
|
||||
im = hopper(mode)
|
||||
rotate(im, mode, 45)
|
||||
for angle in 0, 90, 180, 270:
|
||||
|
||||
for angle in (0, 90, 180, 270):
|
||||
im = Image.open('Tests/images/test-card.png')
|
||||
rotate(im, im.mode, angle)
|
||||
|
||||
for angle in (0, 45, 90, 180, 270):
|
||||
im = Image.new('RGB',(0,0))
|
||||
rotate(im, im.mode, angle)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user