diff --git a/dpnp/tests/test_manipulation.py b/dpnp/tests/test_manipulation.py index 82e4640830a..8ddba08dbb9 100644 --- a/dpnp/tests/test_manipulation.py +++ b/dpnp/tests/test_manipulation.py @@ -1541,7 +1541,7 @@ def test_multiple_axes(self, shape, axis, trim): result = dpnp.trim_zeros(ia, axis=axis, trim=trim) expected = numpy.trim_zeros(a, axis=axis, trim=trim) - assert_array_equal(result, expected) + assert_dtype_allclose(result, expected) # NOTE: numpy behaves differently on 0-sized input array # and returns the input array with reduced shapes