From c9df017ffda017fabb9e696041bed760b0d7eba1 Mon Sep 17 00:00:00 2001 From: John Evans Date: Sun, 10 Aug 2014 14:57:17 -0400 Subject: [PATCH] broken3_jp2_dump test filtered out on 32-bit platforms, not just 'linux' The test requires over 1GB of memory, problematic on puny 32-bit machines. --- glymur/test/test_opj_suite_warn.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/glymur/test/test_opj_suite_warn.py b/glymur/test/test_opj_suite_warn.py index 15d4475..c39b810 100644 --- a/glymur/test/test_opj_suite_warn.py +++ b/glymur/test/test_opj_suite_warn.py @@ -186,8 +186,14 @@ class TestSuiteDumpWarnings(unittest.TestCase): self.assertEqual(jp2.box[-1].main_header.segment[-1].marker_id, 'QCC') - @unittest.skipIf(sys.platform.startswith('linux'), 'Failing on linux') + @unittest.skipIf(sys.maxsize < 2**32, 'Do not run on 32-bit platforms') def test_NR_broken3_jp2_dump(self): + """ + NR_broken3_jp2_dump + + The file in question here has a colr box with an erroneous box + length of over 1GB. Don't run it on 32-bit platforms. + """ jfile = opj_data_file('input/nonregression/broken3.jp2') with warnings.catch_warnings(record=True) as w: warnings.simplefilter('ignore')