Skip to content

Commit 4181f0c

Browse files
committed
this fails test_minimizes_errors_in_teardown due to forced being trivial
1 parent fb74bd7 commit 4181f0c

File tree

1 file changed

+0
-7
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,6 @@ def shrink(self):
481481
This method is "mostly idempotent" - calling it twice is unlikely to
482482
have any effect, though it has a non-zero probability of doing so.
483483
"""
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
491484

492485
try:
493486
self.greedy_shrink()

0 commit comments

Comments
 (0)