From dfb9b215c153bd7139c4ade922b6fa7da3e6c2e1 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:06:29 -0700 Subject: [PATCH] update compound dtype test --- tests/unit/test_io_hdf5_h5tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_io_hdf5_h5tools.py b/tests/unit/test_io_hdf5_h5tools.py index ea51f86d7..b004a6c54 100644 --- a/tests/unit/test_io_hdf5_h5tools.py +++ b/tests/unit/test_io_hdf5_h5tools.py @@ -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),