| 1 |
'sphinx.testing.path' was deprecated and is now removed |
| 2 |
using pathlib.Path |
| 3 |
|
| 4 |
Index: sphinx-reredirects/tests/conftest.py |
| 5 |
=================================================================== |
| 6 |
--- sphinx-reredirects.orig/tests/conftest.py |
| 7 |
+++ sphinx-reredirects/tests/conftest.py |
| 8 |
@@ -1,5 +1,5 @@ |
| 9 |
import pytest |
| 10 |
-from sphinx.testing.path import path |
| 11 |
+from pathlib import Path |
| 12 |
|
| 13 |
pytest_plugins = "sphinx.testing.fixtures" |
| 14 |
|
| 15 |
@@ -9,4 +9,4 @@ collect_ignore = ["roots"] |
| 16 |
|
| 17 |
@pytest.fixture(scope="session") |
| 18 |
def rootdir(): |
| 19 |
- return path(__file__).parent.abspath() / "roots" |
| 20 |
+ return Path(__file__).parent / "roots" |