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 ff03d1c commit 5158082Copy full SHA for 5158082
tests/test_dask.py
@@ -36,6 +36,16 @@ def test_asarray_no_compute(no_compute):
36
xp.asarray(a, copy=True)
37
xp.asarray(a, copy=True, dtype=np.int16)
38
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)
49
50
51
def test_clip_no_compute(no_compute):
0 commit comments