mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44: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
|
from helper import unittest, PillowTestCase
|
||||||
|
|
||||||
import exceptions
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -39,7 +38,7 @@ class TestImageGrabImport(PillowTestCase):
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
self.assertIsNone(exception, None)
|
self.assertIsNone(exception, None)
|
||||||
else:
|
else:
|
||||||
self.assertIsInstance(exception, exceptions.ImportError)
|
self.assertIsInstance(exception, ImportError)
|
||||||
self.assertEqual(exception.message,
|
self.assertEqual(exception.message,
|
||||||
"ImageGrab is Windows only")
|
"ImageGrab is Windows only")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user