diff --git a/tests/conftest.py b/tests/conftest.py index 6f3a490d..27104c44 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import itertools -import os +from pathlib import Path import pytest @@ -21,7 +21,7 @@ from mpi4py import MPI # noqa # base path for input files -basepath = os.getcwd() +basepath = Path(__file__).parent.parent @pytest.fixture(autouse=True, scope="function")