From 0b0ec8b40faba37bbd937391aaa0cb1ef294ce9f Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 19 Jun 2014 06:06:23 -0700 Subject: [PATCH] Proper skipping of tests when lcms2 is not installed --- Tests/test_imagecms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index d4432d9be..f3f0791e5 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -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)