From 8760dc1b17dcf06f7253a9ce7ac7a15af0785492 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 11 Jan 2021 11:12:53 +0100 Subject: tests: Disable hypothesis fixture health checks --- pytest.ini | 2 -- tests/conftest.py | 13 +++++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pytest.ini b/pytest.ini index 3705a17ef..73c0d7adf 100644 --- a/pytest.ini +++ b/pytest.ini @@ -79,7 +79,5 @@ qt_log_ignore = xfail_strict = true filterwarnings = error - # See https://github.com/HypothesisWorks/hypothesis/issues/2370 - ignore:.*which is reset between function calls but not between test cases generated by:hypothesis.errors.HypothesisDeprecationWarning default:Test process .* failed to terminate!:UserWarning faulthandler_timeout = 90 diff --git a/tests/conftest.py b/tests/conftest.py index fd317d6c4..524325595 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -49,11 +49,20 @@ _qute_scheme_handler = None # Set hypothesis settings hypothesis.settings.register_profile( - 'default', hypothesis.settings(deadline=600)) + 'default', hypothesis.settings( + deadline=600, + suppress_health_check=[hypothesis.HealthCheck.function_scoped_fixture], + ) +) hypothesis.settings.register_profile( 'ci', hypothesis.settings( deadline=None, - suppress_health_check=[hypothesis.HealthCheck.too_slow])) + suppress_health_check=[ + hypothesis.HealthCheck.function_scoped_fixture, + hypothesis.HealthCheck.too_slow, + ] + ) +) hypothesis.settings.load_profile('ci' if testutils.ON_CI else 'default') -- cgit v1.2.3-54-g00ecf