Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloqeely committed Jun 6, 2024
1 parent 02ec7b2 commit 2570d57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/tests/groupby/test_raises.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import numpy as np
import pytest

from pandas.util._exceptions import Pandas40DeprecationWarning

from pandas import (
Categorical,
DataFrame,
Expand Down Expand Up @@ -85,7 +87,7 @@ def df_with_cat_col():


def _call_and_check(klass, msg, how, gb, groupby_func, args, warn_msg=""):
warn_klass = None if warn_msg == "" else FutureWarning
warn_klass = None if warn_msg == "" else Pandas40DeprecationWarning
with tm.assert_produces_warning(warn_klass, match=warn_msg, check_stacklevel=False):
if klass is None:
if how == "method":
Expand Down

0 comments on commit 2570d57

Please sign in to comment.