@@ -257,14 +257,15 @@ def test_add_strings(any_string_dtype, request):
257257 tm .assert_frame_equal (result , expected )
258258
259259
260- @pytest .mark .xfail (reason = "GH-28527" )
261- def test_add_frame (request , dtype ):
262- if dtype .storage == "python" :
263- # Inconsistent behavior between different versions of the python engine.
264- # Some return correctly, some return but with the wrong dtype
265- # Others just fail, we are blanket failing all
266- mark = pytest .mark .xfail (reason = "[XPASS(strict)] GH-28527" )
267- request .node .applymarker (mark )
260+ def test_add_frame (any_string_dtype , request ):
261+ # Inconsistent behavior between different versions of the python engine.
262+ # Environments without PyArrow correctly return the value for python storage
263+ # The same does not hold for
264+ dtype = any_string_dtype
265+ if HAS_PYARROW or getattr (dtype , "storage" , None ) != "python" :
266+ marks = pytest .mark .xfail (reason = "GH-28527" )
267+ request .applymarker (marks )
268+
268269 arr = pd .array (["a" , "b" , np .nan , np .nan ], dtype = dtype )
269270 df = pd .DataFrame ([["x" , np .nan , "y" , np .nan ]])
270271 assert arr .__add__ (df ) is NotImplemented
0 commit comments