Skip to content

Commit 1fb61d5

Browse files
authored
Merge pull request #388 from cbourjau/pass-tuple-of-ints-to-xp.full
Pass `tuple[int]` instead of `tuple[Array]` as shape to `xp.full`
2 parents a434727 + 65f3b2c commit 1fb61d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_manipulation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def test_repeat(x, kw, data):
341341
for i, count in enumerate(repeats_array):
342342
end = start + count
343343
ph.assert_array_elements("repeat", out=out_slice[start:end],
344-
expected=xp.full((count,), x_slice[i], dtype=x.dtype),
344+
expected=xp.full((int(count),), x_slice[i], dtype=x.dtype),
345345
kw=kw)
346346
start = end
347347

0 commit comments

Comments
 (0)