Proper skipping of tests when lcms2 is not installed

This commit is contained in:
wiredfool 2014-06-19 06:06:23 -07:00
parent 6e79cc00ff
commit 0b0ec8b40f

View File

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