From b614f4818f6c0c4a100ce2b0032ae67e9583e77d Mon Sep 17 00:00:00 2001 From: John Evans Date: Fri, 14 Mar 2014 10:39:51 -0400 Subject: [PATCH] Added proper unittest.skipIf when skimage.io plugin freeimage not found. #190 --- glymur/test/test_opj_suite_write.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glymur/test/test_opj_suite_write.py b/glymur/test/test_opj_suite_write.py index 1db11c4..8a757aa 100644 --- a/glymur/test/test_opj_suite_write.py +++ b/glymur/test/test_opj_suite_write.py @@ -223,6 +223,8 @@ class TestSuiteWriteCinema(unittest.TestCase): self.check_cinema2k_codestream(codestream, (1998, 1080)) +@unittest.skipIf(not _HAS_SKIMAGE_FREEIMAGE_SUPPORT, + "Cannot read input image without scikit-image/freeimage") @unittest.skipIf(os.name == "nt", "Temporary file issue on window.") @unittest.skipIf(re.match(r"""2\.0""", glymur.version.openjpeg_version), "Functionality implemented for 2.1")