File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
pandas/tests/tseries/offsets Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 77You may wish to consult the previous version for inspiration on further
88tests, or when trying to pin down the bugs exposed by the tests below.
99"""
10+
11+ import zoneinfo
12+
1013from hypothesis import (
1114 assume ,
1215 given ,
1316)
1417import pytest
1518import pytz
1619
20+ from pandas .compat import WASM
21+
1722import pandas as pd
1823from pandas ._testing ._hypothesis import (
1924 DATETIME_JAN_1_1900_OPTIONAL_TZ ,
2833@given (DATETIME_JAN_1_1900_OPTIONAL_TZ , YQM_OFFSET )
2934def 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
You can’t perform that action at this time.
0 commit comments