diff --git a/tests/conftest.py b/tests/conftest.py index f8f84f7..2bb600d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,10 +6,10 @@ :license: BSD, see LICENSE for details. """ +import pathlib import shutil import pytest -from sphinx.testing import path # this is necessary because Sphinx isn't exposing its fixtures # https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file @@ -18,9 +18,9 @@ @pytest.fixture def rootdir(tmpdir): - src = path.path(__file__).parent.abspath() / 'roots' + src = pathlib.Path(__file__).parent.resolve() / 'roots' dst = tmpdir.join('roots') shutil.copytree(src, dst) - roots = path.path(dst) + roots = pathlib.Path(dst) yield roots shutil.rmtree(dst)