mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-06 12:53:12 +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):
|
def setUp(self):
|
||||||
try:
|
try:
|
||||||
from PIL import ImageCms
|
from PIL import ImageCms
|
||||||
|
# need to hit getattr to trigger the delayed import error
|
||||||
|
ImageCms.core.profile_open
|
||||||
except ImportError as v:
|
except ImportError as v:
|
||||||
self.skipTest(v)
|
self.skipTest(v)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user