Skip to content

Commit 256e344

Browse files
TST: fix decimal cast error message for pyarrow nightly tests (#61749)
1 parent a3d9049 commit 256e344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3295,7 +3295,7 @@ def test_decimal_parse_raises():
32953295
# GH 56984
32963296
ser = pd.Series(["1.2345"], dtype=ArrowDtype(pa.string()))
32973297
with pytest.raises(
3298-
pa.lib.ArrowInvalid, match="Rescaling Decimal128 value would cause data loss"
3298+
pa.lib.ArrowInvalid, match="Rescaling Decimal(128)? value would cause data loss"
32993299
):
33003300
ser.astype(ArrowDtype(pa.decimal128(1, 0)))
33013301

0 commit comments

Comments
 (0)