Skip to content

Commit

Permalink
this test can go back to normal now!
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Dec 27, 2024
1 parent a4c8648 commit fb74bd7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hypothesis-python/tests/nocover/test_duplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def test(b):
test()
except ValueError:
pass
# There are three circumstances in which a duplicate is allowed: We replay
# the failing test once to check for flakiness, once when shrinking to normalize
# to the minimal buffer, and then we replay the fully minimized failing test
# at the end to display the error. The complication comes from the fact that
# these may or may not be the same test case, so we can see either two test
# cases each run twice or one test case which has been run three times.
assert set(counts.values()) in ({1, 2, 3}, {1, 4})
# There are two circumstances in which a duplicate is allowed: We replay
# the failing test once to check for flakiness, and then we replay the
# fully minimized failing test at the end to display the error. The
# complication comes from the fact that these may or may not be the same
# test case, so we can see either two test cases each run twice or one
# test case which has been run three times.
assert set(counts.values()) in ({1, 2}, {1, 3})
assert len([k for k, v in counts.items() if v > 1]) <= 2

0 comments on commit fb74bd7

Please sign in to comment.