3
3
4
4
from pandas ._config import using_string_dtype
5
5
6
+ from pandas .compat import HAS_PYARROW
7
+
6
8
from pandas import (
7
9
DataFrame ,
8
10
Index ,
14
16
from pandas .tests .copy_view .util import get_array
15
17
16
18
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)" )
18
20
def test_concat_frames ():
19
21
df = DataFrame ({"b" : ["a" ] * 3 })
20
22
df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -33,7 +35,7 @@ def test_concat_frames():
33
35
tm .assert_frame_equal (df , df_orig )
34
36
35
37
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)" )
37
39
def test_concat_frames_updating_input ():
38
40
df = DataFrame ({"b" : ["a" ] * 3 })
39
41
df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -153,7 +155,7 @@ def test_concat_copy_keyword():
153
155
assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
154
156
155
157
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)" )
157
159
@pytest .mark .parametrize (
158
160
"func" ,
159
161
[
@@ -249,7 +251,7 @@ def test_merge_copy_keyword():
249
251
assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
250
252
251
253
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)" )
253
255
def test_join_on_key ():
254
256
df_index = Index (["a" , "b" , "c" ], name = "key" )
255
257
@@ -277,7 +279,7 @@ def test_join_on_key():
277
279
tm .assert_frame_equal (df2 , df2_orig )
278
280
279
281
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)" )
281
283
def test_join_multiple_dataframes_on_key ():
282
284
df_index = Index (["a" , "b" , "c" ], name = "key" )
283
285
0 commit comments