Skip to content

Commit ff7c64b

Browse files
committed
update test
1 parent 13ba267 commit ff7c64b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tests/apply/test_invalid_arg.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from itertools import chain
1010
import re
11+
import warnings
1112

1213
import numpy as np
1314
import pytest
@@ -307,7 +308,10 @@ def test_transform_and_agg_err_series(string_series, func, msg):
307308
# we are trying to transform with an aggregator
308309
with pytest.raises(ValueError, match=msg):
309310
with np.errstate(all="ignore"):
310-
string_series.agg(func)
311+
# GH53325
312+
with warnings.catch_warnings():
313+
warnings.simplefilter("ignore", FutureWarning)
314+
string_series.agg(func)
311315

312316

313317
@pytest.mark.parametrize("func", [["max", "min"], ["max", "sqrt"]])

0 commit comments

Comments
 (0)