From d5799d165246a140ee9a2e7be5241fa4fc7904a3 Mon Sep 17 00:00:00 2001 From: "Wu, Xiaochang" Date: Sat, 18 Dec 2021 12:28:47 +0800 Subject: [PATCH] add skipif not matplotlib --- tests/python/test_demos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/python/test_demos.py b/tests/python/test_demos.py index 7b5b1b19a9fc..b87317c4730c 100644 --- a/tests/python/test_demos.py +++ b/tests/python/test_demos.py @@ -115,6 +115,7 @@ def test_aft_demo(): os.remove('aft_model.json') +@pytest.mark.skipif(**tm.no_matplotlib()) def test_callbacks_demo(): script = os.path.join(PYTHON_DEMO_DIR, 'callbacks.py') cmd = ['python', script, '--plot=0']