Skip to content

Commit 1c70c46

Browse files
author
Vahid Tavanashad
committed
fix raised error type
1 parent f38c749 commit 1c70c46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,9 +2264,8 @@ def test_invalid_dtype(self, func, xp, dt_out):
22642264
# NumPy allows "same_kind" casting, dpnp does not
22652265
assert_raises(ValueError, getattr(dpnp, func), a, out=out)
22662266
else:
2267-
numpy_error = numpy._core._exceptions._UFuncOutputCastingError
22682267
assert_raises(
2269-
(ValueError, numpy_error), getattr(xp, func), a, out=out
2268+
(ValueError, TypeError), getattr(xp, func), a, out=out
22702269
)
22712270

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

0 commit comments

Comments
 (0)