Skip to content

Commit c59f52e

Browse files
committed
Fix pyarrow 17 test
1 parent 445842e commit c59f52e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/tests/io/test_parquet.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from pandas.compat import is_platform_windows
1313
from pandas.compat.pyarrow import (
14+
pa_version_under10p1,
1415
pa_version_under11p0,
1516
pa_version_under13p0,
1617
pa_version_under15p0,
@@ -954,12 +955,14 @@ def test_timezone_aware_index(self, request, pa, timezone_aware_date_list):
954955

955956
if (
956957
timezone_aware_date_list.tzinfo != datetime.timezone.utc
957-
and pa_version_under17p0
958+
and not pa_version_under10p1
958959
):
959960
request.applymarker(
960961
pytest.mark.xfail(
961-
reason="temporary skip this test until it is properly resolved: "
962-
"https://github.com/pandas-dev/pandas/issues/37286"
962+
reason=(
963+
"pyarrow returns pytz.FixedOffset while pandas "
964+
"constructs datetime.timezone https://github.com/pandas-dev/pandas/issues/37286"
965+
)
963966
)
964967
)
965968
idx = 5 * [timezone_aware_date_list]

0 commit comments

Comments
 (0)