From 7b1a0b2749be478c00de9c029458ddcab0534165 Mon Sep 17 00:00:00 2001 From: Bruno Pagani Date: Mon, 26 Jul 2021 16:49:59 +0000 Subject: [PATCH] test_dtype: fix a numpy warning DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`. --- h5py/tests/test_dtype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5py/tests/test_dtype.py b/h5py/tests/test_dtype.py index c4aa0191d..7dac3581c 100644 --- a/h5py/tests/test_dtype.py +++ b/h5py/tests/test_dtype.py @@ -287,7 +287,7 @@ def test_out_of_order_offsets(self): self.assertArrayEqual(fd['data'], data) def test_float_round_tripping(self): - dtypes = set(f for f in np.typeDict.values() + dtypes = set(f for f in np.sctypeDict.values() if (np.issubdtype(f, np.floating) or np.issubdtype(f, np.complexfloating)))