Skip to content

Commit 7f7e305

Browse files
Backport PR #60544 on branch 2.3.x (CI/TST: Use tm.external_error_raised for test_from_arrow_respecting_given_dtype_unsafe) (#60545)
Backport PR #60544: CI/TST: Use tm.external_error_raised for test_from_arrow_respecting_given_dtype_unsafe Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 4c2d6b4 commit 7f7e305

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
@@ -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)