From d95bf7ade213c138eee2f1a85f88b378b08b07aa Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 26 Jun 2024 17:07:22 -0600 Subject: [PATCH] Suppress the data_too_large health check This is a temporary workaround until we can figure out what is causing tests to fail it. See https://github.com/data-apis/array-api-tests/issues/277 --- conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index c315fd82..80e11068 100644 --- a/conftest.py +++ b/conftest.py @@ -4,7 +4,7 @@ import warnings import os -from hypothesis import settings +from hypothesis import settings, HealthCheck from hypothesis.errors import InvalidArgument from pytest import mark @@ -105,6 +105,10 @@ def pytest_configure(config): max_examples=config.getoption("--hypothesis-max-examples"), derandomize=config.getoption("--hypothesis-derandomize"), deadline=deadline, + # TEMP FIX: Tests are randomly failing the data_too_large health + # check. Just suppress it for now. See + # https://github.com/data-apis/array-api-tests/issues/277 + suppress_health_check=(HealthCheck.data_too_large,), ) settings.load_profile("array-api-tests") # CI