This commit is contained in:
Hugo 2017-12-19 15:12:02 +02:00
parent c8eebc1dc7
commit 11a2026f12

View File

@ -22,7 +22,7 @@ class TestImage(PillowTestCase):
'BGR;15', 'BGR;16', 'BGR;24', 'BGR;32'
]:
with self.assertRaises(ValueError) as e:
Image.new(mode, (1, 1));
Image.new(mode, (1, 1))
self.assertEqual(str(e.exception), 'unrecognized image mode')
def test_sanity(self):
@ -277,7 +277,8 @@ class TestImage(PillowTestCase):
self.assertRaises(ValueError,
source.alpha_composite, over, "invalid source")
self.assertRaises(ValueError,
source.alpha_composite, over, (0, 0), "invalid destination")
source.alpha_composite, over, (0, 0),
"invalid destination")
self.assertRaises(ValueError,
source.alpha_composite, over, (0))
self.assertRaises(ValueError,