From e8957790a179357c43569c4f28f896bd3f761f5d Mon Sep 17 00:00:00 2001 From: Matthew Zeitlin Date: Tue, 5 Oct 2021 20:42:41 -0400 Subject: [PATCH] TST: slow collection in test_algos.py --- pandas/tests/test_algos.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 5488c076554fd..9a9cd9fa4baaa 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -1797,13 +1797,13 @@ def test_too_many_ndims(self): @pytest.mark.single @pytest.mark.high_memory - @pytest.mark.parametrize( - "values", - [np.arange(2 ** 24 + 1), np.arange(2 ** 25 + 2).reshape(2 ** 24 + 1, 2)], - ids=["1d", "2d"], - ) - def test_pct_max_many_rows(self, values): + def test_pct_max_many_rows(self): # GH 18271 + values = np.arange(2 ** 24 + 1) + result = algos.rank(values, pct=True).max() + assert result == 1 + + values = np.arange(2 ** 25 + 2).reshape(2 ** 24 + 1, 2) result = algos.rank(values, pct=True).max() assert result == 1