mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
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
15 lines
595 B
Python
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"))
|