Skip to content

Commit be3bd20

Browse files
author
Mike Phung
committed
TST GH27994 Update new test to reduce line-breaks for index and re-name result.
1 parent 1bbd4c0 commit be3bd20

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/tests/frame/methods/test_drop.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,13 @@ def test_drop_empty_listlike_non_unique_datetime_index(self, empty_listlike):
276276
"column_a": [5, 10],
277277
"column_b": ["one", "two"]
278278
}
279-
index = [
280-
Timestamp("2021-01-01"),
281-
Timestamp("2021-01-01")
282-
]
279+
index = [Timestamp("2021-01-01"), Timestamp("2021-01-01")]
283280
df = DataFrame(data, index=index)
284281

285282
# Passing empty list-like should return the same DataFrame.
286283
expected = df.copy()
287-
dropped = df.drop(empty_listlike)
288-
tm.assert_frame_equal(dropped, expected)
284+
result = df.drop(empty_listlike)
285+
tm.assert_frame_equal(result, expected)
289286

290287
def test_mixed_depth_drop(self):
291288
arrays = [

0 commit comments

Comments
 (0)