Skip to content

Commit 3ff4883

Browse files
committed
2.3 test function compat
1 parent 5013d07 commit 3ff4883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: pandas/tests/apply/test_invalid_arg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_agg_cython_table_raises_series(series, func, expected, using_infer_stri
253253
if func == "median" or func is np.nanmedian or func is np.median:
254254
msg = r"Cannot convert \['a' 'b' 'c'\] to numeric"
255255

256-
if using_infer_string and func == "cumprod":
256+
if using_infer_string and func in (np.cumprod, np.nancumprod):
257257
expected = (expected, NotImplementedError)
258258

259259
msg = (

Diff for: pandas/tests/apply/test_str.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def test_agg_cython_table_transform_series(request, series, func, expected):
170170
# GH21224
171171
# test transforming functions in
172172
# pandas.core.base.SelectionMixin._cython_table (cumprod, cumsum)
173-
if series.dtype == "string" and func == "cumsum":
173+
if series.dtype == "string" and func in (np.cumsum, np.nancumsum):
174174
request.applymarker(
175175
pytest.mark.xfail(
176176
raises=(TypeError, NotImplementedError),

0 commit comments

Comments
 (0)