Skip to content

Commit

Permalink
Fixed test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Dec 23, 2024
1 parent ee46751 commit 40db2ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -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()


Expand Down
1 change: 1 addition & 0 deletions pandas/tests/frame/methods/test_astype.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 40db2ea

Please sign in to comment.