Skip to content

Commit f97f5e1

Browse files
mroeschkemeeseeksmachine
authored andcommitted
Backport PR pandas-dev#60544: CI/TST: Use tm.external_error_raised for test_from_arrow_respecting_given_dtype_unsafe
1 parent 4c2d6b4 commit f97f5e1

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
@@ -1637,7 +1637,7 @@ def test_from_arrow_respecting_given_dtype():
16371637

16381638
def test_from_arrow_respecting_given_dtype_unsafe():
16391639
array = pa.array([1.5, 2.5], type=pa.float64())
1640-
with pytest.raises(pa.ArrowInvalid, match="Float value 1.5 was truncated"):
1640+
with tm.external_error_raised(pa.ArrowInvalid):
16411641
array.to_pandas(types_mapper={pa.float64(): ArrowDtype(pa.int64())}.get)
16421642

16431643

0 commit comments

Comments
 (0)