Skip to content

Commit

Permalink
catch up with numpy type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dham authored and connorjward committed May 10, 2021
1 parent d0cc348 commit 121c2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 121c2a6

Please sign in to comment.