Merge branch 'issue192' into devel
This commit is contained in:
commit
0c32b403b0
2 changed files with 13 additions and 1 deletions
|
|
@ -50,6 +50,14 @@ class TestPrinting(unittest.TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def test_version_info(self):
|
||||||
|
"""Should be able to print(glymur.version.info)"""
|
||||||
|
with patch('sys.stdout', new=StringIO()) as fake_out:
|
||||||
|
print(glymur.version.info)
|
||||||
|
actual = fake_out.getvalue().strip()
|
||||||
|
|
||||||
|
self.assertTrue(True)
|
||||||
|
|
||||||
@unittest.skipIf(sys.hexversion < 0x03000000, "Needs unittest in 3.x.")
|
@unittest.skipIf(sys.hexversion < 0x03000000, "Needs unittest in 3.x.")
|
||||||
def test_unknown_superbox(self):
|
def test_unknown_superbox(self):
|
||||||
"""Verify that we can handle an unknown superbox."""
|
"""Verify that we can handle an unknown superbox."""
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,11 @@ License: MIT
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import numpy as np
|
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
|
|
||||||
|
import lxml.etree
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
from .lib import openjpeg as opj
|
from .lib import openjpeg as opj
|
||||||
from .lib import openjp2 as opj2
|
from .lib import openjp2 as opj2
|
||||||
|
|
||||||
|
|
@ -48,10 +50,12 @@ OPENJPEG {openjpeg}
|
||||||
Python {python}
|
Python {python}
|
||||||
sys.platform {platform}
|
sys.platform {platform}
|
||||||
sys.maxsize {maxsize}
|
sys.maxsize {maxsize}
|
||||||
|
lxml {elxml}
|
||||||
numpy {numpy}
|
numpy {numpy}
|
||||||
""".format(glymur=version,
|
""".format(glymur=version,
|
||||||
openjpeg=openjpeg_version,
|
openjpeg=openjpeg_version,
|
||||||
python=sys.version,
|
python=sys.version,
|
||||||
platform=sys.platform,
|
platform=sys.platform,
|
||||||
maxsize=sys.maxsize,
|
maxsize=sys.maxsize,
|
||||||
|
elxml=lxml.etree.__version__,
|
||||||
numpy=np.__version__)
|
numpy=np.__version__)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue