Skip to content

Commit 33fceb1

Browse files
committed
Adjust arrow tests
1 parent 3714ff5 commit 33fceb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3451,7 +3451,9 @@ 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+
ser = pd.Series(data)
3455+
msg = re.escape(f"Cannot interpolate with {ser.dtype} dtype")
3456+
with pytest.raises(TypeError, match=msg):
34553457
pd.Series(data).interpolate()
34563458

34573459

0 commit comments

Comments
 (0)