Skip to content

Commit 5c250a2

Browse files
committed
handle 32 and 64 options in error msg solving pandas-dev#21796
1 parent 612ce0c commit 5c250a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/arrays/test_array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def test_scalar_raises():
312312
def test_bounds_check():
313313
# GH21796
314314
with pytest.raises(
315-
TypeError, match="cannot safely cast non-equivalent int64 to uint16"
315+
TypeError, match=r"cannot safely cast non-equivalent int(32|64) to uint16"
316316
):
317317
pd.array([-1, 2, 3], dtype="UInt16")
318318

0 commit comments

Comments
 (0)