From 24c28865410989038f53a6219ccd0c1c7e4c0adc Mon Sep 17 00:00:00 2001 From: Zac-HD Date: Sun, 14 Oct 2018 00:23:00 +1100 Subject: [PATCH] Bump Hypothesis timeout 200ms to 5s. --- pandas/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/conftest.py b/pandas/conftest.py index e84657a79b51a..b2870f8fd9ece 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -13,6 +13,11 @@ hypothesis.settings.register_profile( "ci", + # Hypothesis timing checks are tuned for scalars by default, so we bump + # them from 200ms to 5 secs per test case as the global default. If this + # is too short for a specific test, (a) try to make it faster, and (b) + # if it really is slow add `@settings(timeout=...)` with a working value. + timeout=5000, suppress_health_check=(hypothesis.HealthCheck.too_slow,) ) hypothesis.settings.load_profile("ci")