1
1
import numpy as np
2
2
import pytest
3
3
4
+ from pandas ._config import using_string_dtype
5
+
4
6
from pandas import (
5
7
DataFrame ,
6
8
Index ,
12
14
from pandas .tests .copy_view .util import get_array
13
15
14
16
17
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
15
18
def test_concat_frames ():
16
19
df = DataFrame ({"b" : ["a" ] * 3 })
17
20
df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -30,6 +33,7 @@ def test_concat_frames():
30
33
tm .assert_frame_equal (df , df_orig )
31
34
32
35
36
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
33
37
def test_concat_frames_updating_input ():
34
38
df = DataFrame ({"b" : ["a" ] * 3 })
35
39
df2 = DataFrame ({"a" : ["a" ] * 3 })
@@ -149,6 +153,7 @@ def test_concat_copy_keyword():
149
153
assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
150
154
151
155
156
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
152
157
@pytest .mark .parametrize (
153
158
"func" ,
154
159
[
@@ -200,6 +205,7 @@ def test_merge_on_index():
200
205
tm .assert_frame_equal (df2 , df2_orig )
201
206
202
207
208
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
203
209
@pytest .mark .parametrize (
204
210
"func, how" ,
205
211
[
@@ -243,6 +249,7 @@ def test_merge_copy_keyword():
243
249
assert np .shares_memory (get_array (df2 , "b" ), get_array (result , "b" ))
244
250
245
251
252
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
246
253
def test_join_on_key ():
247
254
df_index = Index (["a" , "b" , "c" ], name = "key" )
248
255
@@ -270,6 +277,7 @@ def test_join_on_key():
270
277
tm .assert_frame_equal (df2 , df2_orig )
271
278
272
279
280
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
273
281
def test_join_multiple_dataframes_on_key ():
274
282
df_index = Index (["a" , "b" , "c" ], name = "key" )
275
283
0 commit comments