Skip to content

Commit 2058120

Browse files
fix xfail condition
1 parent 48907c3 commit 2058120

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/extension/test_string.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import numpy as np
2323
import pytest
2424

25+
from pandas.compat import HAS_PYARROW
26+
2527
from pandas.core.dtypes.base import StorageExtensionDtype
2628

2729
import pandas as pd
@@ -238,8 +240,12 @@ def test_arith_series_with_array(
238240
if (
239241
using_infer_string
240242
and all_arithmetic_operators == "__radd__"
241-
and dtype.na_value is pd.NA
243+
and (
244+
dtype.na_value is pd.NA
245+
and not (not HAS_PYARROW and dtype.storage == "python")
246+
)
242247
):
248+
# TODO(infer_string)
243249
mark = pytest.mark.xfail(
244250
reason="The pointwise operation result will be inferred to "
245251
"string[nan, pyarrow], which does not match the input dtype"

0 commit comments

Comments
 (0)