Skip to content

Commit

Permalink
🧪 Fix tests for sphinx 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Aug 30, 2023
1 parent 18fe5df commit b355f8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@

from docutils import nodes
import pytest
from sphinx.testing.path import path as sphinx_path
from sphinx import version_info
from sphinx.testing.util import SphinxTestApp

from sphinx_design._compat import findall

pytest_plugins = "sphinx.testing.fixtures"

if version_info >= (7, 2):
# see https://github.com/sphinx-doc/sphinx/pull/11526
from pathlib import Path as sphinx_path
else:
from sphinx.testing.path import path as sphinx_path # type: ignore


class SphinxBuilder:
def __init__(self, app: SphinxTestApp, src_path: Path):
Expand Down

0 comments on commit b355f8d

Please sign in to comment.