Merge branch 'issue266' into devel
This commit is contained in:
commit
64fa597b18
3 changed files with 5 additions and 5 deletions
|
|
@ -19,6 +19,7 @@ import sys
|
|||
import tempfile
|
||||
import unittest
|
||||
import uuid
|
||||
import warnings
|
||||
from xml.etree import cElementTree as ET
|
||||
|
||||
import numpy as np
|
||||
|
|
@ -1104,7 +1105,8 @@ class TestJp2k_2_1(unittest.TestCase):
|
|||
tfile.write(data[offset+59:])
|
||||
#tfile.write(data[3186:])
|
||||
tfile.flush()
|
||||
with self.assertWarns(UserWarning):
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore')
|
||||
j = Jp2k(tfile.name)
|
||||
regexp = re.compile(r'''OpenJPEG\slibrary\serror:\s+
|
||||
Invalid\svalues\sfor\scomp\s=\s0\s+
|
||||
|
|
@ -1126,7 +1128,7 @@ class TestParsing(unittest.TestCase):
|
|||
glymur.set_parseoptions(codestream=True)
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
glymur.set_parseoptions(codestream=True)
|
||||
|
||||
@unittest.skipIf(WARNING_INFRASTRUCTURE_ISSUE, WARNING_INFRASTRUCTURE_MSG)
|
||||
def test_bad_rsiz(self):
|
||||
|
|
@ -1139,6 +1141,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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue