Skip to content

Commit 40db2ea

Browse files
committed
Fixed test failures
1 parent ee46751 commit 40db2ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3451,7 +3451,7 @@ def test_string_to_datetime_parsing_cast():
34513451
)
34523452
def test_interpolate_not_numeric(data):
34533453
if not data.dtype._is_numeric:
3454-
with pytest.raises(ValueError, match="Values must be numeric."):
3454+
with pytest.raises(NotImplementedError, match="interpolate is not implemented"):
34553455
pd.Series(data).interpolate()
34563456

34573457

pandas/tests/frame/methods/test_astype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ def test_astype_dt64_to_string(
767767
assert item is pd.NA
768768

769769
# Check that Series/DataFrame.astype matches DatetimeArray.astype
770+
result = obj.astype("str")
770771
expected = frame_or_series(dta.astype("str"))
771772
tm.assert_equal(result, expected)
772773

0 commit comments

Comments
 (0)