Skip to content

Commit 61d03e2

Browse files
committed
unxfail on no-infer-string build
1 parent 990c31a commit 61d03e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/arithmetic/test_string.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,21 +213,22 @@ def test_add_2d(any_string_dtype, request):
213213
s + b
214214

215215

216-
def test_add_sequence(any_string_dtype, request):
216+
def test_add_sequence(any_string_dtype, request, using_infer_string):
217217
dtype = any_string_dtype
218218
if (
219219
dtype != object
220220
and dtype.storage == "python"
221221
and dtype.na_value is np.nan
222222
and HAS_PYARROW
223+
and using_infer_string
223224
):
224225
mark = pytest.mark.xfail(
225226
reason="As of GH#62522, the list gets wrapped with sanitize_array, "
226227
"which casts to a higher-priority StringArray, so we get "
227228
"NotImplemented."
228229
)
229230
request.applymarker(mark)
230-
if dtype == np.dtype(object):
231+
if dtype == np.dtype(object) and using_infer_string:
231232
mark = pytest.mark.xfail(reason="Cannot broadcast list")
232233
request.applymarker(mark)
233234

0 commit comments

Comments
 (0)