Skip to content

Commit 8970d9b

Browse files
flake8
1 parent ce85355 commit 8970d9b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/test_tutorials.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import os
2-
3-
# Ensure Jupyter uses the new platformdirs paths to avoid DeprecationWarning
4-
# This will become the default in `jupyter_core` v6
5-
os.environ.setdefault("JUPYTER_PLATFORM_DIRS", "1")
6-
71
import contextlib
2+
import os
83
from pathlib import Path
94

105
import nbformat
116
import pytest
127
from nbclient import NotebookClient
138
from nbclient.exceptions import CellExecutionError
149

10+
# Ensure Jupyter uses the new platformdirs paths to avoid DeprecationWarning
11+
# This will become the default in `jupyter_core` v6
12+
os.environ.setdefault("JUPYTER_PLATFORM_DIRS", "1")
13+
1514

1615
def _find_tutorial_notebooks():
1716
"""Return a sorted list of notebook Paths under doc/tutorials.

0 commit comments

Comments
 (0)