Skip to content

Commit

Permalink
CI/TST: Use tm.external_error_raised for test_from_arrow_respecting_g…
Browse files Browse the repository at this point in the history
…iven_dtype_unsafe (#60544)
  • Loading branch information
mroeschke authored Dec 11, 2024
1 parent 719fc0f commit 38224dd
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 @@ -1647,7 +1647,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 38224dd

Please sign in to comment.