From 65d9e36c31c39050abd41ff857140b0956d4168d Mon Sep 17 00:00:00 2001 From: John Evans Date: Sun, 10 Aug 2014 12:03:45 -0400 Subject: [PATCH] Some testing on windows. --- docs/source/roadmap.rst | 8 ++++++++ glymur/test/test_jp2box.py | 10 ++++++---- glymur/test/test_jp2box_uuid.py | 2 ++ glymur/test/test_jp2k.py | 2 ++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/source/roadmap.rst b/docs/source/roadmap.rst index 6651587..5d636a4 100644 --- a/docs/source/roadmap.rst +++ b/docs/source/roadmap.rst @@ -1,3 +1,11 @@ +------------ +Known Issues +------------ + + * Creating a Jp2 file with the irreversible option does not work + on windows. + * Eval-ing a py:meth`repr` string does not work on windows. + ------- Roadmap ------- diff --git a/glymur/test/test_jp2box.py b/glymur/test/test_jp2box.py index da5fea1..e0f12e2 100644 --- a/glymur/test/test_jp2box.py +++ b/glymur/test/test_jp2box.py @@ -572,6 +572,8 @@ class TestPaletteBox(unittest.TestCase): with self.assertRaises(IOError): pclr.write(tfile) + +@unittest.skipIf(os.name == "nt", "Temporary file issue on window.") class TestAppend(unittest.TestCase): """Tests for append method.""" @@ -1292,8 +1294,8 @@ class TestRepr(unittest.TestCase): box = glymur.jp2box.XMLBox(xml=tree) regexp = r"""glymur.jp2box.XMLBox""" - regexp += r"""\(xml=\)""" + regexp += r"""[(]xml=[)]""" if sys.hexversion < 0x03000000: self.assertRegexpMatches(repr(box), regexp) @@ -1357,8 +1359,8 @@ class TestRepr(unittest.TestCase): # Difficult to eval(repr()) this, so just match the general pattern. regexp = "glymur.jp2box.ContiguousCodeStreamBox" - regexp += "\(main_header=