We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ab7165 commit c377804Copy full SHA for c377804
pandas/tests/reshape/merge/test_merge.py
@@ -3066,8 +3066,8 @@ def test_merge_for_suffix_collisions():
3066
# GH#61402
3067
# Case 1: suffixes=("_dup", "") test collision
3068
df1 = DataFrame({"col1": [1], "col2": [2]})
3069
- df2 = DataFrame({"col1": [1], "col2": [2], "col2_dup": [3]})
3070
- with pytest.raises(MergeError, match="duplicate columns"):
+ df2 = DataFrame({"col1": [1], "col2": [2], "col2_dup": [3]})
+ with pytest.raises(MergeError, match="duplicate columns"):
3071
merge(df1, df2, on="col1", suffixes=("_dup", ""))
3072
3073
# Case 2: suffixes=("", "_dup") test collision
0 commit comments