Skip to content

Commit

Permalink
Update test_io_hdf5_h5tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Dec 12, 2023
1 parent 0c5ccb0 commit d6c60d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_io_hdf5_h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3694,7 +3694,7 @@ def __init__(self, **kwargs):
def test_set_data_io(self):
self.obj.set_data_io("data1", H5DataIO, data_io_kwargs=dict(chunks=True))
assert isinstance(self.obj.data1, H5DataIO)
assert self.obj.data1.chunks
assert self.obj.data1.io_settings["chunks"]

def test_fail_set_data_io(self):
"""Attempt to set a DataIO for a dataset that is missing."""
Expand All @@ -3710,7 +3710,7 @@ def test_set_data_io_old_api(self):
with self.assertWarnsWith(DeprecationWarning, msg):
self.obj.set_data_io("data1", H5DataIO, chunks=True)
self.assertIsInstance(self.obj.data1, H5DataIO)
self.assertTrue(self.obj.data1.chunks)
self.assertTrue(self.obj.data1.io_settings["chunks"])


class TestDataSetDataIO(TestCase):
Expand All @@ -3724,4 +3724,4 @@ class MyData(Data):
def test_set_data_io(self):
self.data.set_data_io(H5DataIO, dict(chunks=True))
assert isinstance(self.data.data, H5DataIO)
assert self.data.data.chunks
assert self.data.data.io_settings["chunks"]

0 comments on commit d6c60d9

Please sign in to comment.