@@ -1160,7 +1160,9 @@ 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
+ # TODO: change it to ValueError, when dpctl
1164
+ # is being used in internal CI
1165
+ with pytest .raises ((TypeError , ValueError )):
1164
1166
dpnp .ceil (dp_array , out = dp_out )
1165
1167
1166
1168
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1200,7 +1202,9 @@ def test_invalid_dtype(self, dtype):
1200
1202
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1201
1203
dp_out = dpnp .empty (10 , dtype = dtype )
1202
1204
1203
- with pytest .raises (TypeError ):
1205
+ # TODO: change it to ValueError, when dpctl
1206
+ # is being used in internal CI
1207
+ with pytest .raises ((TypeError , ValueError )):
1204
1208
dpnp .floor (dp_array , out = dp_out )
1205
1209
1206
1210
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1240,7 +1244,9 @@ def test_invalid_dtype(self, dtype):
1240
1244
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1241
1245
dp_out = dpnp .empty (10 , dtype = dtype )
1242
1246
1243
- with pytest .raises (TypeError ):
1247
+ # TODO: change it to ValueError, when dpctl
1248
+ # is being used in internal CI
1249
+ with pytest .raises ((TypeError , ValueError )):
1244
1250
dpnp .trunc (dp_array , out = dp_out )
1245
1251
1246
1252
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1291,7 +1297,9 @@ def test_out_dtypes(self, dtype):
1291
1297
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1292
1298
if dtype != dpnp .complex64 :
1293
1299
# dtype of out mismatches types of input arrays
1294
- with pytest .raises (TypeError ):
1300
+ # TODO: change it to ValueError, when dpctl
1301
+ # is being used in internal CI
1302
+ with pytest .raises ((TypeError , ValueError )):
1295
1303
dpnp .add (dp_array1 , dp_array2 , out = dp_out )
1296
1304
1297
1305
# allocate new out with expected type
@@ -1388,7 +1396,9 @@ def test_out_dtypes(self, dtype):
1388
1396
check_dtype = True
1389
1397
if dtype != dpnp .complex64 :
1390
1398
# dtype of out mismatches types of input arrays
1391
- with pytest .raises (TypeError ):
1399
+ # TODO: change it to ValueError, when dpctl
1400
+ # is being used in internal CI
1401
+ with pytest .raises ((TypeError , ValueError )):
1392
1402
dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
1393
1403
1394
1404
# allocate new out with expected type
@@ -1489,7 +1499,9 @@ def test_out_dtypes(self, dtype):
1489
1499
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1490
1500
if dtype != dpnp .complex64 :
1491
1501
# dtype of out mismatches types of input arrays
1492
- with pytest .raises (TypeError ):
1502
+ # TODO: change it to ValueError, when dpctl
1503
+ # is being used in internal CI
1504
+ with pytest .raises ((TypeError , ValueError )):
1493
1505
dpnp .floor_divide (dp_array1 , dp_array2 , out = dp_out )
1494
1506
1495
1507
# allocate new out with expected type
@@ -1749,7 +1761,9 @@ def test_out_dtypes(self, dtype):
1749
1761
dp_out = dpnp .empty (size , dtype = dpnp .float32 )
1750
1762
if dtype != dpnp .float32 :
1751
1763
# dtype of out mismatches types of input arrays
1752
- with pytest .raises (TypeError ):
1764
+ # TODO: change it to ValueError, when dpctl
1765
+ # is being used in internal CI
1766
+ with pytest .raises ((TypeError , ValueError )):
1753
1767
dpnp .hypot (dp_array1 , dp_array2 , out = dp_out )
1754
1768
1755
1769
# allocate new out with expected type
@@ -1917,7 +1931,9 @@ def test_out_dtypes(self, dtype):
1917
1931
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1918
1932
if dtype != dpnp .complex64 :
1919
1933
# dtype of out mismatches types of input arrays
1920
- with pytest .raises (TypeError ):
1934
+ # TODO: change it to ValueError, when dpctl
1935
+ # is being used in internal CI
1936
+ with pytest .raises ((TypeError , ValueError )):
1921
1937
dpnp .maximum (dp_array1 , dp_array2 , out = dp_out )
1922
1938
1923
1939
# allocate new out with expected type
@@ -1998,7 +2014,9 @@ def test_out_dtypes(self, dtype):
1998
2014
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1999
2015
if dtype != dpnp .complex64 :
2000
2016
# dtype of out mismatches types of input arrays
2001
- with pytest .raises (TypeError ):
2017
+ # TODO: change it to ValueError, when dpctl
2018
+ # is being used in internal CI
2019
+ with pytest .raises ((TypeError , ValueError )):
2002
2020
dpnp .minimum (dp_array1 , dp_array2 , out = dp_out )
2003
2021
2004
2022
# allocate new out with expected type
@@ -2079,7 +2097,9 @@ def test_out_dtypes(self, dtype):
2079
2097
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2080
2098
if dtype != dpnp .complex64 :
2081
2099
# dtype of out mismatches types of input arrays
2082
- with pytest .raises (TypeError ):
2100
+ # TODO: change it to ValueError, when dpctl
2101
+ # is being used in internal CI
2102
+ with pytest .raises ((TypeError , ValueError )):
2083
2103
dpnp .multiply (dp_array1 , dp_array2 , out = dp_out )
2084
2104
2085
2105
# allocate new out with expected type
@@ -2174,7 +2194,9 @@ def test_out_dtypes(self, dtype):
2174
2194
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2175
2195
if dtype != dpnp .complex64 :
2176
2196
# dtype of out mismatches types of input arrays
2177
- with pytest .raises (TypeError ):
2197
+ # TODO: change it to ValueError, when dpctl
2198
+ # is being used in internal CI
2199
+ with pytest .raises ((TypeError , ValueError )):
2178
2200
dpnp .power (dp_array1 , dp_array2 , out = dp_out )
2179
2201
2180
2202
# allocate new out with expected type
0 commit comments