Skip to content

Commit 8194a8a

Browse files
authored
Fix numpy 2 deprecation warning (#1223)
1 parent b779d08 commit 8194a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_io_hdf5_h5tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ def test_link(self):
18471847
self.assertTrue(self.foo2.my_data.valid) # test valid
18481848
self.assertEqual(len(self.foo2.my_data), 5) # test len
18491849
self.assertEqual(self.foo2.my_data.shape, (5,)) # test getattr with shape
1850-
self.assertTrue(np.array_equal(np.array(self.foo2.my_data), [1, 2, 3, 4, 5])) # test array conversion
1850+
np.testing.assert_array_equal(self.foo2.my_data, [1, 2, 3, 4, 5]) # test array conversion
18511851

18521852
# test loop through iterable
18531853
match = [1, 2, 3, 4, 5]

0 commit comments

Comments
 (0)