Skip to content

Commit bbfe50f

Browse files
committed
Fix the test_diagonal true value check
1 parent 1daba5d commit bbfe50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_diagonal(x, kw):
234234

235235
assert res.shape == (*x.shape[:-2], diag_size), "diagonal() returned the wrong shape"
236236

237-
def true_diag(x_stack):
237+
def true_diag(x_stack, offset=0):
238238
if offset >= 0:
239239
x_stack_diag = [x_stack[i, i + offset] for i in range(diag_size)]
240240
else:

0 commit comments

Comments
 (0)