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"