diff --git a/hypothesis-python/tests/nocover/test_duplication.py b/hypothesis-python/tests/nocover/test_duplication.py index ff89a9978f..ce3557fca8 100644 --- a/hypothesis-python/tests/nocover/test_duplication.py +++ b/hypothesis-python/tests/nocover/test_duplication.py @@ -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