Skip to content

Commit 866868f

Browse files
committed
Use a better variable name
1 parent b905bca commit 866868f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

array_api_tests/test_manipulation_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,17 +300,17 @@ def test_permute_dims(x, axes):
300300
def test_repeat(x, kw, data):
301301
shape = x.shape
302302
axis = kw.get("axis", None)
303-
dim = math.prod(shape) if axis is None else shape[axis]
303+
size = math.prod(shape) if axis is None else shape[axis]
304304
repeat_strat = st.integers(1, 4)
305305
repeats = data.draw(repeat_strat
306306
| hh.arrays(dtype=hh.int_dtypes, elements=repeat_strat,
307-
shape=st.sampled_from([(1,), (dim,)])),
307+
shape=st.sampled_from([(1,), (size,)])),
308308
label="repeats")
309309
if isinstance(repeats, int):
310-
n_repitions = dim*repeats
310+
n_repitions = size*repeats
311311
else:
312312
if repeats.shape == (1,):
313-
n_repitions = dim*repeats[0]
313+
n_repitions = size*repeats[0]
314314
else:
315315
n_repitions = int(xp.sum(repeats))
316316

0 commit comments

Comments
 (0)