From 143b278267d35a644c0fbe7740dae38394b197a9 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 28 Oct 2020 11:50:57 -0700 Subject: [PATCH] Mark flaky tests as XFAIL (#6299) * Temporarily skip TestGPUUpdaters::test_categorical * Temporarily skip test_boost_from_prediction[approx] --- tests/python-gpu/test_gpu_updaters.py | 1 + tests/python/test_with_dask.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/python-gpu/test_gpu_updaters.py b/tests/python-gpu/test_gpu_updaters.py index 48ac2f5e5..c1a076144 100644 --- a/tests/python-gpu/test_gpu_updaters.py +++ b/tests/python-gpu/test_gpu_updaters.py @@ -86,6 +86,7 @@ class TestGPUUpdaters: @settings(deadline=None) @pytest.mark.skipif(**tm.no_pandas()) def test_categorical(self, rows, cols, rounds, cats): + pytest.xfail(reason='TestGPUUpdaters::test_categorical is flaky') self.run_categorical_basic(rows, cols, rounds, cats) def test_categorical_32_cat(self): diff --git a/tests/python/test_with_dask.py b/tests/python/test_with_dask.py index fe4a09556..f759c63bd 100644 --- a/tests/python/test_with_dask.py +++ b/tests/python/test_with_dask.py @@ -142,6 +142,9 @@ def test_dask_predict_shape_infer(): @pytest.mark.parametrize("tree_method", ["hist", "approx"]) def test_boost_from_prediction(tree_method): + if tree_method == 'approx': + pytest.xfail(reason='test_boost_from_prediction[approx] is flaky') + from sklearn.datasets import load_breast_cancer X, y = load_breast_cancer(return_X_y=True)