Skip to content

Commit

Permalink
Fix numpy 2 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Dec 19, 2024
1 parent f6dc806 commit 5315513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_io_hdf5_h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ def test_link(self):
self.assertTrue(self.foo2.my_data.valid) # test valid
self.assertEqual(len(self.foo2.my_data), 5) # test len
self.assertEqual(self.foo2.my_data.shape, (5,)) # test getattr with shape
self.assertTrue(np.array_equal(np.array(self.foo2.my_data), [1, 2, 3, 4, 5])) # test array conversion
np.testing.assert_array_equal(self.foo2.my_data, [1, 2, 3, 4, 5]) # test array conversion

# test loop through iterable
match = [1, 2, 3, 4, 5]
Expand Down

0 comments on commit 5315513

Please sign in to comment.