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.
Sphinx<7.2
1 parent 13329a9 commit 47d7318Copy full SHA for 47d7318
1 file changed
tests/conftest.py
@@ -2,9 +2,16 @@
2
3
import pytest
4
5
+import sphinx
6
+
7
pytest_plugins = 'sphinx.testing.fixtures'
8
9
10
@pytest.fixture(scope='session')
11
def rootdir():
12
+ if sphinx.version_info[:2] < (7, 2):
13
+ from sphinx.testing.path import path
14
15
+ return path(__file__).parent.abspath() / 'roots'
16
17
return Path(__file__).resolve().parent / 'roots'
0 commit comments