Skip to content

Commit 691fc88

Browse files
authored
Backport PR pandas-dev#58181 on branch 2.2.x (CI: correct error msg in test_view_index) (pandas-dev#58187)
Backport PR pandas-dev#58181: CI: correct error msg in `test_view_index`
1 parent a947587 commit 691fc88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/indexes/test_base.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ def test_view_with_args_object_array_raises(self, index):
358358
with pytest.raises(NotImplementedError, match="i8"):
359359
index.view("i8")
360360
else:
361-
msg = "Cannot change data-type for object array"
361+
msg = (
362+
"Cannot change data-type for array of references|"
363+
"Cannot change data-type for object array|"
364+
)
362365
with pytest.raises(TypeError, match=msg):
363366
index.view("i8")
364367

0 commit comments

Comments
 (0)