From 7994d82f09c8ea8d9fc3fcef39e89824a6e981d9 Mon Sep 17 00:00:00 2001 From: jevans Date: Sun, 3 Aug 2014 21:57:09 -0400 Subject: [PATCH] Commented out test on 1.5.x and 2.0.0. Closes #240. The test was test_NR_DEC_issue188_beach_64bitsbox_jp2_41_decode. It was not introduced until the 2.1.x series and the fix was backported to 2.0.1. --- glymur/test/test_opj_suite_warn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glymur/test/test_opj_suite_warn.py b/glymur/test/test_opj_suite_warn.py index c83f938..6f15e7e 100644 --- a/glymur/test/test_opj_suite_warn.py +++ b/glymur/test/test_opj_suite_warn.py @@ -352,6 +352,8 @@ class TestSuiteDumpWarnings(unittest.TestCase): warnings.simplefilter('ignore') Jp2k(jfile) + @unittest.skipIf(re.match("1.5|2.0.0", glymur.version.openjpeg_version), + "Test not passing on 1.5.x, not introduced until 2.x") def test_NR_DEC_issue188_beach_64bitsbox_jp2_41_decode(self): # Has an 'XML ' box instead of 'xml '. Yes that is pedantic, but it # really does deserve a warning. @@ -359,7 +361,8 @@ class TestSuiteDumpWarnings(unittest.TestCase): jfile = opj_data_file(relpath) with warnings.catch_warnings(record=True) as w: warnings.simplefilter('ignore') - Jp2k(jfile).read() + j = Jp2k(jfile) + d = j.read() if __name__ == "__main__":