Skip to content

Commit c8ebe07

Browse files
committed
update exception message
1 parent 10be506 commit c8ebe07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/groupby/methods/test_quantile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def test_groupby_quantile_with_arraylike_q_and_int_columns(frame_size, groupby,
162162
def test_quantile_raises():
163163
df = DataFrame([["foo", "a"], ["foo", "b"], ["foo", "c"]], columns=["key", "val"])
164164

165-
with pytest.raises(TypeError, match="cannot be performed against 'object' dtypes"):
165+
msg = "dtype 'object' does not support operation 'quantile'"
166+
with pytest.raises(TypeError, match=msg):
166167
df.groupby("key").quantile()
167168

168169

0 commit comments

Comments
 (0)