Skip to content

Commit d3257cf

Browse files
committed
update condition
1 parent 85075f4 commit d3257cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/arithmetic/test_string.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,12 @@ def test_add_2d(any_string_dtype, request):
215215

216216
def test_add_sequence(any_string_dtype, request):
217217
dtype = any_string_dtype
218-
if dtype != object and dtype.storage == "python" and dtype.na_value is np.nan:
218+
if (
219+
dtype != object
220+
and dtype.storage == "python"
221+
and dtype.na_value is np.nan
222+
and HAS_PYARROW
223+
):
219224
mark = pytest.mark.xfail(
220225
reason="As of GH#62522, the list gets wrapped with sanitize_array, "
221226
"which casts to a higher-priority StringArray, so we get "

0 commit comments

Comments
 (0)