Skip to content

Commit 8d66126

Browse files
Update test_insert.py
1 parent 785283e commit 8d66126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/indexing/test_insert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +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 = r"Expected a 1D array, got an array with shape\
97-
\(2, 2\)|Wrong number of items passed 2, placement implies 1"
96+
msg = r"Expected a 1D array, got an array with\
97+
shape \(2, 2\)|Wrong number of items passed 2, placement implies 1"
9898
with pytest.raises(ValueError, match=msg):
9999
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)