Skip to content

Commit cb7450c

Browse files
removed error msg
1 parent 9558ae3 commit cb7450c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/frame/indexing/test_insert.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,5 @@ 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)"
97-
with pytest.raises(ValueError, match=msg):
96+
with pytest.raises(ValueError):
9897
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)