From 0649da02c61058d34b9bb72cb1f8cd6d28162dae Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 6 Aug 2017 01:31:51 +0300 Subject: [PATCH] fix tests on python 3 --- Tests/test_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index a83b917a0..dcfc28e4b 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -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):