Skip to content

Commit

Permalink
fix bad kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Jun 15, 2021
1 parent 86c5f19 commit baf368a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dask/array/tests/test_ufunc.py
Expand Up @@ -478,14 +478,14 @@ def test_divmod():

@pytest.mark.parametrize("dt", ["float64", "float32", "int32", "int64"])
def test_dtype_kwarg(dt):
x1 = da.asarray([1, 2, 3], dtype=np.int64)
y1 = da.asarray([4, 5, 6], dtype=np.int64)
x1 = da.asarray([1, 2, 3])
y1 = da.asarray([4, 5, 6])
z1 = np.add(x1, y1, dtype=np.dtype(dt))
assert z1.dtype == np.dtype(dt)
assert z1.compute().dtype == z1.dtype

x2 = da.asarray([1, 2, 3], dtype=np.int64)
y2 = da.asarray([4, 5, 6], dtype=np.int64)
x2 = da.asarray([1, 2, 3])
y2 = da.asarray([4, 5, 6])
z2 = da.add(x2, y2, dtype=np.dtype(dt))
assert z2.dtype == np.dtype(dt)
assert z2.compute().dtype == z2.dtype
Expand Down

0 comments on commit baf368a

Please sign in to comment.