Skip to content

Commit

Permalink
Update tests/test_common.py
Browse files Browse the repository at this point in the history
Co-authored-by: crusaderky <[email protected]>
  • Loading branch information
ev-br and crusaderky authored Dec 6, 2024
1 parent bce5dcc commit ce4e55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def test_asarray_copy(library):
a[0] = 0.0
if library in ('cupy', 'dask.array'):
# A copy is required for libraries where the default device is not CPU
# dask made a breaking change in 2024.12: copy=None copies
# dask changed behaviour of copy=None in 2024.12 to copy;
# this wrapper ensures the same behaviour in older versions too.
# https://github.com/dask/dask/pull/11524/
assert all(b[0] == 1.0)
else:
Expand Down

0 comments on commit ce4e55d

Please sign in to comment.