Skip to content

Commit

Permalink
Backport PR pandas-dev#60544: CI/TST: Use tm.external_error_raised fo…
Browse files Browse the repository at this point in the history
…r test_from_arrow_respecting_given_dtype_unsafe
  • Loading branch information
mroeschke authored and meeseeksmachine committed Dec 11, 2024
1 parent 4c2d6b4 commit f97f5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/extension/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ def test_from_arrow_respecting_given_dtype():

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


Expand Down

0 comments on commit f97f5e1

Please sign in to comment.