Skip to content

Commit

Permalink
Backport PR #48065 on branch 1.4.x (CI/DEPS: Fix timezone test due to…
Browse files Browse the repository at this point in the history
… pytz upgrade) (#48076)

Backport PR #48065: CI/DEPS: Fix timezone test due to pytz upgrade

Co-authored-by: Matthew Roeschke <[email protected]>
  • Loading branch information
meeseeksmachine and mroeschke authored Aug 14, 2022
1 parent 05ae867 commit 8b58762
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pandas/tests/tseries/offsets/test_dst.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
)

from pandas.tests.tseries.offsets.test_offsets import get_utc_offset_hours
from pandas.util.version import Version

# error: Module has no attribute "__version__"
pytz_version = Version(pytz.__version__) # type: ignore[attr-defined]


class TestDST:
Expand Down Expand Up @@ -186,9 +190,8 @@ def test_all_offset_classes(self, tup):
MonthBegin(66),
"Africa/Kinshasa",
marks=pytest.mark.xfail(
# error: Module has no attribute "__version__"
float(pytz.__version__) <= 2020.1, # type: ignore[attr-defined]
reason="GH#41906",
pytz_version < Version("2020.5") or pytz_version == Version("2022.2"),
reason="GH#41906: pytz utc transition dates changed",
),
),
(
Expand Down

0 comments on commit 8b58762

Please sign in to comment.