diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index 8e533f3e22e5c..adb1b538fc2aa 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -13706,8 +13706,7 @@ def test_quantile_interpolation_np_lt_1p9(self): assert_series_equal(q, q1) # interpolation method other than default linear - expErrMsg = ("Interpolation methods other than linear" - " not supported in numpy < 1.9") + expErrMsg = "Interpolation methods other than linear" df = DataFrame({"A": [1, 2, 3], "B": [2, 3, 4]}, index=[1, 2, 3]) with assertRaisesRegexp(ValueError, expErrMsg): df.quantile(.5, axis=1, interpolation='nearest') diff --git a/pandas/tests/test_series.py b/pandas/tests/test_series.py index caf8883499890..62a3f5249ddce 100644 --- a/pandas/tests/test_series.py +++ b/pandas/tests/test_series.py @@ -3115,8 +3115,7 @@ def test_quantile_interpolation_np_lt_1p9(self): self.assertEqual(q1, percentile(self.ts.valid(), 10)) # interpolation other than linear - expErrMsg = "Interpolation methods other than " \ - "linear not supported in numpy < 1.9" + expErrMsg = "Interpolation methods other than " with tm.assertRaisesRegexp(ValueError, expErrMsg): self.ts.quantile(0.9, interpolation='nearest')