Skip to content

Commit 5158082

Browse files
committed
More tests
1 parent ff03d1c commit 5158082

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_dask.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ def test_asarray_no_compute(no_compute):
3636
xp.asarray(a, copy=True)
3737
xp.asarray(a, copy=True, dtype=np.int16)
3838
xp.asarray(a, copy=True, dtype=a.dtype)
39+
xp.asarray(a, copy=False)
40+
xp.asarray(a, copy=False, dtype=a.dtype)
41+
42+
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)
3949

4050

4151
def test_clip_no_compute(no_compute):

0 commit comments

Comments
 (0)