From 1bca5f05645ca80037f03903b9923ce4d5d95e9b Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Wed, 6 Jan 2016 19:54:28 -0500 Subject: [PATCH] TST: fix comparison message for #10174 --- pandas/tests/test_frame.py | 3 +-- pandas/tests/test_series.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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')