From d8f48d6671d49b6db857a4919d24c00e5d760e33 Mon Sep 17 00:00:00 2001 From: rhshadrach Date: Fri, 1 Jan 2021 13:58:26 -0500 Subject: [PATCH] TST: strictly xfail mid-test --- pandas/tests/groupby/transform/test_transform.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py index 72637400ff023..b66e1137830d8 100644 --- a/pandas/tests/groupby/transform/test_transform.py +++ b/pandas/tests/groupby/transform/test_transform.py @@ -158,10 +158,12 @@ def test_transform_broadcast(tsframe, ts): assert_fp_equal(res.xs(idx), agged[idx]) -def test_transform_axis_1(transformation_func): +def test_transform_axis_1(request, transformation_func): # GH 36308 if transformation_func == "tshift": - pytest.xfail("tshift is deprecated") + request.applymarker(pytest.mark.xfail(reason="tshift is deprecated")) + if transformation_func == "fillna": + request.applymarker(pytest.mark.xfail(reason="whoops, this works")) args = ("ffill",) if transformation_func == "fillna" else () df = DataFrame({"a": [1, 2], "b": [3, 4], "c": [5, 6]}, index=["x", "y"])