mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Proper skipping of tests when lcms2 is not installed
This commit is contained in:
parent
6e79cc00ff
commit
0b0ec8b40f
|
@ -18,6 +18,8 @@ class TestImageCms(PillowTestCase):
|
|||
def setUp(self):
|
||||
try:
|
||||
from PIL import ImageCms
|
||||
# need to hit getattr to trigger the delayed import error
|
||||
ImageCms.core.profile_open
|
||||
except ImportError as v:
|
||||
self.skipTest(v)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user