We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f1e2d commit 4718defCopy full SHA for 4718def
pandas/tests/reshape/merge/test_multi.py
@@ -582,13 +582,15 @@ def test_join_multi_levels(self):
582
# invalid cases
583
household.index.name = "foo"
584
585
- with pytest.raises(ValueError):
+ with pytest.raises(
586
+ ValueError, match="cannot join with no overlapping index names"
587
+ ):
588
household.join(portfolio, how="inner")
589
590
portfolio2 = portfolio.copy()
591
portfolio2.index.set_names(["household_id", "foo"])
592
593
+ with pytest.raises(ValueError, match="columns overlap but no suffix specified"):
594
portfolio2.join(portfolio, how="inner")
595
596
def test_join_multi_levels2(self):
0 commit comments