dont retry too often
@@ -22,8 +22,8 @@ pytest.importorskip('scipy')
epsilon = 1e-4
@pytest.mark.slow
-@pytest.mark.flaky(reruns=5)
-@settings(timeout=unlimited)
+@pytest.mark.flaky(reruns=2)
+@settings(timeout=unlimited, min_satisfying_examples=3, max_iterations=250)
@given(dist=distributions(alphabets=(2,)*2))
def test_cis1(dist):
"""
@@ -36,6 +36,7 @@ def test_cis1(dist):
g = G(dist)
f = F(dist)
m = M(dist)
+ print("K: {}\nJ: {}\nB: {}\nC: {}\nG: {}\nF: {}\nM: {}".format(k, j, b, c, g, f, m))
assert k <= j + epsilon
assert j <= b + epsilon
assert b <= c + epsilon
@@ -44,8 +45,8 @@ def test_cis1(dist):
assert f <= m + epsilon
@pytest.mark.slow
-@pytest.mark.flaky(reruns=5)
-@settings(timeout=unlimited)
+@pytest.mark.flaky(reruns=2)
+@settings(timeout=unlimited, min_satisfying_examples=3, max_iterations=250)
@given(dist=distributions(alphabets=(2,)*3))
def test_cis2(dist):
"""
@@ -58,6 +59,7 @@ def test_cis2(dist):
g = G(dist)
f = F(dist)
m = M(dist)
+ print("K: {}\nJ: {}\nB: {}\nC: {}\nG: {}\nF: {}\nM: {}".format(k, j, b, c, g, f, m))
assert k <= j + epsilon
assert j <= b + epsilon
assert b <= c + epsilon
