@@ -1160,7 +1160,9 @@ 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+ # TODO: change it to ValueError, when dpctl
1164+ # is being used in internal CI
1165+ with pytest .raises ((TypeError , ValueError )):
11641166 dpnp .ceil (dp_array , out = dp_out )
11651167
11661168 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1200,7 +1202,9 @@ def test_invalid_dtype(self, dtype):
12001202 dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
12011203 dp_out = dpnp .empty (10 , dtype = dtype )
12021204
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 )):
12041208 dpnp .floor (dp_array , out = dp_out )
12051209
12061210 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1240,7 +1244,9 @@ def test_invalid_dtype(self, dtype):
12401244 dp_array = dpnp .arange (10 , dtype = dpnp_dtype )
12411245 dp_out = dpnp .empty (10 , dtype = dtype )
12421246
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 )):
12441250 dpnp .trunc (dp_array , out = dp_out )
12451251
12461252 @pytest .mark .parametrize ("dtype" , get_float_dtypes ())
@@ -1291,7 +1297,9 @@ def test_out_dtypes(self, dtype):
12911297 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
12921298 if dtype != dpnp .complex64 :
12931299 # 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 )):
12951303 dpnp .add (dp_array1 , dp_array2 , out = dp_out )
12961304
12971305 # allocate new out with expected type
@@ -1388,7 +1396,9 @@ def test_out_dtypes(self, dtype):
13881396 check_dtype = True
13891397 if dtype != dpnp .complex64 :
13901398 # 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 )):
13921402 dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
13931403
13941404 # allocate new out with expected type
@@ -1489,7 +1499,9 @@ def test_out_dtypes(self, dtype):
14891499 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
14901500 if dtype != dpnp .complex64 :
14911501 # 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 )):
14931505 dpnp .floor_divide (dp_array1 , dp_array2 , out = dp_out )
14941506
14951507 # allocate new out with expected type
@@ -1749,7 +1761,9 @@ def test_out_dtypes(self, dtype):
17491761 dp_out = dpnp .empty (size , dtype = dpnp .float32 )
17501762 if dtype != dpnp .float32 :
17511763 # 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 )):
17531767 dpnp .hypot (dp_array1 , dp_array2 , out = dp_out )
17541768
17551769 # allocate new out with expected type
@@ -1917,7 +1931,9 @@ def test_out_dtypes(self, dtype):
19171931 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
19181932 if dtype != dpnp .complex64 :
19191933 # 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 )):
19211937 dpnp .maximum (dp_array1 , dp_array2 , out = dp_out )
19221938
19231939 # allocate new out with expected type
@@ -1998,7 +2014,9 @@ def test_out_dtypes(self, dtype):
19982014 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
19992015 if dtype != dpnp .complex64 :
20002016 # 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 )):
20022020 dpnp .minimum (dp_array1 , dp_array2 , out = dp_out )
20032021
20042022 # allocate new out with expected type
@@ -2079,7 +2097,9 @@ def test_out_dtypes(self, dtype):
20792097 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
20802098 if dtype != dpnp .complex64 :
20812099 # 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 )):
20832103 dpnp .multiply (dp_array1 , dp_array2 , out = dp_out )
20842104
20852105 # allocate new out with expected type
@@ -2174,7 +2194,9 @@ def test_out_dtypes(self, dtype):
21742194 dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
21752195 if dtype != dpnp .complex64 :
21762196 # 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 )):
21782200 dpnp .power (dp_array1 , dp_array2 , out = dp_out )
21792201
21802202 # allocate new out with expected type
0 commit comments