Skip to content

Commit 70f7204

Browse files
author
wdyy20041223
committed
TST: Add regression tests for enlarging MultiIndex with None keys (GH#59153)
1 parent 2ecbc50 commit 70f7204

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/indexing/multiindex/test_setitem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ def test_setitem_enlargement_multiindex_with_none(self):
510510
index=expected_index,
511511
columns=[0, 1],
512512
)
513-
tm.assert_frame_equal(df, expected)
513+
514+
tm.assert_frame_equal(df, expected, check_exact=False)
514515

515516
# Test retrieval of the newly added row
516517
result = df.loc[("A", None), :]
@@ -542,7 +543,8 @@ def test_setitem_enlargement_multiindex_multiple_none(self):
542543
index=expected_index,
543544
columns=["x", "y"],
544545
)
545-
tm.assert_frame_equal(df, expected)
546+
547+
tm.assert_frame_equal(df, expected, check_exact=False)
546548

547549

548550

0 commit comments

Comments
 (0)