From 93f8adabab3376f93742a6e7151cb6816ee9579f Mon Sep 17 00:00:00 2001 From: alimcmaster1 Date: Tue, 4 Sep 2018 23:18:12 +0100 Subject: [PATCH 1/2] Set hypothesis healthcheck --- pandas/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/conftest.py b/pandas/conftest.py index a49bab31f0bc8..ae8c0aad04bc6 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -9,6 +9,11 @@ from pandas.compat import PY3 import pandas.util._test_decorators as td +from hypothesis import settings, HealthCheck + +settings.suppress_health_check = (HealthCheck.too_slow,) +# HealthCheck.all() to disable all health checks + def pytest_addoption(parser): parser.addoption("--skip-slow", action="store_true", From 5376039cc068b5b1a404e9b33028029a35cebfe7 Mon Sep 17 00:00:00 2001 From: alimcmaster1 Date: Sat, 8 Sep 2018 00:16:57 +0100 Subject: [PATCH 2/2] Add docs link --- pandas/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/conftest.py b/pandas/conftest.py index ae8c0aad04bc6..fdac045e67ffa 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -9,10 +9,10 @@ from pandas.compat import PY3 import pandas.util._test_decorators as td -from hypothesis import settings, HealthCheck - -settings.suppress_health_check = (HealthCheck.too_slow,) +import hypothesis +hypothesis.settings.suppress_health_check = (hypothesis.HealthCheck.too_slow,) # HealthCheck.all() to disable all health checks +# https://hypothesis.readthedocs.io/en/latest/healthchecks.html def pytest_addoption(parser):