Skip to content

Commit

Permalink
[refactor] Replace deprecated sphinx.testing.path
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Oct 8, 2023
1 parent 1a0491a commit bd4ff02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from pathlib import Path

import pytest
from sphinx.testing.path import path

pytest_plugins = "sphinx.testing.fixtures"
collect_ignore = ["roots"]


@pytest.fixture(scope="session")
def rootdir():
return path(__file__).parent.abspath() / "roots"
return Path(__file__).resolve().parent / "roots"

0 comments on commit bd4ff02

Please sign in to comment.