Skip to content

Commit

Permalink
Don't require nbformat when skipping notebook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Apr 29, 2024
1 parent 11a7091 commit b01dbef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import tempfile
from test_helpers import timer

import nbformat

notebook_dir = os.path.abspath(os.path.join(
os.path.split(os.path.abspath(__file__))[0],
'..',
Expand All @@ -18,6 +16,7 @@ def _notebook_run(path):
"""Execute a notebook via nbconvert and collect output.
:returns (parsed nb object, execution errors)
"""
import nbformat
dirname, __ = os.path.split(path)
os.chdir(dirname)
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
Expand Down

0 comments on commit b01dbef

Please sign in to comment.