Skip to content

Commit 9cb65be

Browse files
author
Vahid Tavanashad
committed
add an assert
1 parent 3429905 commit 9cb65be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,6 +2286,7 @@ def test_out_usm_ndarray(self, func, dt):
22862286

22872287
expected = getattr(numpy, func)(a, out=out)
22882288
result = getattr(dpnp, func)(ia, out=usm_out)
2289+
assert result.get_array() is usm_out
22892290
assert_array_equal(result, expected)
22902291

22912292
@pytest.mark.parametrize("xp", [numpy, dpnp])

0 commit comments

Comments
 (0)