diff --git a/tests/conftest.py b/tests/conftest.py index b1f0728..f776f49 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,7 @@ import pytest from pathlib import Path from bs4 import BeautifulSoup +import sphinx from sphinx.testing.path import path from sphinx_tabs.tabs import FILES @@ -123,6 +124,11 @@ def read(app, docname="index", resolve=False, regress=False, replace=None): text = doctree.pformat() # type: str for find, rep in (replace or {}).items(): text = text.replace(find, rep) + if sphinx.version_info < (7, 1): + text = text.replace( + '', + "", + ) file_regression.check(text, extension=extension) return doctree diff --git a/tests/test_build/test_basic.xml b/tests/test_build/test_basic.xml index f1f6d71..1ef24d7 100644 --- a/tests/test_build/test_basic.xml +++ b/tests/test_build/test_basic.xml @@ -1,4 +1,4 @@ - +