From 121c2a6fc796ffdc6573bbc5ad9a7c8b6cd0169e Mon Sep 17 00:00:00 2001 From: David Ham Date: Wed, 21 Apr 2021 13:45:58 +0100 Subject: [PATCH] catch up with numpy type changes --- test/unit/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/test_api.py b/test/unit/test_api.py index 33309f9c7b..5c3f85aa1c 100644 --- a/test/unit/test_api.py +++ b/test/unit/test_api.py @@ -785,11 +785,11 @@ def test_dat_on_set_builds_dim_one_dataset(self, set): assert d.dataset.cdim == 1 def test_dat_dtype_type(self, dset): - "The type of a Dat's dtype property should by numpy.dtype." + "The type of a Dat's dtype property should be a numpy.dtype." d = op2.Dat(dset) - assert type(d.dtype) == np.dtype + assert isinstance(d.dtype, np.dtype) d = op2.Dat(dset, [1.0] * dset.size * dset.cdim) - assert type(d.dtype) == np.dtype + assert isinstance(d.dtype, np.dtype) def test_dat_split(self, dat): "Splitting a Dat should yield a tuple with self"