Skip to content

Commit 0081f4c

Browse files
committed
Update test_copy_orders aligning dtypes of resulting arrays from numpy and dpnp
1 parent 0359ebd commit 0081f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/third_party/cupy/core_tests/test_elementwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_copy_orders(self, order):
6565
a = cupy.empty((2, 3, 4))
6666
b = cupy.copy(a, order)
6767

68-
a_cpu = numpy.empty((2, 3, 4))
68+
a_cpu = numpy.empty((2, 3, 4), dtype=a.dtype)
6969
b_cpu = numpy.copy(a_cpu, order)
7070

7171
assert b.strides == b_cpu.strides

0 commit comments

Comments
 (0)