Skip to content

Commit 2442a92

Browse files
committed
BUG: dask.array: asarray(..., copy=None) copies in dask==2024.12
1 parent d7b4111 commit 2442a92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ def test_asarray_copy(library):
204204
b = asarray(a, copy=None)
205205
assert is_lib_func(b)
206206
a[0] = 0.0
207-
if library == 'cupy':
207+
if library in ('cupy', 'dask.array'):
208208
# A copy is required for libraries where the default device is not CPU
209+
# dask made a breaking change in 2024.12: copy=None copies
210+
# https://github.com/dask/dask/pull/11524/
209211
assert all(b[0] == 1.0)
210212
else:
211213
assert all(b[0] == 0.0)

0 commit comments

Comments
 (0)