Skip to content

Commit 36d2e98

Browse files
committed
TST: Skip flaky offset test case on WASM
1 parent dbeeb1f commit 36d2e98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
)
1515
import pytest
1616

17+
from pandas.compat import WASM
18+
1719
import pandas as pd
1820
from pandas._testing._hypothesis import (
1921
DATETIME_JAN_1_1900_OPTIONAL_TZ,
@@ -28,6 +30,14 @@
2830
@given(DATETIME_JAN_1_1900_OPTIONAL_TZ, YQM_OFFSET)
2931
def test_on_offset_implementations(dt, offset):
3032
assume(not offset.normalize)
33+
# This case is flaky in CI 2024-11-04
34+
assume(
35+
not (
36+
WASM
37+
and dt.tzinfo.key == "Indian/Cocos"
38+
and isinstance(offset, pd.offsets.MonthBegin)
39+
)
40+
)
3141
# check that the class-specific implementations of is_on_offset match
3242
# the general case definition:
3343
# (dt + offset) - offset == dt

0 commit comments

Comments
 (0)