summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Röhling <roehling@debian.org>2023-11-19 01:16:06 +0100
committerTimo Röhling <roehling@debian.org>2023-11-19 11:50:21 +0100
commitf0863c498afbeb9f834b17353ecf7f05366edb0f (patch)
tree9fa6f839aa05a2197f1c5918cc755639709d8a6e
parent33f6f233909cb2d8549cf749321178d1d502ab4f (diff)
Use pathlib instead of sphinx.testing.path
Forwarded: https://github.com/scikit-build/moderncmakedomain/pull/41 Gbp-Pq: Name 0001-Use-pathlib-instead-of-sphinx.testing.path.patch
-rw-r--r--tests/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 6a0c552..c62ee4e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,9 +1,9 @@
import pytest
-from sphinx.testing.path import path
+from pathlib import Path
pytest_plugins = 'sphinx.testing.fixtures'
@pytest.fixture(scope="session")
def rootdir():
- return path(__file__).parent.abspath() / "roots"
+ return Path(__file__).parent.absolute() / "roots"