From 40db2ea656417f65e2b98906e4025207059565c4 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 23 Dec 2024 15:27:18 -0500 Subject: [PATCH] Fixed test failures --- pandas/tests/extension/test_arrow.py | 2 +- pandas/tests/frame/methods/test_astype.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 6dd1f3f15bc15..be75530ff8f66 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -3451,7 +3451,7 @@ def test_string_to_datetime_parsing_cast(): ) def test_interpolate_not_numeric(data): if not data.dtype._is_numeric: - with pytest.raises(ValueError, match="Values must be numeric."): + with pytest.raises(NotImplementedError, match="interpolate is not implemented"): pd.Series(data).interpolate() diff --git a/pandas/tests/frame/methods/test_astype.py b/pandas/tests/frame/methods/test_astype.py index 76df4e28eb5a2..1bc5debd3f4db 100644 --- a/pandas/tests/frame/methods/test_astype.py +++ b/pandas/tests/frame/methods/test_astype.py @@ -767,6 +767,7 @@ def test_astype_dt64_to_string( assert item is pd.NA # Check that Series/DataFrame.astype matches DatetimeArray.astype + result = obj.astype("str") expected = frame_or_series(dta.astype("str")) tm.assert_equal(result, expected)