File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
import pytest
3
3
4
+ from pandas ._config import using_string_dtype
5
+
4
6
import pandas as pd
5
7
from pandas import (
6
8
DataFrame ,
@@ -238,6 +240,8 @@ def test_concat_empty_dataframe_dtypes(self):
238
240
assert result ["b" ].dtype == np .float64
239
241
assert result ["c" ].dtype == np .float64
240
242
243
+ # triggers warning about empty entries
244
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
241
245
def test_concat_inner_join_empty (self ):
242
246
# GH 15328
243
247
df_empty = DataFrame ()
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import pytest
5
5
6
+ from pandas ._config import using_string_dtype
7
+
6
8
import pandas .util ._test_decorators as td
7
9
8
10
import pandas as pd
@@ -341,6 +343,8 @@ def test_join_index_mixed_overlap(self):
341
343
expected = _join_by_hand (df1 , df2 )
342
344
tm .assert_frame_equal (joined , expected )
343
345
346
+ # triggers warning about empty entries
347
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
344
348
def test_join_empty_bug (self ):
345
349
# generated an exception in 0.4.3
346
350
x = DataFrame ()
You can’t perform that action at this time.
0 commit comments