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: