File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments