@@ -1160,7 +1160,7 @@ def test_invalid_dtype(self, dtype):
11601160 dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
11611161 dp_out = dpnp .empty (10 , dtype = dtype )
11621162
1163- with pytest .raises (TypeError ):
1163+ with pytest .raises (ValueError ):
11641164 dpnp .ceil (dp_array , out = dp_out )
11651165
11661166 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1200,7 +1200,7 @@ def test_invalid_dtype(self, dtype):
12001200 dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
12011201 dp_out = dpnp .empty (10 , dtype = dtype )
12021202
1203- with pytest .raises (TypeError ):
1203+ with pytest .raises (ValueError ):
12041204 dpnp .floor (dp_array , out = dp_out )
12051205
12061206 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1240,7 +1240,7 @@ def test_invalid_dtype(self, dtype):
12401240 dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
12411241 dp_out = dpnp .empty (10 , dtype = dtype )
12421242
1243- with pytest .raises (TypeError ):
1243+ with pytest .raises (ValueError ):
12441244 dpnp .trunc (dp_array , out = dp_out )
12451245
12461246 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1291,7 +1291,7 @@ def test_out_dtypes(self, dtype):
12911291 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
12921292 if dtype != dpnp .complex64 :
12931293 # dtype of out mismatches types of input arrays
1294- with pytest .raises (TypeError ):
1294+ with pytest .raises (ValueError ):
12951295 dpnp .add (dp_array1 , dp_array2 , out = dp_out )
12961296
12971297 # allocate new out with expected type
@@ -1388,7 +1388,7 @@ def test_out_dtypes(self, dtype):
13881388 check_dtype = True
13891389 if dtype != dpnp .complex64 :
13901390 # dtype of out mismatches types of input arrays
1391- with pytest .raises (TypeError ):
1391+ with pytest .raises (ValueError ):
13921392 dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
13931393
13941394 # allocate new out with expected type
@@ -1489,7 +1489,7 @@ def test_out_dtypes(self, dtype):
14891489 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
14901490 if dtype != dpnp .complex64 :
14911491 # dtype of out mismatches types of input arrays
1492- with pytest .raises (TypeError ):
1492+ with pytest .raises (ValueError ):
14931493 dpnp .floor_divide (dp_array1 , dp_array2 , out = dp_out )
14941494
14951495 # allocate new out with expected type
@@ -1749,7 +1749,7 @@ def test_out_dtypes(self, dtype):
17491749 dp_out = dpnp .empty (size , dtype = dpnp .float32 )
17501750 if dtype != dpnp .float32 :
17511751 # dtype of out mismatches types of input arrays
1752- with pytest .raises (TypeError ):
1752+ with pytest .raises (ValueError ):
17531753 dpnp .hypot (dp_array1 , dp_array2 , out = dp_out )
17541754
17551755 # allocate new out with expected type
@@ -1917,7 +1917,7 @@ def test_out_dtypes(self, dtype):
19171917 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
19181918 if dtype != dpnp .complex64 :
19191919 # dtype of out mismatches types of input arrays
1920- with pytest .raises (TypeError ):
1920+ with pytest .raises (ValueError ):
19211921 dpnp .maximum (dp_array1 , dp_array2 , out = dp_out )
19221922
19231923 # allocate new out with expected type
@@ -1998,7 +1998,7 @@ def test_out_dtypes(self, dtype):
19981998 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
19991999 if dtype != dpnp .complex64 :
20002000 # dtype of out mismatches types of input arrays
2001- with pytest .raises (TypeError ):
2001+ with pytest .raises (ValueError ):
20022002 dpnp .minimum (dp_array1 , dp_array2 , out = dp_out )
20032003
20042004 # allocate new out with expected type
@@ -2079,7 +2079,7 @@ def test_out_dtypes(self, dtype):
20792079 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
20802080 if dtype != dpnp .complex64 :
20812081 # dtype of out mismatches types of input arrays
2082- with pytest .raises (TypeError ):
2082+ with pytest .raises (ValueError ):
20832083 dpnp .multiply (dp_array1 , dp_array2 , out = dp_out )
20842084
20852085 # allocate new out with expected type
@@ -2174,7 +2174,7 @@ def test_out_dtypes(self, dtype):
21742174 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
21752175 if dtype != dpnp .complex64 :
21762176 # dtype of out mismatches types of input arrays
2177- with pytest .raises (TypeError ):
2177+ with pytest .raises (ValueError ):
21782178 dpnp .power (dp_array1 , dp_array2 , out = dp_out )
21792179
21802180 # allocate new out with expected type
0 commit comments