Skip to content

Commit 268a3c5

Browse files
authored
Use platform dirs in tests (#872)
* use platform dirs in tests * set env variable sooner * add note
1 parent 9b12e91 commit 268a3c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import sys
44

55
import pytest
6+
7+
# Must be set before importing from `jupyter_core`.
8+
os.environ['JUPYTER_PLATFORM_DIRS'] = '1'
9+
610
from jupyter_core import paths
711

812
from .utils import test_env

0 commit comments

Comments
 (0)