Skip to content

Commit b6c2e42

Browse files
committed
Clarified comment in ellipsis indices test (NumPy and Array API)
1 parent d8ea29b commit b6c2e42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hypothesis-python/tests/array_api/test_indices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def test_indices_can_generate_long_ellipsis():
6666
)
6767
)
6868
def test_indices_replaces_whole_axis_slices_with_ellipsis(idx):
69-
# If ... is in the slice, it replaces all ,:, entries for this shape.
69+
# When a shape's dimension sizes are 0, ... in indices replaces all slice
70+
# and integer entries in the index.
7071
assert slice(None) not in idx
7172

7273

hypothesis-python/tests/numpy/test_gen_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,8 @@ def test_basic_indices_can_generate_long_ellipsis():
11061106
)
11071107
)
11081108
def test_basic_indices_replaces_whole_axis_slices_with_ellipsis(idx):
1109-
# If ... is in the slice, it replaces all ,:, entries for this shape.
1109+
# When a shape's dimension sizes are 0, ... in indices replaces all slice
1110+
# and integer entries in the index.
11101111
assert slice(None) not in idx
11111112

11121113

0 commit comments

Comments
 (0)