Skip to content

Commit

Permalink
Clarified comment in ellipsis indices test (NumPy and Array API)
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Sep 10, 2021
1 parent d8ea29b commit b6c2e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hypothesis-python/tests/array_api/test_indices.py
Expand Up @@ -66,7 +66,8 @@ def test_indices_can_generate_long_ellipsis():
)
)
def test_indices_replaces_whole_axis_slices_with_ellipsis(idx):
# If ... is in the slice, it replaces all ,:, entries for this shape.
# When a shape's dimension sizes are 0, ... in indices replaces all slice
# and integer entries in the index.
assert slice(None) not in idx


Expand Down
3 changes: 2 additions & 1 deletion hypothesis-python/tests/numpy/test_gen_data.py
Expand Up @@ -1106,7 +1106,8 @@ def test_basic_indices_can_generate_long_ellipsis():
)
)
def test_basic_indices_replaces_whole_axis_slices_with_ellipsis(idx):
# If ... is in the slice, it replaces all ,:, entries for this shape.
# When a shape's dimension sizes are 0, ... in indices replaces all slice
# and integer entries in the index.
assert slice(None) not in idx


Expand Down

0 comments on commit b6c2e42

Please sign in to comment.