Skip to content

Commit 3777423

Browse files
committed
Rename for clarity
1 parent f113135 commit 3777423

File tree

1 file changed

+5
-5
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+5
-5
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/shrinker.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -583,17 +583,17 @@ def each_pair_of_blocks(self, accept_first, accept_second):
583583
# have more opportunities to make shrinks that speed up the tests or
584584
# that reduce the number of viable shrinks at the next gap size because
585585
# we've lowered some values.
586-
gap = 1
587-
while gap < len(self.blocks):
586+
offset = 1
587+
while offset < len(self.blocks):
588588
i = 0
589-
while i + gap < len(self.blocks):
590-
j = i + gap
589+
while i + offset < len(self.blocks):
590+
j = i + offset
591591
block_i = self.blocks[i]
592592
block_j = self.blocks[j]
593593
if accept_first(block_i) and accept_second(block_j):
594594
yield (block_i, block_j)
595595
i += 1
596-
gap += 1
596+
offset += 1
597597

598598
def pass_to_descendant(self):
599599
"""Attempt to replace each example with a descendant example.

0 commit comments

Comments
 (0)