From e5a068de53c6b44aa8be6c5145da1a727b38202d Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 16 Sep 2014 17:41:03 +0300 Subject: [PATCH] Yet another Python 3 fix --- Tests/test_imagegrab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index ec4572adb..ea6b499b2 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -39,8 +39,7 @@ class TestImageGrabImport(PillowTestCase): self.assertIsNone(exception, None) else: self.assertIsInstance(exception, ImportError) - self.assertEqual(exception.message, - "ImageGrab is Windows only") + self.assertEqual(str(exception), "ImageGrab is Windows only") if __name__ == '__main__':