Skip to content

Commit e28e1aa

Browse files
committed
add a test for input validation of invert
1 parent ff68bca commit e28e1aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_tensor_isin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,12 @@ def test_isin_empty_inputs():
208208

209209

210210
def test_isin_validation():
211+
get_queue_or_skip()
211212
with pytest.raises(ExecutionPlacementError):
212213
dpt.isin(1, 1)
214+
not_bool = dict()
215+
with pytest.raises(ValueError):
216+
dpt.isin(dpt.ones([1]), dpt.ones([1]), invert=not_bool)
213217

214218

215219
def test_isin_special_floating_point_vals():

0 commit comments

Comments
 (0)