From 300a3f0e70c5399e8401f1770cc5c35d99e18789 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 16 Sep 2014 16:44:51 +0300 Subject: [PATCH] Fix for Python 3 --- 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 dd6f50fb9..e1c35ac4e 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -1,6 +1,5 @@ from helper import unittest, PillowTestCase -import exceptions import sys try: @@ -39,7 +38,7 @@ class TestImageGrabImport(PillowTestCase): if sys.platform == 'win32': self.assertIsNone(exception, None) else: - self.assertIsInstance(exception, exceptions.ImportError) + self.assertIsInstance(exception, ImportError) self.assertEqual(exception.message, "ImageGrab is Windows only")