Skip to content

Commit d5a0860

Browse files
committed
Merge pull request #11975 from jreback/fix
TST: fix comparison message for #10174
2 parents e05f66a + 1bca5f0 commit d5a0860

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/tests/test_frame.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13706,8 +13706,7 @@ def test_quantile_interpolation_np_lt_1p9(self):
1370613706
assert_series_equal(q, q1)
1370713707

1370813708
# interpolation method other than default linear
13709-
expErrMsg = ("Interpolation methods other than linear"
13710-
" not supported in numpy < 1.9")
13709+
expErrMsg = "Interpolation methods other than linear"
1371113710
df = DataFrame({"A": [1, 2, 3], "B": [2, 3, 4]}, index=[1, 2, 3])
1371213711
with assertRaisesRegexp(ValueError, expErrMsg):
1371313712
df.quantile(.5, axis=1, interpolation='nearest')

pandas/tests/test_series.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3115,8 +3115,7 @@ def test_quantile_interpolation_np_lt_1p9(self):
31153115
self.assertEqual(q1, percentile(self.ts.valid(), 10))
31163116

31173117
# interpolation other than linear
3118-
expErrMsg = "Interpolation methods other than " \
3119-
"linear not supported in numpy < 1.9"
3118+
expErrMsg = "Interpolation methods other than "
31203119
with tm.assertRaisesRegexp(ValueError, expErrMsg):
31213120
self.ts.quantile(0.9, interpolation='nearest')
31223121

0 commit comments

Comments
 (0)