From 1f947243386df2b5775026b4af18062cae44265d Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 30 Oct 2023 14:58:23 -0700 Subject: [PATCH] Fix test_constructor_coercion_signed_to_unsigned --- pandas/tests/indexes/numeric/test_numeric.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py index d559e548713ec..a16b68a57dcc7 100644 --- a/pandas/tests/indexes/numeric/test_numeric.py +++ b/pandas/tests/indexes/numeric/test_numeric.py @@ -410,8 +410,7 @@ def test_constructor_coercion_signed_to_unsigned( msg = "|".join( [ "Trying to coerce negative values to unsigned integers", - "The elements provided in the data cannot all be casted " - "to the dtype uint8", + "The elements provided in the data cannot all be casted", ] ) with pytest.raises(OverflowError, match=msg):