fix tests on python 3

This commit is contained in:
Alexander 2017-08-06 01:31:51 +03:00
parent 0990dadd6d
commit 0649da02c6

View File

@ -24,7 +24,7 @@ class TestImage(PillowTestCase):
]:
with self.assertRaises(ValueError) as e:
Image.new(mode, (1, 1));
self.assertEqual(e.exception.message, 'unrecognized image mode')
self.assertEqual(str(e.exception), 'unrecognized image mode')
def test_sanity(self):