Skip to content

Commit 9f1600c

Browse files
test: Suppress too_slow on test_rolling_var_hypothesis_polars (#2674)
Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent aee6605 commit 9f1600c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/expr_and_series/rolling_var_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import hypothesis.strategies as st
77
import pytest
8-
from hypothesis import given
8+
from hypothesis import HealthCheck, given, settings
99

1010
import narwhals as nw
1111
from tests.utils import (
@@ -102,6 +102,8 @@ def test_rolling_var_series(
102102

103103

104104
@given(center=st.booleans(), values=st.lists(st.floats(-10, 10), min_size=5, max_size=10))
105+
@settings(suppress_health_check=[HealthCheck.too_slow])
106+
@pytest.mark.slow
105107
@pytest.mark.skipif(POLARS_VERSION < (1,), reason="different null behavior")
106108
@pytest.mark.filterwarnings("ignore:.*is_sparse is deprecated:DeprecationWarning")
107109
@pytest.mark.filterwarnings("ignore:.*:narwhals.exceptions.NarwhalsUnstableWarning")
@@ -133,6 +135,8 @@ def test_rolling_var_hypothesis(center: bool, values: list[float]) -> None: # n
133135

134136

135137
@given(center=st.booleans(), values=st.lists(st.floats(-10, 10), min_size=5, max_size=10))
138+
@settings(suppress_health_check=[HealthCheck.too_slow])
139+
@pytest.mark.slow
136140
@pytest.mark.skipif(POLARS_VERSION < (1,), reason="different null behavior")
137141
@pytest.mark.filterwarnings("ignore:.*is_sparse is deprecated:DeprecationWarning")
138142
@pytest.mark.filterwarnings("ignore:.*:narwhals.exceptions.NarwhalsUnstableWarning")

0 commit comments

Comments
 (0)