From b29aaf3f1924f8b84326662ab659bcd4eb41ed8f Mon Sep 17 00:00:00 2001 From: jevans Date: Wed, 27 Aug 2014 20:49:59 -0400 Subject: [PATCH] Removed duplicated warning tests. Closes #250. --- glymur/test/test_glymur_warnings.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/glymur/test/test_glymur_warnings.py b/glymur/test/test_glymur_warnings.py index 622a8af..07adab7 100644 --- a/glymur/test/test_glymur_warnings.py +++ b/glymur/test/test_glymur_warnings.py @@ -130,29 +130,6 @@ class TestWarnings(unittest.TestCase): with self.assertWarnsRegex(UserWarning, regex): Jp2k(jfile) - def test_NR_broken4_jp2_dump(self): - """ - Has an invalid marker in the main header - """ - jfile = opj_data_file('input/nonregression/broken4.jp2') - regex = r'Invalid marker id encountered at byte \d+ in codestream' - with self.assertWarnsRegex(UserWarning, regex): - jp2 = Jp2k(jfile) - - @unittest.skipIf(sys.maxsize < 2**32, 'Do not run on 32-bit platforms') - def test_NR_broken3_jp2_dump(self): - """ - Has an impossibly large box length. - - 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') - regex = re.compile(r'''b'colr'\sbox\shas\sincorrect\sbox\slength\s - \(\d+\)''', re.VERBOSE) - with self.assertWarnsRegex(UserWarning, regex): - Jp2k(jfile) - def test_bad_rsiz(self): """Should warn if RSIZ is bad. Issue196""" filename = opj_data_file('input/nonregression/edf_c2_1002767.jp2')