Skip to content

Commit 7b41fda

Browse files
committed
draw from strategies with examples to cover missing pareto code
1 parent efeebb3 commit 7b41fda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hypothesis-python/tests/conjecture/test_pareto.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import pytest
1212

13-
from hypothesis import HealthCheck, Phase, settings
13+
from hypothesis import HealthCheck, Phase, settings, strategies as st
1414
from hypothesis.database import InMemoryExampleDatabase
1515
from hypothesis.internal.compat import int_to_bytes
1616
from hypothesis.internal.conjecture.data import Status
@@ -68,9 +68,9 @@ def test_database_contains_only_pareto_front():
6868
with deterministic_PRNG():
6969

7070
def test(data):
71-
data.target_observations["1"] = data.draw_integer(0, 2**4 - 1)
72-
data.draw_integer(0, 2**64 - 1)
73-
data.target_observations["2"] = data.draw_integer(0, 2**8 - 1)
71+
data.target_observations["1"] = data.draw(st.integers(0, 2**4 - 1))
72+
data.draw(st.integers(0, 2**64 - 1))
73+
data.target_observations["2"] = data.draw(st.integers(0, 2**8 - 1))
7474

7575
db = InMemoryExampleDatabase()
7676

0 commit comments

Comments
 (0)