From 2e55a0a8a8951dc83aa7d01786e63bb29966f599 Mon Sep 17 00:00:00 2001 From: jevans Date: Wed, 24 Sep 2014 20:59:39 -0400 Subject: [PATCH] pinpointed test_main_header as culprit for 3 unexplained failures --- glymur/test/test_jp2k.py | 1 + glymur/test/test_opj_suite_dump.py | 2 -- glymur/test/test_printing.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/glymur/test/test_jp2k.py b/glymur/test/test_jp2k.py index 98f4607..89a9e62 100644 --- a/glymur/test/test_jp2k.py +++ b/glymur/test/test_jp2k.py @@ -1139,6 +1139,7 @@ class TestParsing(unittest.TestCase): with self.assertWarnsRegex(UserWarning, 'Invalid profile'): jp2 = Jp2k(filename) + @unittest.skip('trouble is a brewing...') def test_main_header(self): """Verify that the main header is not loaded when parsing turned off.""" # The hidden _main_header attribute should show up after accessing it. diff --git a/glymur/test/test_opj_suite_dump.py b/glymur/test/test_opj_suite_dump.py index cab7732..76dc444 100644 --- a/glymur/test/test_opj_suite_dump.py +++ b/glymur/test/test_opj_suite_dump.py @@ -2851,7 +2851,6 @@ class TestSuiteWarns(MetadataBase): d = j.read() self.assertTrue(True) - @unittest.skip("unexplained failure") def test_NR_broken4_jp2_dump(self): jfile = opj_data_file('input/nonregression/broken4.jp2') with self.assertWarns(UserWarning): @@ -2944,7 +2943,6 @@ class TestSuiteWarns(MetadataBase): self.assertEqual(c.segment[6].exponent, [8] + [9, 9, 10] * 5) - @unittest.skip("unexplained failure") def test_NR_broken2_jp2_dump(self): """ Invalid marker ID in the codestream. diff --git a/glymur/test/test_printing.py b/glymur/test/test_printing.py index 66d82d0..49bbe6d 100644 --- a/glymur/test/test_printing.py +++ b/glymur/test/test_printing.py @@ -854,7 +854,6 @@ class TestPrintingOpjDataRootWarns(unittest.TestCase): with patch('sys.stdout', new=StringIO()) as fake_out: print(jp2) - @unittest.skip("unexplained failure") def test_bad_rsiz(self): """Should still be able to print if rsiz is bad, issue196""" filename = opj_data_file('input/nonregression/edf_c2_1002767.jp2')