Skip to content

Commit 48bc9bd

Browse files
committed
update tests
1 parent 75f1f97 commit 48bc9bd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_umath.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_invalid_dtype(self, func_params, dtype):
205205
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
206206
dp_out = dpnp.empty(10, dtype=dtype)
207207

208-
with pytest.raises(TypeError):
208+
with pytest.raises(ValueError):
209209
getattr(dpnp, func_name)(dp_array, out=dp_out)
210210

211211
@pytest.mark.parametrize(
@@ -250,7 +250,7 @@ def test_invalid_dtype(self, dtype):
250250
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
251251
dp_out = dpnp.empty(10, dtype=dtype)
252252

253-
with pytest.raises(TypeError):
253+
with pytest.raises(ValueError):
254254
dpnp.cbrt(dp_array, out=dp_out)
255255

256256
@pytest.mark.parametrize(
@@ -296,7 +296,7 @@ def test_invalid_dtype(self, dtype):
296296
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
297297
dp_out = dpnp.empty(10, dtype=dtype)
298298

299-
with pytest.raises(TypeError):
299+
with pytest.raises(ValueError):
300300
dpnp.rsqrt(dp_array, out=dp_out)
301301

302302
@pytest.mark.parametrize(
@@ -337,7 +337,7 @@ def test_invalid_dtype(self, dtype):
337337
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
338338
dp_out = dpnp.empty(10, dtype=dtype)
339339

340-
with pytest.raises(TypeError):
340+
with pytest.raises(ValueError):
341341
dpnp.square(dp_array, out=dp_out)
342342

343343
@pytest.mark.parametrize(
@@ -385,7 +385,7 @@ def test_invalid_dtype(self, dtype):
385385
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
386386
dp_out = dpnp.empty(10, dtype=dtype)
387387

388-
with pytest.raises(TypeError):
388+
with pytest.raises(ValueError):
389389
dpnp.arctan2(dp_array, dp_array, out=dp_out)
390390

391391
@pytest.mark.parametrize(
@@ -421,7 +421,7 @@ def test_invalid_dtype(self, dtype):
421421
dpnp_dtype = get_all_dtypes(no_complex=True, no_none=True)[-1]
422422
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
423423
dp_out = dpnp.empty(10, dtype=dtype)
424-
with pytest.raises(TypeError):
424+
with pytest.raises(ValueError):
425425
dpnp.copysign(dp_array, dp_array, out=dp_out)
426426

427427
@pytest.mark.parametrize(
@@ -457,7 +457,7 @@ def test_invalid_dtype(self, dtype):
457457
dpnp_dtype = get_all_dtypes(no_complex=True, no_none=True)[-1]
458458
dp_array = dpnp.arange(10, dtype=dpnp_dtype)
459459
dp_out = dpnp.empty(10, dtype=dtype)
460-
with pytest.raises(TypeError):
460+
with pytest.raises(ValueError):
461461
dpnp.logaddexp(dp_array, dp_array, out=dp_out)
462462

463463
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)