We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05ae867 commit fd6a656Copy full SHA for fd6a656
pandas/tests/tseries/offsets/test_dst.py
@@ -31,6 +31,10 @@
31
)
32
33
from pandas.tests.tseries.offsets.test_offsets import get_utc_offset_hours
34
+from pandas.util.version import Version
35
+
36
+# error: Module has no attribute "__version__"
37
+pytz_version = Version(pytz.__version__) # type: ignore[attr-defined]
38
39
40
class TestDST:
@@ -186,9 +190,8 @@ def test_all_offset_classes(self, tup):
186
190
MonthBegin(66),
187
191
"Africa/Kinshasa",
188
192
marks=pytest.mark.xfail(
189
- # error: Module has no attribute "__version__"
- float(pytz.__version__) <= 2020.1, # type: ignore[attr-defined]
- reason="GH#41906",
193
+ pytz_version < Version("2020.5") or pytz_version == Version("2022.2"),
194
+ reason="GH#41906: pytz utc transition dates changed",
195
),
196
197
(
0 commit comments