Added printing of lxml version. #192

This commit is contained in:
John Evans 2014-03-17 19:57:15 -04:00
commit 74a960ed84
2 changed files with 13 additions and 1 deletions

View file

@ -50,6 +50,14 @@ class TestPrinting(unittest.TestCase):
def tearDown(self):
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.")
def test_unknown_superbox(self):
"""Verify that we can handle an unknown superbox."""

View file

@ -9,9 +9,11 @@ License: MIT
"""
import sys
import numpy as np
from distutils.version import LooseVersion
import lxml.etree
import numpy as np
from .lib import openjpeg as opj
from .lib import openjp2 as opj2
@ -48,10 +50,12 @@ OPENJPEG {openjpeg}
Python {python}
sys.platform {platform}
sys.maxsize {maxsize}
lxml {elxml}
numpy {numpy}
""".format(glymur=version,
openjpeg=openjpeg_version,
python=sys.version,
platform=sys.platform,
maxsize=sys.maxsize,
elxml=lxml.etree.__version__,
numpy=np.__version__)