Skip to content

Commit d218c36

Browse files
committed
Fix spelling of a variable name
1 parent 89a6add commit d218c36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

array_api_tests/test_manipulation_functions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,20 +307,20 @@ def test_repeat(x, kw, data):
307307
shape=st.sampled_from([(1,), (size,)])),
308308
label="repeats")
309309
if isinstance(repeats, int):
310-
n_repitions = size*repeats
310+
n_repititions = size*repeats
311311
else:
312312
if repeats.shape == (1,):
313-
n_repitions = size*int(repeats[0])
313+
n_repititions = size*int(repeats[0])
314314
else:
315-
n_repitions = int(xp.sum(repeats))
315+
n_repititions = int(xp.sum(repeats))
316316

317317
out = xp.repeat(x, repeats, **kw)
318318
ph.assert_dtype("repeat", in_dtype=x.dtype, out_dtype=out.dtype)
319319
if axis is None:
320-
expected_shape = (n_repitions,)
320+
expected_shape = (n_repititions,)
321321
else:
322322
expected_shape = list(shape)
323-
expected_shape[axis] = n_repitions
323+
expected_shape[axis] = n_repititions
324324
expected_shape = tuple(expected_shape)
325325
ph.assert_shape("repeat", out_shape=out.shape, expected=expected_shape)
326326
# TODO: values testing

0 commit comments

Comments
 (0)