fix tab error
This commit is contained in:
parent
e1846c31e0
commit
5e8a66c38e
1 changed files with 2 additions and 3 deletions
|
|
@ -45,10 +45,9 @@ class TestCallbacks(unittest.TestCase):
|
|||
with self.assertWarns(UserWarning):
|
||||
tiledata = j.read(tile=0)
|
||||
with tempfile.NamedTemporaryFile(suffix='.jp2') as tfile:
|
||||
j = glymur.Jp2k(tfile.name, 'wb')
|
||||
with patch('sys.stdout', new=StringIO()) as fake_out:
|
||||
j.write(tiledata, verbose=True)
|
||||
actual = fake_out.getvalue().strip()
|
||||
j = glymur.Jp2k(tfile.name, data=tiledata, verbose=True)
|
||||
actual = fake_out.getvalue().strip()
|
||||
expected = '[INFO] tile number 1 / 1'
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue