Skip to content

Commit 36204d3

Browse files
committed
Remove xfail in test_integer
1 parent ff26d95 commit 36204d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/arrays/integer.py

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ def coerce_to_array(
184184
-------
185185
tuple of (values, mask)
186186
"""
187+
values = [] if values is np.nan else values
188+
187189
# if values is integer numpy array, preserve it's dtype
188190
if dtype is None and hasattr(values, "dtype"):
189191
if is_integer_dtype(values.dtype):

pandas/tests/extension/test_integer.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ class TestInterface(base.BaseInterfaceTests):
186186

187187

188188
class TestConstructors(base.BaseConstructorsTests):
189-
@pytest.mark.xfail(reason="bad is-na for empty data")
190-
def test_construct_empty_dataframe(self, dtype):
191-
super().test_construct_empty_dataframe(dtype)
189+
pass
192190

193191

194192
class TestReshaping(base.BaseReshapingTests):

0 commit comments

Comments
 (0)