Skip to content

Commit d3ba4f3

Browse files
committed
add a temporary workaround
1 parent a356439 commit d3ba4f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_dot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,16 @@ def test_dot_out_error_scalar(ia):
305305

306306
# output data type is incorrect
307307
dp_out = dpnp.empty((10,), dtype=dpnp.int64)
308-
with pytest.raises(ValueError):
308+
# TODO: change it to ValueError, when updated
309+
# dpctl is being used in internal CI
310+
with pytest.raises((ValueError, TypeError)):
309311
dpnp.dot(ia, ib, out=dp_out)
310312

311313
# output shape is incorrect
312314
dp_out = dpnp.empty((2,), dtype=dpnp.int32)
313-
with pytest.raises(ValueError):
315+
# TODO: change it to ValueError, when updated
316+
# dpctl is being used in internal CI
317+
with pytest.raises((ValueError, TypeError)):
314318
dpnp.dot(ia, ib, out=dp_out)
315319

316320

0 commit comments

Comments
 (0)