8000 Fix properties test · zarr-developers/zarr-python@0161c61 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0161c61

Browse files
committed
Fix properties test
1 parent a39b64a commit 0161c61

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/zarr/testing/strategies.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,12 @@ def basic_indices(
356356
allow_newaxis=allow_newaxis,
357357
allow_ellipsis=allow_ellipsis,
358358
).filter(
359-
lambda idxr: (not (is_negative_slice(idxr) or any(is_negative_slice(idx) for idx in idxr)))
359+
lambda idxr: (
360+
not (
361+
is_negative_slice(idxr)
362+
or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr))
363+
)
364+
)
360365
)
361366
if math.prod(shape) >= 3:
362367
strategy = end_slices(shape=shape) | strategy

0 commit comments

Comments
 (0)
0