We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1659a69 commit 980daf0Copy full SHA for 980daf0
tests/test_dask.py
@@ -40,6 +40,14 @@ def test_asarray_no_compute(no_compute):
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)
49
+
50
51
def test_clip_no_compute(no_compute):
52
a = da.arange(10)
53
xp = array_namespace(a) # wrap in array_api_compat.dask.array
0 commit comments