33
44from pandas ._config import using_string_dtype
55
6+ from pandas .compat import HAS_PYARROW
7+
68from pandas import (
79 DataFrame ,
810 Index ,
1416from pandas .tests .copy_view .util import get_array
1517
1618
17- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
19+ @pytest .mark .xfail (using_string_dtype () and HAS_PYARROW , reason = "TODO(infer_string)" )
1820def test_concat_frames ():
1921 df = DataFrame ({"b" : ["a" ] * 3 })
2022 df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -33,7 +35,7 @@ def test_concat_frames():
3335 tm .assert_frame_equal (df , df_orig )
3436
3537
36- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
38+ @pytest .mark .xfail (using_string_dtype () and HAS_PYARROW , reason = "TODO(infer_string)" )
3739def test_concat_frames_updating_input ():
3840 df = DataFrame ({"b" : ["a" ] * 3 })
3941 df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -153,7 +155,7 @@ def test_concat_copy_keyword():
153155 assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
154156
155157
156- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
158+ @pytest .mark .xfail (using_string_dtype () and HAS_PYARROW , reason = "TODO(infer_string)" )
157159@pytest .mark .parametrize (
158160 "func" ,
159161 [
@@ -249,7 +251,7 @@ def test_merge_copy_keyword():
249251 assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
250252
251253
252- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
254+ @pytest .mark .xfail (using_string_dtype () and HAS_PYARROW , reason = "TODO(infer_string)" )
253255def test_join_on_key ():
254256 df_index = Index (["a" , "b" , "c" ], name = "key" )
255257
@@ -277,7 +279,7 @@ def test_join_on_key():
277279 tm .assert_frame_equal (df2 , df2_orig )
278280
279281
280- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
282+ @pytest .mark .xfail (using_string_dtype () and HAS_PYARROW , reason = "TODO(infer_string)" )
281283def test_join_multiple_dataframes_on_key ():
282284 df_index = Index (["a" , "b" , "c" ], name = "key" )
283285
0 commit comments