Skip to content

Commit

Permalink
test_dtype: fix a numpy warning
Browse files Browse the repository at this point in the history
DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`.
  • Loading branch information
ArchangeGabriel authored Jul 26, 2021
1 parent b578203 commit 7b1a0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5py/tests/test_dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 7b1a0b2

Please sign in to comment.