tests: Ignore false-positive (?) hypothesis health check

See https://github.com/HypothesisWorks/hypothesis/issues/3733
Should fix nightly builds (and the next dependency upgrade).
This commit is contained in:
Florian Bruhin 2023-09-08 12:04:37 +02:00
parent ae2e679dfc
commit 3fabc8fe37
2 changed files with 10 additions and 6 deletions

View File

@ -13,7 +13,7 @@ execnet==2.0.2
filelock==3.12.3
Flask==2.3.3
hunter==3.6.1
hypothesis==6.83.1
hypothesis==6.84.2
idna==3.4
importlib-metadata==6.8.0
iniconfig==2.0.0

View File

@ -33,19 +33,23 @@ _qute_scheme_handler = None
# Set hypothesis settings
suppressed_health_checks = [
hypothesis.HealthCheck.function_scoped_fixture,
# https://github.com/HypothesisWorks/hypothesis/issues/3733
hypothesis.HealthCheck.differing_executors,
]
hypothesis.settings.register_profile(
'default', hypothesis.settings(
deadline=600,
suppress_health_check=[hypothesis.HealthCheck.function_scoped_fixture],
suppress_health_check=suppressed_health_checks,
)
)
hypothesis.settings.register_profile(
'ci', hypothesis.settings(
deadline=None,
suppress_health_check=[
hypothesis.HealthCheck.function_scoped_fixture,
hypothesis.HealthCheck.too_slow,
]
suppress_health_check=
suppressed_health_checks +
[hypothesis.HealthCheck.too_slow],
)
)
hypothesis.settings.load_profile('ci' if testutils.ON_CI else 'default')