We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb74bd7 commit 4181f0cCopy full SHA for 4181f0c
hypothesis-python/src/hypothesis/internal/conjecture/shrinker.py
@@ -481,13 +481,6 @@ def shrink(self):
481
This method is "mostly idempotent" - calling it twice is unlikely to
482
have any effect, though it has a non-zero probability of doing so.
483
"""
484
- # We assume that if an all-trivial example is interesting then
485
- # we're not going to do better than that. This might not technically be true:
486
- # e.g. in tuples(booleans(), booleans()) | booleans() the simplest example
487
- # is [1, False] but the all-trivial example is [0, False, False].
488
- if all(node.trivial for node in self.nodes):
489
- self.explain()
490
- return
491
492
try:
493
self.greedy_shrink()
0 commit comments