Skip to content

Commit 13bf07a

Browse files
xfail tests triggering empty concat warning
1 parent 380372f commit 13bf07a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pandas/tests/reshape/concat/test_empty.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import numpy as np
22
import pytest
33

4+
from pandas._config import using_string_dtype
5+
46
import pandas as pd
57
from pandas import (
68
DataFrame,
@@ -238,6 +240,8 @@ def test_concat_empty_dataframe_dtypes(self):
238240
assert result["b"].dtype == np.float64
239241
assert result["c"].dtype == np.float64
240242

243+
# triggers warning about empty entries
244+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
241245
def test_concat_inner_join_empty(self):
242246
# GH 15328
243247
df_empty = DataFrame()

pandas/tests/reshape/merge/test_join.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import numpy as np
44
import pytest
55

6+
from pandas._config import using_string_dtype
7+
68
import pandas.util._test_decorators as td
79

810
import pandas as pd
@@ -341,6 +343,8 @@ def test_join_index_mixed_overlap(self):
341343
expected = _join_by_hand(df1, df2)
342344
tm.assert_frame_equal(joined, expected)
343345

346+
# triggers warning about empty entries
347+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
344348
def test_join_empty_bug(self):
345349
# generated an exception in 0.4.3
346350
x = DataFrame()

0 commit comments

Comments
 (0)