Skip to content

Commit 8b47939

Browse files
committed
Use assert_dtype_allclose in test_logspace_list_input
1 parent 5649b06 commit 8b47939

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/tests/test_arraycreation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,9 @@ def test_logspace_axis(axis):
924924

925925

926926
def test_logspace_list_input():
927-
res_np = numpy.logspace([0], [2], base=[5])
928-
res_dp = dpnp.logspace([0], [2], base=[5])
929-
assert_allclose(res_dp, res_np)
927+
expected = numpy.logspace([0], [2], base=[5])
928+
result = dpnp.logspace([0], [2], base=[5])
929+
assert_dtype_allclose(result, expected)
930930

931931

932932
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)