Skip to content

Commit e2159ec

Browse files
updated msg
1 parent 7fd4939 commit e2159ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/indexing/test_insert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +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-
msg = "Expected a 1D array, got an array with shape (2, 2)"
96+
msg = r"Expected a 1D array, got an array with shape \(2, 2\)"
9797
with pytest.raises(ValueError, match=msg):
9898
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)