Fix for Python 3

This commit is contained in:
Hugo 2014-09-16 16:44:51 +03:00
parent 99887a5467
commit 300a3f0e70

View File

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