Skip to content

Commit

Permalink
remove stale target tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug authored and Zac-HD committed Oct 15, 2023
1 parent ae4a77e commit 7ba34d5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions hypothesis-python/tests/cover/test_targeting.py
Expand Up @@ -102,21 +102,3 @@ def test_cannot_target_default_label_twice(_):
target(0.0)
with pytest.raises(InvalidArgument):
target(1.0)


@given(st.lists(st.integers()), st.none())
def test_targeting_with_following_empty(ls, n):
# This exercises some logic in the optimiser that prevents it from trying
# to mutate empty examples at the end of the test case.
target(float(len(ls)))


@given(
st.tuples(
*([st.none()] * 10 + [st.integers()] + [st.none()] * 10 + [st.integers()])
)
)
def test_targeting_with_many_empty(_):
# This exercises some logic in the optimiser that prevents it from trying
# to mutate empty examples in the middle of the test case.
target(1.0)

0 comments on commit 7ba34d5

Please sign in to comment.