Skip to content

Commit c268ed4

Browse files
committed
CI: Ignore hypothesis differing executors (pandas-dev#55013)
1 parent ff99f88 commit c268ed4

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 (
@@ -191,6 +192,10 @@ def pytest_collection_modifyitems(items, config) -> None:
191192
item.add_marker(pytest.mark.arraymanager)
192193

193194

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

0 commit comments

Comments
 (0)