We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f91f0 commit d91596cCopy full SHA for d91596c
hypothesis-python/src/hypothesis/internal/conjecture/shrinker.py
@@ -1270,6 +1270,12 @@ def redistribute_block_pairs(self, chooser):
1270
else:
1271
return
1272
1273
+ if next_node.was_forced:
1274
+ # avoid modifying a forced node! Note that it's fine for next_node
1275
+ # to be trivial, because we're going to explicitly make it *not*
1276
+ # trivial by adding to its value.
1277
+ return
1278
+
1279
m = node.value
1280
n = next_node.value
1281
0 commit comments