Skip to content

Commit 91152be

Browse files
committed
test_iter_grid for non-squares
1 parent 2c19072 commit 91152be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ def test_iter_grid(
18721872
"""
18731873
Test that iter_grid works as expected for 1, 2, and 3 dimensions.
18741874
"""
1875-
grid_shape = (5,) * ndim
1875+
grid_shape = (10,2,7)[:ndim]
18761876

18771877
if origin_0d is not None:
18781878
origin_kwarg = origin_0d * ndim

0 commit comments

Comments
 (0)