File tree 1 file changed +13
-3
lines changed
hypothesis-python/tests/common 1 file changed +13
-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,17 @@ 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
+ max_examples = 20 ,
69
+ deadline = None ,
70
+ suppress_health_check = list (HealthCheck ),
71
+ report_multiple_bugs = False ,
72
+ )
73
+
74
+ for backend in set (AVAILABLE_PROVIDERS ) - {"hypothesis" , "crosshair" }:
75
+ settings .register_profile (backend , backend = backend )
66
76
67
77
settings .load_profile (os .getenv ("HYPOTHESIS_PROFILE" , "default" ))
You can’t perform that action at this time.
0 commit comments