File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
pandas/tests/tseries/offsets Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 31
31
)
32
32
33
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]
34
38
35
39
36
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__"
190
- float (pytz .__version__ ) <= 2020.1 , # type: ignore[attr-defined]
191
- reason = "GH#41906" ,
193
+ pytz_version < Version ("2020.5" ) or pytz_version == Version ("2022.2" ),
194
+ reason = "GH#41906: pytz utc transition dates changed" ,
192
195
),
193
196
),
194
197
(
You can’t perform that action at this time.
0 commit comments