Skip to content

Commit

Permalink
disable dfa shrinking
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed May 4, 2024
1 parent 50b2b13 commit d81d50e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ def greedy_shrink(self):
"redistribute_block_pairs",
"lower_blocks_together",
]
+ [dfa_replacement(n) for n in SHRINKING_DFAS]
)

@derived_value # type: ignore
Expand Down
3 changes: 0 additions & 3 deletions hypothesis-python/tests/cover/test_simple_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ def test_sets_of_fixed_length(n):

if n == 0:
assert x == set()
elif n == 3:
# very much a hack for growing pains while we migrate the shrinker to the ir!
assert x == {-2, 0, 1}
else:
assert x == set(range(min(x), min(x) + n))

Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/tests/quality/test_poisoned_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def do_draw(self, data):
@pytest.mark.parametrize("size", [5, 10, 20])
@pytest.mark.parametrize("p", [0.01, 0.1])
@pytest.mark.parametrize("strategy_class", [LinearLists, Matrices])
def test_minimal_poisoned_containers(seed, size, p, strategy_class, monkeypatch):
def test_minimal_poisoned_containers(seed, size, p, strategy_class):
elements = Poisoned(p)
strategy = strategy_class(elements, size)

Expand Down

0 comments on commit d81d50e

Please sign in to comment.