11import numpy as np
22import pytest
33
4+ from pandas ._config import using_string_dtype
5+
46from pandas import (
57 DataFrame ,
68 Index ,
1214from pandas .tests .copy_view .util import get_array
1315
1416
17+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1518def test_concat_frames ():
1619 df = DataFrame ({"b" : ["a" ] * 3 })
1720 df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -30,6 +33,7 @@ def test_concat_frames():
3033 tm .assert_frame_equal (df , df_orig )
3134
3235
36+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
3337def test_concat_frames_updating_input ():
3438 df = DataFrame ({"b" : ["a" ] * 3 })
3539 df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -149,6 +153,7 @@ def test_concat_copy_keyword():
149153 assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
150154
151155
156+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
152157@pytest .mark .parametrize (
153158 "func" ,
154159 [
@@ -200,6 +205,7 @@ def test_merge_on_index():
200205 tm .assert_frame_equal (df2 , df2_orig )
201206
202207
208+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
203209@pytest .mark .parametrize (
204210 "func, how" ,
205211 [
@@ -243,6 +249,7 @@ def test_merge_copy_keyword():
243249 assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
244250
245251
252+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
246253def test_join_on_key ():
247254 df_index = Index (["a" , "b" , "c" ], name = "key" )
248255
@@ -270,6 +277,7 @@ def test_join_on_key():
270277 tm .assert_frame_equal (df2 , df2_orig )
271278
272279
280+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
273281def test_join_multiple_dataframes_on_key ():
274282 df_index = Index (["a" , "b" , "c" ], name = "key" )
275283
0 commit comments