Skip to content

Commit 5db6713

Browse files
committed
Fix warning in test_ufunc_where_no_out
With numpy dev, this test errors with a warning: ``` > expected = np.add(left, right, where=where) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E UserWarning: 'where' used without 'out', expect unitialized memory in output. If this is intentional, use out=None. ```
1 parent 4736a38 commit 5db6713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dask/array/tests/test_ufunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def test_ufunc_where_no_out():
557557
d_left = da.from_array(left, chunks=2)
558558
d_right = da.from_array(right, chunks=2)
559559

560-
expected = np.add(left, right, where=where)
560+
expected = np.add(left, right, where=where, out=None)
561561
result = da.add(d_left, d_right, where=d_where)
562562

563563
# If no `out` is provided, numpy leaves elements that don't match `where`

0 commit comments

Comments
 (0)