Skip to content

Commit 785283e

Browse files
committed
included both msgs
1 parent 45464d7 commit 785283e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/indexing/test_insert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def test_insert_item_cache(self, using_array_manager):
9393
def test_insert_frame(self):
9494
# GH#42403
9595
df = DataFrame({"col1": [1, 2], "col2": [3, 4]})
96-
msg = "Expected a 1D array, got an array with shape (2, 2)"
96+
msg = r"Expected a 1D array, got an array with shape\
97+
\(2, 2\)|Wrong number of items passed 2, placement implies 1"
9798
with pytest.raises(ValueError, match=msg):
9899
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)