Skip to content

Commit d5faeec

Browse files
Add test based on code from gh-1167
1 parent 79dd04b commit d5faeec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dpctl/tests/test_tensor_asarray.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,11 @@ def test_asarray_seq_of_arrays_on_different_queues():
355355

356356
with pytest.raises(dpctl.utils.ExecutionPlacementError):
357357
dpt.asarray([m, [w, py_seq]])
358+
359+
360+
def test_ulonglong_gh_1167():
361+
get_queue_or_skip()
362+
x = dpt.asarray(9223372036854775807, dtype="u8")
363+
assert x.dtype == dpt.uint64
364+
x = dpt.asarray(9223372036854775808, dtype="u8")
365+
assert x.dtype == dpt.uint64

0 commit comments

Comments
 (0)