File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
hypothesis-python/tests/common Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11
11
import os
12
12
from warnings import filterwarnings
13
13
14
- from hypothesis import Phase , Verbosity , settings
14
+ from hypothesis import HealthCheck , Phase , Verbosity , settings
15
15
from hypothesis ._settings import not_set
16
16
from hypothesis .internal .conjecture .data import AVAILABLE_PROVIDERS
17
17
from hypothesis .internal .coverage import IN_COVERAGE_TESTS
@@ -61,7 +61,15 @@ def run():
61
61
62
62
settings .register_profile ("debug" , settings (verbosity = Verbosity .debug ))
63
63
64
- for backend in set (AVAILABLE_PROVIDERS ) - {"hypothesis" }:
65
- settings .register_profile (backend , backend = backend ) # e.g. "crosshair"
64
+ if "crosshair" in AVAILABLE_PROVIDERS :
65
+ settings .register_profile (
66
+ "crosshair" ,
67
+ backend = "crosshair" ,
68
+ deadline = None ,
69
+ suppress_health_check = list (HealthCheck ),
70
+ )
71
+
72
+ for backend in set (AVAILABLE_PROVIDERS ) - {"hypothesis" , "crosshair" }:
73
+ settings .register_profile (backend , backend = backend )
66
74
67
75
settings .load_profile (os .getenv ("HYPOTHESIS_PROFILE" , "default" ))
You can’t perform that action at this time.
0 commit comments