Skip to content

Commit 549b5bc

Browse files
committed
wip
1 parent 7b85c02 commit 549b5bc

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pandas/tests/series/methods/test_convert_dtypes.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,6 @@ class TestSeriesConvertDtypes:
164164
pd.PeriodDtype("M"),
165165
{},
166166
),
167-
(
168-
pd.arrays.IntervalArray([pd.Interval(0, 1), pd.Interval(1, 5)]),
169-
None,
170-
pd.IntervalDtype("int64", "right"),
171-
{},
172-
),
173167
],
174168
)
175169
@pytest.mark.parametrize("params", product(*[(True, False)] * 5))
@@ -230,11 +224,7 @@ def test_convert_dtypes(
230224
# Test that it is a copy
231225
copy = series.copy(deep=True)
232226

233-
if result.notna().sum() > 0 and result.dtype in ["interval[int64, right]"]:
234-
with tm.assert_produces_warning(FutureWarning, match="incompatible dtype"):
235-
result[result.notna()] = np.nan
236-
else:
237-
result[result.notna()] = np.nan
227+
result[result.notna()] = np.nan
238228

239229
# Make sure original not changed
240230
tm.assert_series_equal(series, copy)

0 commit comments

Comments
 (0)