Skip to content

Commit 2570d57

Browse files
committed
Fix test failures
1 parent 02ec7b2 commit 2570d57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/groupby/test_raises.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import numpy as np
99
import pytest
1010

11+
from pandas.util._exceptions import Pandas40DeprecationWarning
12+
1113
from pandas import (
1214
Categorical,
1315
DataFrame,
@@ -85,7 +87,7 @@ def df_with_cat_col():
8587

8688

8789
def _call_and_check(klass, msg, how, gb, groupby_func, args, warn_msg=""):
88-
warn_klass = None if warn_msg == "" else FutureWarning
90+
warn_klass = None if warn_msg == "" else Pandas40DeprecationWarning
8991
with tm.assert_produces_warning(warn_klass, match=warn_msg, check_stacklevel=False):
9092
if klass is None:
9193
if how == "method":

0 commit comments

Comments
 (0)