Skip to content

Commit

Permalink
Backport PR #55013 on branch 2.1.x (CI: Ignore hypothesis differing e…
Browse files Browse the repository at this point in the history
…xecutors) (#55019)

Backport PR #55013: CI: Ignore hypothesis differing executors

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and mroeschke committed Sep 5, 2023
1 parent 874a329 commit e0534b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pandas/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
Index,
MultiIndex,
)
from pandas.util.version import Version

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


hypothesis_health_checks = [hypothesis.HealthCheck.too_slow]
if Version(hypothesis.__version__) >= Version("6.83.2"):
hypothesis_health_checks.append(hypothesis.HealthCheck.differing_executors)

# Hypothesis
hypothesis.settings.register_profile(
"ci",
Expand All @@ -201,7 +206,7 @@ def pytest_collection_modifyitems(items, config) -> None:
# 2022-02-09: Changed deadline from 500 -> None. Deadline leads to
# non-actionable, flaky CI failures (# GH 24641, 44969, 45118, 44969)
deadline=None,
suppress_health_check=(hypothesis.HealthCheck.too_slow,),
suppress_health_check=tuple(hypothesis_health_checks),
)
hypothesis.settings.load_profile("ci")

Expand Down

0 comments on commit e0534b3

Please sign in to comment.