Skip to content

TST: fix comparison message for #10174 #11975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pandas/tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 1 addition & 2 deletions pandas/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down