Skip to content

Commit 012b0bd

Browse files
jbrockmendeljreback
authored andcommitted
POC/TST: dynamic xfail (#30521)
1 parent 6822e43 commit 012b0bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/groupby/test_transform.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,12 @@ def test_transform_with_non_scalar_group():
765765
],
766766
)
767767
@pytest.mark.parametrize("agg_func", ["count", "rank", "size"])
768-
def test_transform_numeric_ret(cols, exp, comp_func, agg_func):
768+
def test_transform_numeric_ret(cols, exp, comp_func, agg_func, request):
769769
if agg_func == "size" and isinstance(cols, list):
770-
pytest.xfail("'size' transformation not supported with NDFrameGroupy")
770+
# https://github.com/pytest-dev/pytest/issues/6300
771+
# workaround to xfail fixture/param permutations
772+
reason = "'size' transformation not supported with NDFrameGroupy"
773+
request.node.add_marker(pytest.mark.xfail(reason=reason))
771774

772775
# GH 19200
773776
df = pd.DataFrame(

0 commit comments

Comments
 (0)