Skip to content

Commit 350ff72

Browse files
committed
Check for zoneinfo directly
1 parent 418a94a commit 350ff72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
tests, or when trying to pin down the bugs exposed by the tests below.
99
"""
1010

11+
import zoneinfo
12+
1113
from hypothesis import (
1214
assume,
1315
given,
@@ -34,7 +36,7 @@ def test_on_offset_implementations(dt, offset):
3436
assume(
3537
not (
3638
WASM
37-
and dt.tzinfo is not None
39+
and isinstance(dt.tzinfo, zoneinfo.ZoneInfo)
3840
and dt.tzinfo.key == "Indian/Cocos"
3941
and isinstance(offset, pd.offsets.MonthBegin)
4042
)

0 commit comments

Comments
 (0)