From 864086099822affd71c2fed2ff109058f4992974 Mon Sep 17 00:00:00 2001 From: John Evans Date: Fri, 31 May 2013 08:25:04 -0400 Subject: [PATCH] Fixes issue#9. Just needed to flush the file stream. --- glymur/test/test_jp2k.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/glymur/test/test_jp2k.py b/glymur/test/test_jp2k.py index 2d372a7..64355fa 100644 --- a/glymur/test/test_jp2k.py +++ b/glymur/test/test_jp2k.py @@ -537,10 +537,9 @@ class TestJp2k(unittest.TestCase): # Now append the codestream. tfile2.write(codestream) + tfile2.flush() - with warnings.catch_warnings(): - warnings.simplefilter("ignore") - jasoc = Jp2k(tfile2.name) + jasoc = Jp2k(tfile2.name) self.assertEqual(jasoc.box[3].id, 'asoc') self.assertEqual(jasoc.box[3].box[0].id, 'lbl ') self.assertEqual(jasoc.box[3].box[0].label, 'label')