Skip to content

Commit 32f21ea

Browse files
committed
Backport PR pandas-dev#60186: TST: Skip flaky offset test case on WASM
1 parent b9f1bc6 commit 32f21ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@
77
You may wish to consult the previous version for inspiration on further
88
tests, or when trying to pin down the bugs exposed by the tests below.
99
"""
10+
11+
import zoneinfo
12+
1013
from hypothesis import (
1114
assume,
1215
given,
1316
)
1417
import pytest
1518
import pytz
1619

20+
from pandas.compat import WASM
21+
1722
import pandas as pd
1823
from pandas._testing._hypothesis import (
1924
DATETIME_JAN_1_1900_OPTIONAL_TZ,
@@ -28,6 +33,15 @@
2833
@given(DATETIME_JAN_1_1900_OPTIONAL_TZ, YQM_OFFSET)
2934
def test_on_offset_implementations(dt, offset):
3035
assume(not offset.normalize)
36+
# This case is flaky in CI 2024-11-04
37+
assume(
38+
not (
39+
WASM
40+
and isinstance(dt.tzinfo, zoneinfo.ZoneInfo)
41+
and dt.tzinfo.key == "Indian/Cocos"
42+
and isinstance(offset, pd.offsets.MonthBegin)
43+
)
44+
)
3145
# check that the class-specific implementations of is_on_offset match
3246
# the general case definition:
3347
# (dt + offset) - offset == dt

0 commit comments

Comments
 (0)