From 7dd79362a3eb3d74bc6d8d9d8defa4180f0c5b7b Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Wed, 13 Apr 2022 18:28:14 +0200 Subject: [PATCH] Revert "Fix tests in test_stats after implementing numeric_only" This reverts commit 84f096c3917451489c19e502b52101acf6d9e758. --- python/cudf/cudf/tests/test_stats.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/cudf/cudf/tests/test_stats.py b/python/cudf/cudf/tests/test_stats.py index 2d91dc56d44..977a01952db 100644 --- a/python/cudf/cudf/tests/test_stats.py +++ b/python/cudf/cudf/tests/test_stats.py @@ -262,6 +262,9 @@ def test_kurtosis(data, null_flag): expected = pdata.kurt() np.testing.assert_array_almost_equal(got, expected) + with pytest.raises(NotImplementedError): + data.kurt(numeric_only=False) + @pytest.mark.parametrize( "data", @@ -295,6 +298,9 @@ def test_skew(data, null_flag): got = got if np.isscalar(got) else got.to_numpy() np.testing.assert_array_almost_equal(got, expected) + with pytest.raises(NotImplementedError): + data.skew(numeric_only=False) + @pytest.mark.parametrize("dtype", params_dtypes) @pytest.mark.parametrize("num_na", [0, 1, 50, 99, 100])