Skip to content

Commit 980daf0

Browse files
committed
More tests
1 parent 1659a69 commit 980daf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_dask.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ def test_asarray_no_compute(no_compute):
4040
xp.asarray(a, copy=False, dtype=a.dtype)
4141

4242

43+
@pytest.mark.parametrize("copy", [True, False])
44+
def test_astype_no_compute(no_compute, copy):
45+
a = da.arange(10)
46+
xp = array_namespace(a) # wrap in array_api_compat.dask.array
47+
xp.astype(a, np.int16, copy=copy)
48+
xp.astype(a, a.dtype, copy=copy)
49+
50+
4351
def test_clip_no_compute(no_compute):
4452
a = da.arange(10)
4553
xp = array_namespace(a) # wrap in array_api_compat.dask.array

0 commit comments

Comments
 (0)