File tree 1 file changed +14
-0
lines changed
pandas/tests/tseries/offsets 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 7
7
You may wish to consult the previous version for inspiration on further
8
8
tests, or when trying to pin down the bugs exposed by the tests below.
9
9
"""
10
+
11
+ import zoneinfo
12
+
10
13
from hypothesis import (
11
14
assume ,
12
15
given ,
13
16
)
14
17
import pytest
15
18
import pytz
16
19
20
+ from pandas .compat import WASM
21
+
17
22
import pandas as pd
18
23
from pandas ._testing ._hypothesis import (
19
24
DATETIME_JAN_1_1900_OPTIONAL_TZ ,
28
33
@given (DATETIME_JAN_1_1900_OPTIONAL_TZ , YQM_OFFSET )
29
34
def test_on_offset_implementations (dt , offset ):
30
35
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
+ )
31
45
# check that the class-specific implementations of is_on_offset match
32
46
# the general case definition:
33
47
# (dt + offset) - offset == dt
You can’t perform that action at this time.
0 commit comments