@@ -205,7 +205,7 @@ def test_invalid_dtype(self, func_params, dtype):
205
205
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
206
206
dp_out = dpnp .empty (10 , dtype = dtype )
207
207
208
- with pytest .raises (TypeError ):
208
+ with pytest .raises (ValueError ):
209
209
getattr (dpnp , func_name )(dp_array , out = dp_out )
210
210
211
211
@pytest .mark .parametrize (
@@ -250,7 +250,7 @@ def test_invalid_dtype(self, dtype):
250
250
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
251
251
dp_out = dpnp .empty (10 , dtype = dtype )
252
252
253
- with pytest .raises (TypeError ):
253
+ with pytest .raises (ValueError ):
254
254
dpnp .cbrt (dp_array , out = dp_out )
255
255
256
256
@pytest .mark .parametrize (
@@ -296,7 +296,7 @@ def test_invalid_dtype(self, dtype):
296
296
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
297
297
dp_out = dpnp .empty (10 , dtype = dtype )
298
298
299
- with pytest .raises (TypeError ):
299
+ with pytest .raises (ValueError ):
300
300
dpnp .rsqrt (dp_array , out = dp_out )
301
301
302
302
@pytest .mark .parametrize (
@@ -337,7 +337,7 @@ def test_invalid_dtype(self, dtype):
337
337
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
338
338
dp_out = dpnp .empty (10 , dtype = dtype )
339
339
340
- with pytest .raises (TypeError ):
340
+ with pytest .raises (ValueError ):
341
341
dpnp .square (dp_array , out = dp_out )
342
342
343
343
@pytest .mark .parametrize (
@@ -385,7 +385,7 @@ def test_invalid_dtype(self, dtype):
385
385
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
386
386
dp_out = dpnp .empty (10 , dtype = dtype )
387
387
388
- with pytest .raises (TypeError ):
388
+ with pytest .raises (ValueError ):
389
389
dpnp .arctan2 (dp_array , dp_array , out = dp_out )
390
390
391
391
@pytest .mark .parametrize (
@@ -421,7 +421,7 @@ def test_invalid_dtype(self, dtype):
421
421
dpnp_dtype = get_all_dtypes (no_complex = True , no_none = True )[- 1 ]
422
422
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
423
423
dp_out = dpnp .empty (10 , dtype = dtype )
424
- with pytest .raises (TypeError ):
424
+ with pytest .raises (ValueError ):
425
425
dpnp .copysign (dp_array , dp_array , out = dp_out )
426
426
427
427
@pytest .mark .parametrize (
@@ -457,7 +457,7 @@ def test_invalid_dtype(self, dtype):
457
457
dpnp_dtype = get_all_dtypes (no_complex = True , no_none = True )[- 1 ]
458
458
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
459
459
dp_out = dpnp .empty (10 , dtype = dtype )
460
- with pytest .raises (TypeError ):
460
+ with pytest .raises (ValueError ):
461
461
dpnp .logaddexp (dp_array , dp_array , out = dp_out )
462
462
463
463
@pytest .mark .parametrize (
0 commit comments