Skip to content

Commit 59ac2a1

Browse files
committed
Include test notebooks in test package
Additionally, the test requires `nbconvert` to execute, and `ipykernel` as the Python 3 kernel.
1 parent c9582f0 commit 59ac2a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/matplotlib/tests/test_backend_nbagg.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import pytest
77

88
nbformat = pytest.importorskip('nbformat')
9+
pytest.importorskip('nbconvert')
10+
pytest.importorskip('ipykernel')
911

1012
# From https://blog.thedataincubator.com/2016/06/testing-jupyter-notebooks/
1113

setupext.py

+1
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ def get_package_data(self):
480480
*_pkg_data_helper('matplotlib', 'tests/tinypages'),
481481
'tests/cmr10.pfb',
482482
'tests/mpltest.ttf',
483+
'tests/test_*.ipynb',
483484
],
484485
'mpl_toolkits': [
485486
*_pkg_data_helper('mpl_toolkits', 'tests/baseline_images'),

0 commit comments

Comments
 (0)