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 18fe5df commit fa9e3ccCopy full SHA for fa9e3cc
tests/conftest.py
@@ -4,13 +4,19 @@
4
5
from docutils import nodes
6
import pytest
7
-from sphinx.testing.path import path as sphinx_path
+from sphinx import version_info
8
from sphinx.testing.util import SphinxTestApp
9
10
from sphinx_design._compat import findall
11
12
pytest_plugins = "sphinx.testing.fixtures"
13
14
+if version_info >= (7, 2):
15
+ # see https://github.com/sphinx-doc/sphinx/pull/11526
16
+ from pathlib import Path as sphinx_path
17
+else:
18
+ from sphinx.testing.path import path as sphinx_path # type: ignore
19
+
20
21
class SphinxBuilder:
22
def __init__(self, app: SphinxTestApp, src_path: Path):
0 commit comments