Skip to content

Commit 18e048d

Browse files
committed
use assert_allclose instead of assert
1 parent 5962785 commit 18e048d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_ndarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def test_scalar_type_casting(func, shape, dtype):
398398
def test_scalar_type_casting_by_method(method, shape, dtype):
399399
a = numpy.full(shape, 4.7, dtype=dtype)
400400
ia = dpnp.full(shape, 4.7, dtype=dtype)
401-
assert getattr(a, method)() == getattr(ia, method)()
401+
assert_allclose(getattr(a, method)(), getattr(ia, method)(), rtol=1e-06)
402402

403403

404404
@pytest.mark.parametrize("shape", [(1,), (1, 1), (1, 1, 1)])

0 commit comments

Comments
 (0)