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")