Skip to content

Commit

Permalink
馃И Fix tests for sphinx 7.2 (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Aug 30, 2023
1 parent 18fe5df commit fa9e3cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/conftest.py
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 fa9e3cc

Please sign in to comment.