Skip to content

Commit 8d920f1

Browse files
committed
address PR comment: add assert_frame_equal
1 parent c997161 commit 8d920f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ def test_loc_empty_slice_assignment_with_datetime(self, data):
273273
mask = [False] * len(data)
274274
try:
275275
df = DataFrame(data=data, columns=["A"])
276-
df.loc[mask] = df
277-
assert True
276+
res = df.loc[mask]
277+
res = df
278+
tm.assert_frame_equal(res, df)
278279
except Exception:
279280
pytest.fail("loc empty slice assignment raised Exception unexpectedly!")
280281

0 commit comments

Comments
 (0)