Skip to content

Commit

Permalink
CI: don't increase hypothesis example count with PyPy
Browse files Browse the repository at this point in the history
PyPy takes way too long in CI
  • Loading branch information
lazka committed Sep 3, 2023
1 parent a98c1d0 commit fe119bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
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=settings.default.max_examples * 5)
max_examples=max_examples)
settings.load_profile("ci")

0 comments on commit fe119bf

Please sign in to comment.