From 3fabc8fe37d48910f252a0f1dc125e3deec15325 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 8 Sep 2023 12:04:37 +0200 Subject: tests: Ignore false-positive (?) hypothesis health check See https://github.com/HypothesisWorks/hypothesis/issues/3733 Should fix nightly builds (and the next dependency upgrade). --- misc/requirements/requirements-tests.txt | 2 +- tests/conftest.py | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/misc/requirements/requirements-tests.txt b/misc/requirements/requirements-tests.txt index 780ddeb5f..1c956cc6e 100644 --- a/misc/requirements/requirements-tests.txt +++ b/misc/requirements/requirements-tests.txt @@ -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 diff --git a/tests/conftest.py b/tests/conftest.py index 424c92c91..d0edc0600 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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') -- cgit v1.2.3-54-g00ecf