Skip to content

Commit 95ab60e

Browse files
committed
Update test_copy_orders aligning dtypes of resulting arrays from numpy and dpnp
1 parent 3f78067 commit 95ab60e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)