diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 72f08876e71ae2..10e50800845805 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -1338,7 +1338,7 @@ def test_interp_limit_bad_direction(self): msg = ( r"Invalid limit_direction: expecting one of \['forward'," - r" 'backward', 'both'\], got 'abc'" + r" 'backward', 'both'\], got abc" ) with pytest.raises(ValueError, match=msg): s.interpolate(method="linear", limit=2, limit_direction="abc")