gecko-dev/testing/web-platform/tests/tools/conftest.py
Geoffrey Sneddon 4946fbeb64 Bug 1523562 [wpt PR 14898] - Fix #14894: Disable Python hypothesis deadlines on CI, a=testonly
Automatic update from web-platform-tests
Fix #14894: Disable Python hypothesis deadlines on CI (#14898)

This is causing flakiness on Travis, presumably due to the VM being
pre-empted.
--

wpt-commits: 537d6a95a92f065d02b2606801c986e6e168f745
wpt-pr: 14898
2019-02-07 21:50:31 +00:00

15 lines
595 B
Python

import platform
import os
from hypothesis import settings, HealthCheck
impl = platform.python_implementation()
settings.register_profile("ci", settings(max_examples=1000,
deadline=None,
suppress_health_check=[HealthCheck.too_slow]))
settings.register_profile("pypy", settings(deadline=None,
suppress_health_check=[HealthCheck.too_slow]))
settings.load_profile(os.getenv("HYPOTHESIS_PROFILE",
"default" if impl != "PyPy" else "pypy"))