Skip to content

Commit 8e760ca

Browse files
committed
Skip coverage of flat indices logic in BasicIndexStrategy
It is tested logically in both allow and disallow scenarios, but that doesn't work with coverage nicely.
1 parent 73fc486 commit 8e760ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypothesis-python/src/hypothesis/extra/_array_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def do_draw(self, data):
685685
while j < len(result) and result[j] == slice(None):
686686
j += 1
687687
result[i:j] = [Ellipsis]
688-
elif self.allow_fewer_indices_than_dims:
688+
elif self.allow_fewer_indices_than_dims: # pragma: no cover
689689
while result[-1:] == [slice(None, None)] and data.draw(st.integers(0, 7)):
690690
result.pop()
691691
if len(result) == 1 and data.draw(st.booleans()):

0 commit comments

Comments
 (0)