Skip to content

Commit 078165a

Browse files
committed
updated
1 parent 785283e commit 078165a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/frame/indexing/test_insert.py

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

0 commit comments

Comments
 (0)