From 967212631719de1aeccbd6855c5b6d03f271fdfe Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 25 Nov 2024 08:27:59 +0100 Subject: [PATCH] tests: fix hypothesis tests when running in CI hypothesis broke API in https://github.com/HypothesisWorks/hypothesis/pull/4152 by changing the documented settings defaults to a different type (it's a good change though) Since the upstream change is trying to make good defaults for CI remove our CI specific settings adjustments and just use the new defaults. --- tests/conftest.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py deleted file mode 100644 index 3b436fc3..00000000 --- a/tests/conftest.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import platform - -from hypothesis import settings - - -if "CI" in os.environ: - # CI can be slow, so be patient - # Also we can run more tests there - - max_examples = settings.default.max_examples * 5 - if platform.python_implementation() == "PyPy": - # PyPy is too slow - max_examples = settings.default.max_examples - - settings.register_profile( - "ci", - deadline=settings.default.deadline * 10, - max_examples=max_examples) - settings.load_profile("ci")