Skip to content

Commit 74a0f02

Browse files
Add warning test
1 parent 10ce7b6 commit 74a0f02

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,3 +2910,13 @@ def test_elemenwise_outer_scalar():
29102910
expected = dpnp.add.outer(x, y)
29112911
result = dpnp.add.outer(x, s)
29122912
assert dpnp.allclose(result, expected)
2913+
2914+
2915+
@pytest.mark.parametrize("func", ["minimum", "maximum"])
2916+
def test_minimum_maximum_out_deprecated(func):
2917+
a = dpnp.array([1, 3, 2])
2918+
b = dpnp.array([2, 2, 2])
2919+
out = dpnp.empty_like(a)
2920+
2921+
with pytest.warns(DeprecationWarning, match="deprecated"):
2922+
_ = getattr(dpnp, func)(a, b, out)

0 commit comments

Comments
 (0)