Skip to content

Commit 38224dd

Browse files
authored
CI/TST: Use tm.external_error_raised for test_from_arrow_respecting_given_dtype_unsafe (#60544)
1 parent 719fc0f commit 38224dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/extension/test_arrow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ def test_from_arrow_respecting_given_dtype():
16471647

16481648
def test_from_arrow_respecting_given_dtype_unsafe():
16491649
array = pa.array([1.5, 2.5], type=pa.float64())
1650-
with pytest.raises(pa.ArrowInvalid, match="Float value 1.5 was truncated"):
1650+
with tm.external_error_raised(pa.ArrowInvalid):
16511651
array.to_pandas(types_mapper={pa.float64(): ArrowDtype(pa.int64())}.get)
16521652

16531653

0 commit comments

Comments
 (0)