@@ -1160,7 +1160,7 @@ def test_invalid_dtype(self, dtype):
1160
1160
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1161
1161
dp_out = dpnp .empty (10 , dtype = dtype )
1162
1162
1163
- with pytest .raises (TypeError ):
1163
+ with pytest .raises (ValueError ):
1164
1164
dpnp .ceil (dp_array , out = dp_out )
1165
1165
1166
1166
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1200,7 +1200,7 @@ def test_invalid_dtype(self, dtype):
1200
1200
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1201
1201
dp_out = dpnp .empty (10 , dtype = dtype )
1202
1202
1203
- with pytest .raises (TypeError ):
1203
+ with pytest .raises (ValueError ):
1204
1204
dpnp .floor (dp_array , out = dp_out )
1205
1205
1206
1206
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1240,7 +1240,7 @@ def test_invalid_dtype(self, dtype):
1240
1240
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1241
1241
dp_out = dpnp .empty (10 , dtype = dtype )
1242
1242
1243
- with pytest .raises (TypeError ):
1243
+ with pytest .raises (ValueError ):
1244
1244
dpnp .trunc (dp_array , out = dp_out )
1245
1245
1246
1246
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1291,7 +1291,7 @@ def test_out_dtypes(self, dtype):
1291
1291
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1292
1292
if dtype != dpnp .complex64 :
1293
1293
# dtype of out mismatches types of input arrays
1294
- with pytest .raises (TypeError ):
1294
+ with pytest .raises (ValueError ):
1295
1295
dpnp .add (dp_array1 , dp_array2 , out = dp_out )
1296
1296
1297
1297
# allocate new out with expected type
@@ -1388,7 +1388,7 @@ def test_out_dtypes(self, dtype):
1388
1388
check_dtype = True
1389
1389
if dtype != dpnp .complex64 :
1390
1390
# dtype of out mismatches types of input arrays
1391
- with pytest .raises (TypeError ):
1391
+ with pytest .raises (ValueError ):
1392
1392
dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
1393
1393
1394
1394
# allocate new out with expected type
@@ -1489,7 +1489,7 @@ def test_out_dtypes(self, dtype):
1489
1489
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1490
1490
if dtype != dpnp .complex64 :
1491
1491
# dtype of out mismatches types of input arrays
1492
- with pytest .raises (TypeError ):
1492
+ with pytest .raises (ValueError ):
1493
1493
dpnp .floor_divide (dp_array1 , dp_array2 , out = dp_out )
1494
1494
1495
1495
# allocate new out with expected type
@@ -1917,7 +1917,7 @@ def test_out_dtypes(self, dtype):
1917
1917
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1918
1918
if dtype != dpnp .complex64 :
1919
1919
# dtype of out mismatches types of input arrays
1920
- with pytest .raises (TypeError ):
1920
+ with pytest .raises (ValueError ):
1921
1921
dpnp .maximum (dp_array1 , dp_array2 , out = dp_out )
1922
1922
1923
1923
# allocate new out with expected type
@@ -1998,7 +1998,7 @@ def test_out_dtypes(self, dtype):
1998
1998
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1999
1999
if dtype != dpnp .complex64 :
2000
2000
# dtype of out mismatches types of input arrays
2001
- with pytest .raises (TypeError ):
2001
+ with pytest .raises (ValueError ):
2002
2002
dpnp .minimum (dp_array1 , dp_array2 , out = dp_out )
2003
2003
2004
2004
# allocate new out with expected type
@@ -2079,7 +2079,7 @@ def test_out_dtypes(self, dtype):
2079
2079
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2080
2080
if dtype != dpnp .complex64 :
2081
2081
# dtype of out mismatches types of input arrays
2082
- with pytest .raises (TypeError ):
2082
+ with pytest .raises (ValueError ):
2083
2083
dpnp .multiply (dp_array1 , dp_array2 , out = dp_out )
2084
2084
2085
2085
# allocate new out with expected type
@@ -2174,7 +2174,7 @@ def test_out_dtypes(self, dtype):
2174
2174
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2175
2175
if dtype != dpnp .complex64 :
2176
2176
# dtype of out mismatches types of input arrays
2177
- with pytest .raises (TypeError ):
2177
+ with pytest .raises (ValueError ):
2178
2178
dpnp .power (dp_array1 , dp_array2 , out = dp_out )
2179
2179
2180
2180
# allocate new out with expected type
0 commit comments