File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
pandas/tests/tseries/offsets Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 88tests, or when trying to pin down the bugs exposed by the tests below.
99"""
1010
11+ import zoneinfo
12+
1113from hypothesis import (
1214 assume ,
1315 given ,
1416)
1517import pytest
1618
19+ from pandas .compat import WASM
20+
1721import pandas as pd
1822from pandas ._testing ._hypothesis import (
1923 DATETIME_JAN_1_1900_OPTIONAL_TZ ,
2832@given (DATETIME_JAN_1_1900_OPTIONAL_TZ , YQM_OFFSET )
2933def test_on_offset_implementations (dt , offset ):
3034 assume (not offset .normalize )
35+ # This case is flaky in CI 2024-11-04
36+ assume (
37+ not (
38+ WASM
39+ and isinstance (dt .tzinfo , zoneinfo .ZoneInfo )
40+ and dt .tzinfo .key == "Indian/Cocos"
41+ and isinstance (offset , pd .offsets .MonthBegin )
42+ )
43+ )
3144 # check that the class-specific implementations of is_on_offset match
3245 # the general case definition:
3346 # (dt + offset) - offset == dt
You can’t perform that action at this time.
0 commit comments