Fixes issue#9. Just needed to flush the file stream.
This commit is contained in:
parent
e90df06391
commit
8640860998
1 changed files with 2 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue