Skip to content

Commit d348b4d

Browse files
committed
rewrite test_roll_empty to test_roll_scalar
this test had been failing on newer numpy versions and contained undefined behavior
1 parent c5c82b4 commit d348b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tests/test_usm_ndarray_manipulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,10 @@ def test_flip_multiple_axes(data):
582582
assert_array_equal(Ynp, dpt.asnumpy(Y))
583583

584584

585-
def test_roll_empty():
585+
def test_roll_scalar():
586586
q = get_queue_or_skip()
587587

588-
Xnp = np.empty([])
588+
Xnp = np.ones([], dtype="f4")
589589
X = dpt.asarray(Xnp, sycl_queue=q)
590590

591591
Y = dpt.roll(X, 1)

0 commit comments

Comments
 (0)