Skip to content

Commit 35d88b8

Browse files
authored
TestTrimZeros::test_multiple_axes to pass on a device without fp64 (#2767)
The PR fixes the issue with failing `TestTrimZeros::test_multiple_axes` test when running on a device without fp64 support.
1 parent 4bc43a9 commit 35d88b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpnp/tests/test_manipulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ def test_multiple_axes(self, shape, axis, trim):
15411541

15421542
result = dpnp.trim_zeros(ia, axis=axis, trim=trim)
15431543
expected = numpy.trim_zeros(a, axis=axis, trim=trim)
1544-
assert_array_equal(result, expected)
1544+
assert_dtype_allclose(result, expected)
15451545

15461546
# NOTE: numpy behaves differently on 0-sized input array
15471547
# and returns the input array with reduced shapes

0 commit comments

Comments
 (0)