From 0b16ca16cb76c3ffa1d25a4f190289290505ef9b Mon Sep 17 00:00:00 2001 From: jevans Date: Sat, 26 Oct 2013 22:16:01 -0400 Subject: [PATCH] Regexp tests can only run on 2.7 and 3.3. #133 --- glymur/test/test_jp2box.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/glymur/test/test_jp2box.py b/glymur/test/test_jp2box.py index 117d52b..94c3f73 100644 --- a/glymur/test/test_jp2box.py +++ b/glymur/test/test_jp2box.py @@ -887,15 +887,21 @@ class TestRepr(unittest.TestCase): s = repr(box) self.assertTrue(True) + @unittest.skipIf(sys.hexversion < 0x02070000, "Requires 2.7+") def test_xml_box(self): """Verify xml box repr.""" elt = ET.fromstring('0') tree = ET.ElementTree(elt) box = glymur.jp2box.XMLBox(xml=tree) - regexp = "glymur.jp2box.XMLBox\(xml=