Skip to content

Commit

Permalink
tests: fix hypothesis tests when running in CI
Browse files Browse the repository at this point in the history
hypothesis broke API in HypothesisWorks/hypothesis#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.
  • Loading branch information
lazka committed Nov 15, 2024
1 parent f06094f commit c6fd0ce
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@
import cairo

pytest.importorskip("hypothesis")
from hypothesis import given, strategies, assume, settings
from hypothesis import given, strategies, assume
from hypothesis.strategies import floats, integers

from .hypothesis_fspaths import fspaths


if "CI" in os.environ:
# CI can be slow, so be patient
# Also we can run more tests there
settings.register_profile(
"ci",
deadline=settings.default.deadline * 10,
max_examples=settings.default.max_examples * 5)
settings.load_profile("ci")


@pytest.fixture(scope='module')
def tempdir_path():
dir_ = tempfile.mkdtemp()
Expand Down

0 comments on commit c6fd0ce

Please sign in to comment.