Skip to content

Commit

Permalink
Skip callback demo test if matplotlib is not installed (#7520)
Browse files Browse the repository at this point in the history
  • Loading branch information
xwu99 authored Dec 19, 2021
1 parent 58a6723 commit 59bd1ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/python/test_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 59bd1ab

Please sign in to comment.