From 40493654927bd1ece4a10c06f108dea72ba642e9 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Tue, 18 Jan 2022 19:54:28 +0300 Subject: [PATCH] Fix --- all-spark-notebook/test/test_spark_notebooks.py | 2 +- minimal-notebook/test/test_nbconvert.py | 2 +- scipy-notebook/test/test_matplotlib.py | 2 +- test/test_units.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all-spark-notebook/test/test_spark_notebooks.py b/all-spark-notebook/test/test_spark_notebooks.py index edc9e5e5..9879a438 100644 --- a/all-spark-notebook/test/test_spark_notebooks.py +++ b/all-spark-notebook/test/test_spark_notebooks.py @@ -9,7 +9,7 @@ from pathlib import Path from conftest import TrackedContainer LOGGER = logging.getLogger(__name__) -THIS_DIR = Path(__file__).absolute() +THIS_DIR = Path(__file__).parent.resolve() @pytest.mark.parametrize( diff --git a/minimal-notebook/test/test_nbconvert.py b/minimal-notebook/test/test_nbconvert.py index eef45794..9480f167 100644 --- a/minimal-notebook/test/test_nbconvert.py +++ b/minimal-notebook/test/test_nbconvert.py @@ -9,7 +9,7 @@ from pathlib import Path from conftest import TrackedContainer LOGGER = logging.getLogger(__name__) -THIS_DIR = Path(__file__).absolute() +THIS_DIR = Path(__file__).parent.resolve() @pytest.mark.parametrize( diff --git a/scipy-notebook/test/test_matplotlib.py b/scipy-notebook/test/test_matplotlib.py index 3e975b21..10229df7 100644 --- a/scipy-notebook/test/test_matplotlib.py +++ b/scipy-notebook/test/test_matplotlib.py @@ -9,7 +9,7 @@ from pathlib import Path from conftest import TrackedContainer LOGGER = logging.getLogger(__name__) -THIS_DIR = Path(__file__).absolute() +THIS_DIR = Path(__file__).parent.resolve() @pytest.mark.parametrize( diff --git a/test/test_units.py b/test/test_units.py index 7b7f1667..93cda08e 100644 --- a/test/test_units.py +++ b/test/test_units.py @@ -7,7 +7,7 @@ from pathlib import Path from conftest import TrackedContainer LOGGER = logging.getLogger(__name__) -THIS_DIR = Path(__file__).absolute() +THIS_DIR = Path(__file__).parent.resolve() def test_units(container: TrackedContainer) -> None: