File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ def pytest_configure(config):
86
86
"unvectorized: asserts against values via element-wise iteration (not performative!)" ,
87
87
)
88
88
# Hypothesis
89
- profile_settings = {
90
- "max_examples" : config . getoption ( "--hypothesis-max-examples" ),
91
- "derandomize" : config . getoption ( "--hypothesis-derandomize" ) ,
92
- }
93
- if config .getoption ("--hypothesis-disable-deadline" ):
94
- profile_settings [ " deadline" ] = None
95
- settings . register_profile ( "array-api-tests" , ** profile_settings )
89
+ deadline = None if config . getoption ( "--hypothesis-disable-deadline" ) else 800
90
+ settings . register_profile (
91
+ "array-api-tests" ,
92
+ max_examples = config . getoption ( "--hypothesis-max-examples" ),
93
+ derandomize = config .getoption ("--hypothesis-derandomize" ),
94
+ deadline = deadline ,
95
+ )
96
96
settings .load_profile ("array-api-tests" )
97
97
# CI
98
98
if config .getoption ("--ci" ):
You can’t perform that action at this time.
0 commit comments