Skip to content

Commit

Permalink
Remove use of deprecated util
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Oct 8, 2024
1 parent c252d7b commit 0706edb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit 0706edb

Please sign in to comment.