Skip to content

Commit

Permalink
update compound dtype test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Aug 19, 2024
1 parent a8e5ec7 commit dfb9b21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_io_hdf5_h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def test_write_dataset_list_compound_datatype(self):
)
self.io.write_dataset(self.f, dset_builder)
dset = self.f['test_dataset']
self.assertTrue(np.all(dset[:] == a))
for field in a.dtype.names:
self.assertTrue(np.all(dset[field][:] == a[field]))

def test_write_dataset_list_compress_gzip(self):
a = H5DataIO(np.arange(30).reshape(5, 2, 3),
Expand Down

0 comments on commit dfb9b21

Please sign in to comment.