Skip to content

Commit 7fd4939

Browse files
revert 'removed msg'
1 parent cb7450c commit 7fd4939

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,5 +93,6 @@ 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-
with pytest.raises(ValueError):
96+
msg = "Expected a 1D array, got an array with shape (2, 2)"
97+
with pytest.raises(ValueError, match=msg):
9798
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)