8000 TST: add jupyter to 3.6 test · matplotlib/matplotlib@e8ab1b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8ab1b0

Browse files
committed
TST: add jupyter to 3.6 test
1 parent 7e56deb commit e8ab1b0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ env:
5454
- NOSE=
5555
- NUMPY=numpy
5656
- PANDAS=
57+
- JUPYTER=
5758
- PYPARSING=pyparsing
5859
- PYTEST='pytest>=3.4'
5960
- PYTEST_COV=pytest-cov
@@ -94,6 +95,7 @@ matrix:
9495
env:
9596
- DELETE_FONT_CACHE=1
9697
- PANDAS='pandas<0.21.0'
98+
- JUPYTER='jupyter'
9799
- PYTEST_PEP8=pytest-pep8
98100
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
99101
- python: "nightly"
@@ -147,6 +149,7 @@ install:
147149
$NOSE \
148150
$NUMPY \
149151
$PANDAS \
152+
$JUPYTER \
150153
pillow \
151154
$PYPARSING \
152155
$SPHINX \

lib/matplotlib/tests/test_backend_nbagg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import os
33
import subprocess
44
import tempfile
5-
import nbformat
5+
import pytest
66

7+
nbformat = pytest.importorskip('nbformat')
78

89
# From https://blog.thedataincubator.com/2016/06/testing-jupyter-notebooks/
910

11+
1012
def _notebook_run(nb_file):
1113
"""Execute a notebook via nbconvert and collect output.
1214
:returns (parsed nb object, execution errors)

0 commit comments

Comments
 (0)
0