Skip to content

Commit dbed59a

Browse files
committed
Corrects test_diff_no_op
1 parent c3bdf9d commit dbed59a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpctl/tests/test_tensor_diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def test_diff_no_op():
150150
res = dpt.diff(x, n=0)
151151
assert dpt.all(x == res)
152152

153-
res = dpt.diff(dpt.reshape(x, (2, 5)), n=0, axis=0)
153+
x = dpt.reshape(x, (2, 5))
154+
res = dpt.diff(x, n=0, axis=0)
154155
assert dpt.all(x == res)
155156

156157

0 commit comments

Comments
 (0)