@@ -176,23 +176,17 @@ def pytest_collection_modifyitems(items, config) -> None:
176
176
ignore_doctest_warning (item , path , message )
177
177
178
178
179
- hypothesis_health_checks = [
180
- hypothesis .HealthCheck .too_slow ,
181
- hypothesis .HealthCheck .differing_executors ,
182
- ]
183
-
184
- # Hypothesis
179
+ # Similar to "ci" config in
180
+ # https://hypothesis.readthedocs.io/en/latest/reference/api.html#built-in-profiles
185
181
hypothesis .settings .register_profile (
186
182
"ci" ,
187
- # Hypothesis timing checks are tuned for scalars by default, so we bump
188
- # them from 200ms to 500ms per test case as the global default. If this
189
- # is too short for a specific test, (a) try to make it faster, and (b)
190
- # if it really is slow add `@settings(deadline=...)` with a working value,
191
- # or `deadline=None` to entirely disable timeouts for that test.
192
- # 2022-02-09: Changed deadline from 500 -> None. Deadline leads to
193
- # non-actionable, flaky CI failures (# GH 24641, 44969, 45118, 44969)
183
+ database = None ,
194
184
deadline = None ,
195
- suppress_health_check = tuple (hypothesis_health_checks ),
185
+ max_examples = 25 ,
186
+ suppress_health_check = (
187
+ hypothesis .HealthCheck .too_slow ,
188
+ hypothesis .HealthCheck .differing_executors ,
189
+ ),
196
190
)
197
191
hypothesis .settings .load_profile ("ci" )
198
192
0 commit comments