Skip to content

Commit 71f01a8

Browse files
author
Mike Phung
committed
TST GH27994 Add additional empty list-like objects to test.
1 parent 8682c36 commit 71f01a8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pandas/tests/frame/methods/test_drop.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,17 @@ def test_drop_non_empty_list(self, index, drop_labels):
269269
with pytest.raises(KeyError, match="not found in axis"):
270270
DataFrame(index=index).drop(drop_labels)
271271

272-
@pytest.mark.parametrize("empty_listlike", [[], DatetimeIndex([])])
272+
@pytest.mark.parametrize(
273+
"empty_listlike",
274+
[
275+
[],
276+
{},
277+
np.array([]),
278+
Series([], dtype="datetime64[ns]"),
279+
Index([]),
280+
DatetimeIndex([]),
281+
],
282+
)
273283
def test_drop_empty_listlike_non_unique_datetime_index(self, empty_listlike):
274284
# GH#27994
275285
data = {"column_a": [5, 10], "column_b": ["one", "two"]}

0 commit comments

Comments
 (0)