Skip to content

Commit 9c081c0

Browse files
committed
add pragma no cover to not covered line
1 parent c004eae commit 9c081c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zarr/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def __init__(self, selection, arr_shape):
878878
self.selection_shape = np.empty(self.arr_shape)[self.selection].shape
879879
if any([selection_dim < 0 or selection_dim > arr_dim for selection_dim, arr_dim
880880
in zip(self.selection_shape, self.arr_shape)]):
881-
raise IndexError('a selection index is out of range for the dimension')
881+
raise IndexError('a selection index is out of range for the dimension') # pragma: no cover
882882

883883
for i, dim_size in enumerate(self.arr_shape[::-1]):
884884
index = len(self.arr_shape) - (i+1)

0 commit comments

Comments
 (0)