Skip to content

Commit e0534b3

Browse files
Backport PR pandas-dev#55013 on branch 2.1.x (CI: Ignore hypothesis differing executors) (pandas-dev#55019)
Backport PR pandas-dev#55013: CI: Ignore hypothesis differing executors Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 874a329 commit e0534b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/conftest.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
Index,
7272
MultiIndex,
7373
)
74+
from pandas.util.version import Version
7475

7576
if TYPE_CHECKING:
7677
from collections.abc import (
@@ -190,6 +191,10 @@ def pytest_collection_modifyitems(items, config) -> None:
190191
item.add_marker(pytest.mark.arraymanager)
191192

192193

194+
hypothesis_health_checks = [hypothesis.HealthCheck.too_slow]
195+
if Version(hypothesis.__version__) >= Version("6.83.2"):
196+
hypothesis_health_checks.append(hypothesis.HealthCheck.differing_executors)
197+
193198
# Hypothesis
194199
hypothesis.settings.register_profile(
195200
"ci",
@@ -201,7 +206,7 @@ def pytest_collection_modifyitems(items, config) -> None:
201206
# 2022-02-09: Changed deadline from 500 -> None. Deadline leads to
202207
# non-actionable, flaky CI failures (# GH 24641, 44969, 45118, 44969)
203208
deadline=None,
204-
suppress_health_check=(hypothesis.HealthCheck.too_slow,),
209+
suppress_health_check=tuple(hypothesis_health_checks),
205210
)
206211
hypothesis.settings.load_profile("ci")
207212

0 commit comments

Comments
 (0)