Skip to content

Commit cb57aee

Browse files
committed
Remove flaky decorator, obsolete docstring
1 parent dd17cff commit cb57aee

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

hypothesis-python/tests/nocover/test_collective_minimization.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@
1616

1717
from tests.common import standard_types
1818
from tests.common.debug import minimal
19-
from tests.common.utils import flaky
2019

2120

2221
@pytest.mark.parametrize("spec", standard_types, ids=list(map(repr, standard_types)))
23-
@flaky(min_passes=1, max_runs=2)
2422
def test_can_collectively_minimize(spec):
25-
"""This should generally exercise strategies' strictly_simpler heuristic by
26-
putting us in a state where example cloning is required to get to the
27-
answer fast enough."""
2823
n = 10
29-
3024
try:
3125
xs = minimal(
3226
lists(spec, min_size=n, max_size=n),

hypothesis-python/tests/nocover/test_conjecture_engine.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from hypothesis import given, settings, strategies as st
1212
from hypothesis.database import InMemoryExampleDatabase
13-
from hypothesis.internal.compat import int_from_bytes
1413
from hypothesis.internal.conjecture.data import ConjectureData
1514
from hypothesis.internal.conjecture.engine import ConjectureRunner
1615
from hypothesis.internal.conjecture.shrinker import Shrinker, node_program
@@ -80,29 +79,6 @@ def x(data):
8079
assert len(x) == n
8180

8281

83-
def test_regression_1():
84-
# This is a really hard to reproduce bug that previously triggered a very
85-
# specific exception inside one of the shrink passes. It's unclear how
86-
# useful this regression test really is, but nothing else caught the
87-
# problem.
88-
#
89-
# update 2024-01-15: we've since changed generation and are about to
90-
# change shrinking, so it's unclear if the failure case this test was aimed
91-
# at (1) is still being covered or (2) even exists anymore.
92-
# we can probably safely remove this once the shrinker is rebuilt.
93-
@run_to_buffer
94-
def x(data):
95-
data.draw_bytes(2, forced=b"\x01\x02")
96-
data.draw_bytes(2, forced=b"\x01\x00")
97-
v = data.draw_integer(0, 2**41 - 1)
98-
if v >= 512 or v == 254:
99-
data.mark_interesting()
100-
101-
assert list(x)[:-2] == [1, 2, 1, 0, 0, 0, 0, 0, 0]
102-
103-
assert int_from_bytes(x[-2:]) in (254, 512)
104-
105-
10682
@given(st.integers(0, 255), st.integers(0, 255))
10783
def test_cached_with_masked_byte_agrees_with_results(byte_a, byte_b):
10884
def f(data):

0 commit comments

Comments
 (0)