@@ -1199,9 +1199,7 @@ def test_invalid_dtype(self, dtype):
1199
1199
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1200
1200
dp_out = dpnp .empty (10 , dtype = dtype )
1201
1201
1202
- # TODO: change it to ValueError, when dpctl
1203
- # is being used in internal CI
1204
- with pytest .raises ((TypeError , ValueError )):
1202
+ with pytest .raises (ValueError ):
1205
1203
dpnp .ceil (dp_array , out = dp_out )
1206
1204
1207
1205
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1241,9 +1239,7 @@ def test_invalid_dtype(self, dtype):
1241
1239
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1242
1240
dp_out = dpnp .empty (10 , dtype = dtype )
1243
1241
1244
- # TODO: change it to ValueError, when dpctl
1245
- # is being used in internal CI
1246
- with pytest .raises ((TypeError , ValueError )):
1242
+ with pytest .raises (ValueError ):
1247
1243
dpnp .floor (dp_array , out = dp_out )
1248
1244
1249
1245
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1283,9 +1279,7 @@ def test_invalid_dtype(self, dtype):
1283
1279
dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
1284
1280
dp_out = dpnp .empty (10 , dtype = dtype )
1285
1281
1286
- # TODO: change it to ValueError, when dpctl
1287
- # is being used in internal CI
1288
- with pytest .raises ((TypeError , ValueError )):
1282
+ with pytest .raises (ValueError ):
1289
1283
dpnp .trunc (dp_array , out = dp_out )
1290
1284
1291
1285
@pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1336,9 +1330,7 @@ def test_out_dtypes(self, dtype):
1336
1330
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1337
1331
if dtype != dpnp .complex64 :
1338
1332
# dtype of out mismatches types of input arrays
1339
- # TODO: change it to ValueError, when dpctl
1340
- # is being used in internal CI
1341
- with pytest .raises ((TypeError , ValueError )):
1333
+ with pytest .raises (ValueError ):
1342
1334
dpnp .add (dp_array1 , dp_array2 , out = dp_out )
1343
1335
1344
1336
# allocate new out with expected type
@@ -1435,9 +1427,7 @@ def test_out_dtypes(self, dtype):
1435
1427
check_dtype = True
1436
1428
if dtype != dpnp .complex64 :
1437
1429
# dtype of out mismatches types of input arrays
1438
- # TODO: change it to ValueError, when dpctl
1439
- # is being used in internal CI
1440
- with pytest .raises ((TypeError , ValueError )):
1430
+ with pytest .raises (ValueError ):
1441
1431
dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
1442
1432
1443
1433
# allocate new out with expected type
@@ -1538,9 +1528,7 @@ def test_out_dtypes(self, dtype):
1538
1528
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1539
1529
if dtype != dpnp .complex64 :
1540
1530
# dtype of out mismatches types of input arrays
1541
- # TODO: change it to ValueError, when dpctl
1542
- # is being used in internal CI
1543
- with pytest .raises ((TypeError , ValueError )):
1531
+ with pytest .raises (ValueError ):
1544
1532
dpnp .floor_divide (dp_array1 , dp_array2 , out = dp_out )
1545
1533
1546
1534
# allocate new out with expected type
@@ -1800,9 +1788,7 @@ def test_out_dtypes(self, dtype):
1800
1788
dp_out = dpnp .empty (size , dtype = dpnp .float32 )
1801
1789
if dtype != dpnp .float32 :
1802
1790
# dtype of out mismatches types of input arrays
1803
- # TODO: change it to ValueError, when dpctl
1804
- # is being used in internal CI
1805
- with pytest .raises ((TypeError , ValueError )):
1791
+ with pytest .raises (ValueError ):
1806
1792
dpnp .hypot (dp_array1 , dp_array2 , out = dp_out )
1807
1793
1808
1794
# allocate new out with expected type
@@ -1970,9 +1956,7 @@ def test_out_dtypes(self, dtype):
1970
1956
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1971
1957
if dtype != dpnp .complex64 :
1972
1958
# dtype of out mismatches types of input arrays
1973
- # TODO: change it to ValueError, when dpctl
1974
- # is being used in internal CI
1975
- with pytest .raises ((TypeError , ValueError )):
1959
+ with pytest .raises (ValueError ):
1976
1960
dpnp .maximum (dp_array1 , dp_array2 , out = dp_out )
1977
1961
1978
1962
# allocate new out with expected type
@@ -2053,9 +2037,7 @@ def test_out_dtypes(self, dtype):
2053
2037
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2054
2038
if dtype != dpnp .complex64 :
2055
2039
# dtype of out mismatches types of input arrays
2056
- # TODO: change it to ValueError, when dpctl
2057
- # is being used in internal CI
2058
- with pytest .raises ((TypeError , ValueError )):
2040
+ with pytest .raises (ValueError ):
2059
2041
dpnp .minimum (dp_array1 , dp_array2 , out = dp_out )
2060
2042
2061
2043
# allocate new out with expected type
@@ -2136,9 +2118,7 @@ def test_out_dtypes(self, dtype):
2136
2118
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2137
2119
if dtype != dpnp .complex64 :
2138
2120
# dtype of out mismatches types of input arrays
2139
- # TODO: change it to ValueError, when dpctl
2140
- # is being used in internal CI
2141
- with pytest .raises ((TypeError , ValueError )):
2121
+ with pytest .raises (ValueError ):
2142
2122
dpnp .multiply (dp_array1 , dp_array2 , out = dp_out )
2143
2123
2144
2124
# allocate new out with expected type
@@ -2233,9 +2213,7 @@ def test_out_dtypes(self, dtype):
2233
2213
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
2234
2214
if dtype != dpnp .complex64 :
2235
2215
# dtype of out mismatches types of input arrays
2236
- # TODO: change it to ValueError, when dpctl
2237
- # is being used in internal CI
2238
- with pytest .raises ((TypeError , ValueError )):
2216
+ with pytest .raises (ValueError ):
2239
2217
dpnp .power (dp_array1 , dp_array2 , out = dp_out )
2240
2218
2241
2219
# allocate new out with expected type
0 commit comments