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 8
8
tests, or when trying to pin down the bugs exposed by the tests below.
9
9
"""
10
10
11
+ import zoneinfo
12
+
11
13
from hypothesis import (
12
14
assume ,
13
15
given ,
14
16
)
15
17
import pytest
16
18
19
+ from pandas .compat import WASM
20
+
17
21
import pandas as pd
18
22
from pandas ._testing ._hypothesis import (
19
23
DATETIME_JAN_1_1900_OPTIONAL_TZ ,
28
32
@given (DATETIME_JAN_1_1900_OPTIONAL_TZ , YQM_OFFSET )
29
33
def test_on_offset_implementations (dt , offset ):
30
34
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
+ )
31
44
# check that the class-specific implementations of is_on_offset match
32
45
# the general case definition:
33
46
# (dt + offset) - offset == dt
You can’t perform that action at this time.
0 commit comments