Skip to content

Commit

Permalink
Update test for updated hdf5plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Nov 27, 2024
1 parent ed2f1a6 commit 82930a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/test_zarrdataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_hdf5_to_zarr_filters_scaleoffset(self):
msg = "/test_dset HDF5 scaleoffset filter ignored in Zarr"
with self.assertWarnsWith(UserWarning, msg):
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dset)
self.assertEqual(len(filters), 0)
self.assertEqual(len(filters), 0)
# Close the HDF5 file
h5file.close()

Expand All @@ -60,7 +60,7 @@ def test_hdf5_to_zarr_filters_lzf(self):
msg = "/test_dset HDF5 szip or lzf compression ignored in Zarr"
with self.assertWarnsWith(UserWarning, msg):
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dset)
self.assertEqual(len(filters), 0)
self.assertEqual(len(filters), 0)
# Close the HDF5 file
h5file.close()

Expand All @@ -76,7 +76,7 @@ def test_hdf5_to_zarr_filters_lz4(self):
msg = "/test_dset HDF5 lz4 compression ignored in Zarr"
with self.assertWarnsWith(UserWarning, msg):
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dset)
self.assertEqual(len(filters), 0)
self.assertEqual(len(filters), 0)
# Close the HDF5 file
h5file.close()

Expand All @@ -92,7 +92,7 @@ def test_hdf5_to_zarr_filters_bitshuffle(self):
msg = "/test_dset HDF5 bitshuffle compression ignored in Zarr"
with self.assertWarnsWith(UserWarning, msg):
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dset)
self.assertEqual(len(filters), 0)
self.assertEqual(len(filters), 0)
# Close the HDF5 file
h5file.close()

Expand All @@ -109,10 +109,10 @@ def test_hdf5_to_zarr_filters_other_unsupported(self):
data=[1, 2, 3, 4, 5],
**hdf5plugin.FciDecomp())
# test that we warn due to the FciDecomp
msg = "/test_fcidecomp HDF5 filter id 32018 with properties None ignored in Zarr."
msg = r"/test_fcidecomp HDF5 filter id 32018 with properties .* ignored in Zarr."
with self.assertWarnsWith(UserWarning, msg):
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dset_FciDecomp)
self.assertEqual(len(filters), 0)
self.assertEqual(len(filters), 0)
# Close the HDF5 file
h5file.close()

Expand Down

0 comments on commit 82930a1

Please sign in to comment.