mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Fix for Python 3
This commit is contained in:
parent
99887a5467
commit
300a3f0e70
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user