Skip to content

Commit

Permalink
pythongh-86275: Don't fail PBTs for running slowly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed May 20, 2023
1 parent d1732fe commit f08da66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Lib/test/support/hypothesis_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
import hypothesis
except ImportError:
from . import _hypothesis_stubs as hypothesis
else:
# When using the real Hypothesis, we'll configure it to ignore occasional
# slow tests (avoiding flakiness from random VM slowness in CI).
hypothesis.settings.register_profile(
"slow-is-ok",
deadline=None,
suppress_health_check=[hypothesis.HealthCheck.too_slow],
)
hypothesis.settings.load_profile("slow-is-ok")

0 comments on commit f08da66

Please sign in to comment.