summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-09-08 12:04:37 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-09-08 12:04:37 +0200
commit3fabc8fe37d48910f252a0f1dc125e3deec15325 (patch)
tree64fd530277794bb751054cf9af34d8eda9dda138
parentae2e679dfc095d7501bdd3cfbd9323729a354f63 (diff)
downloadqutebrowser-3fabc8fe37d48910f252a0f1dc125e3deec15325.tar.gz
qutebrowser-3fabc8fe37d48910f252a0f1dc125e3deec15325.zip
tests: Ignore false-positive (?) hypothesis health check
See https://github.com/HypothesisWorks/hypothesis/issues/3733 Should fix nightly builds (and the next dependency upgrade).
-rw-r--r--misc/requirements/requirements-tests.txt2
-rw-r--r--tests/conftest.py14
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')