Skip to content

Commit

Permalink
this fails test_minimizes_errors_in_teardown due to forced being trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Dec 27, 2024
1 parent fb74bd7 commit 4181f0c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,6 @@ def shrink(self):
This method is "mostly idempotent" - calling it twice is unlikely to
have any effect, though it has a non-zero probability of doing so.
"""
# We assume that if an all-trivial example is interesting then
# we're not going to do better than that. This might not technically be true:
# e.g. in tuples(booleans(), booleans()) | booleans() the simplest example
# is [1, False] but the all-trivial example is [0, False, False].
if all(node.trivial for node in self.nodes):
self.explain()
return

try:
self.greedy_shrink()
Expand Down

0 comments on commit 4181f0c

Please sign in to comment.