File tree 2 files changed +2
-10
lines changed
src/hypothesis/internal/conjecture 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1935,14 +1935,6 @@ def permitted(f):
1935
1935
}
1936
1936
1937
1937
1938
- # eventually we'll want to expose this publicly, but for now it lives as psuedo-internal.
1939
- def realize (value : object ) -> object :
1940
- from hypothesis .control import current_build_context
1941
-
1942
- context = current_build_context ()
1943
- return context .data .provider .realize (value )
1944
-
1945
-
1946
1938
class ConjectureData :
1947
1939
@classmethod
1948
1940
def for_buffer (
Original file line number Diff line number Diff line change 18
18
import pytest
19
19
20
20
from hypothesis import given , settings , strategies as st
21
+ from hypothesis .control import current_build_context
21
22
from hypothesis .database import InMemoryExampleDatabase
22
23
from hypothesis .errors import Flaky , HypothesisException , InvalidArgument
23
24
from hypothesis .internal .compat import int_to_bytes
24
25
from hypothesis .internal .conjecture .data import (
25
26
AVAILABLE_PROVIDERS ,
26
27
ConjectureData ,
27
28
PrimitiveProvider ,
28
- realize ,
29
29
)
30
30
from hypothesis .internal .conjecture .engine import ConjectureRunner
31
31
from hypothesis .internal .floats import SIGNALING_NAN
@@ -412,7 +412,7 @@ def test_realize():
412
412
@given (st .integers ())
413
413
@settings (backend = "realize" )
414
414
def test_function (n ):
415
- values .append (realize (n ))
415
+ values .append (current_build_context (). data . provider . realize (n ))
416
416
417
417
test_function ()
418
418
You can’t perform that action at this time.
0 commit comments