Skip to content

Commit 74552ce

Browse files
author
nli307
committed
xfail date64
1 parent a187f86 commit 74552ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,13 @@ def test_comp_masked_numpy(self, masked_dtype, comparison_op):
10851085
expected = pd.Series(exp, dtype=ArrowDtype(pa.bool_()))
10861086
tm.assert_series_equal(result, expected)
10871087

1088-
def test_loc_setitem_with_expansion_preserves_ea_index_dtype(self, data):
1088+
def test_loc_setitem_with_expansion_preserves_ea_index_dtype(self, data, request):
1089+
pa_dtype = data.dtype.pyarrow_dtype
1090+
if pa.types.is_date64(pa_dtype):
1091+
mark = pytest.mark.xfail(
1092+
reason="GH#62343 incorrectly casts date64 to timestamp[ms][pyarrow]"
1093+
)
1094+
request.applymarker(mark)
10891095
super().test_loc_setitem_with_expansion_preserves_ea_index_dtype(data)
10901096

10911097

0 commit comments

Comments
 (0)