We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0c74d commit 34d8030Copy full SHA for 34d8030
tests_regression/conftest.py
@@ -1,21 +1,29 @@
1
2
import os
3
4
-import pytest
+from pathlib import Path
5
6
-from sphinx.testing.path import path
+import pytest
7
+import sphinx
8
9
10
from .helpers.regression import verify_output
11
12
13
+ROOT_DIR = Path(__file__).parent / 'sphinx'
14
+
15
16
pytest_plugins = 'sphinx.testing.fixtures'
17
collect_ignore = ['sphinx']
18
19
20
@pytest.fixture(scope='session')
21
def rootdir():
- return path(__file__).parent.abspath() / 'sphinx'
22
+ if sphinx.version_info < (8, 0):
23
+ from sphinx.testing.path import path
24
+ return path(__file__).parent.abspath() / 'sphinx'
25
+ else:
26
+ return Path(__file__).parent / 'sphinx'
27
28
29
@pytest.fixture(scope='function')
0 commit comments