From e9c78e703511424a5734ffbb666d82fe6df8f864 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 9 Nov 2022 09:20:04 -0600 Subject: [PATCH 1/3] use platform dirs in tests --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index b52872a89..818d3ed3a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -15,6 +15,8 @@ pjoin = os.path.join +os.environ['JUPYTER_PLATFORM_DIRS'] = '1' + # Handle resource limit # Ensure a minimal soft limit of DEFAULT_SOFT if the current hard limit is at least that much. From 1998c0c21d6c5bf28e5a032dedd36d0b90aeb715 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 9 Nov 2022 09:24:30 -0600 Subject: [PATCH 2/3] set env variable sooner --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 818d3ed3a..95220e2e9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,6 +3,9 @@ import sys import pytest + +os.environ['JUPYTER_PLATFORM_DIRS'] = '1' + from jupyter_core import paths from .utils import test_env @@ -15,8 +18,6 @@ pjoin = os.path.join -os.environ['JUPYTER_PLATFORM_DIRS'] = '1' - # Handle resource limit # Ensure a minimal soft limit of DEFAULT_SOFT if the current hard limit is at least that much. From cc5fb8ff0f7c61168e3e10d971f4ebb04807af4d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 9 Nov 2022 09:24:43 -0600 Subject: [PATCH 3/3] add note --- tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/conftest.py b/tests/conftest.py index 95220e2e9..c2b7cf85b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,6 +4,7 @@ import pytest +# Must be set before importing from `jupyter_core`. os.environ['JUPYTER_PLATFORM_DIRS'] = '1' from jupyter_core import paths