Skip to content

Commit 4deb330

Browse files
committed
fix tests
1 parent a77a635 commit 4deb330

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ testing = [
7474
"pytest-cov",
7575
"pytest-regressions",
7676
"pytest-param-files~=0.6.0",
77-
"sphinx-pytest",
77+
"sphinx-pytest~=0.3.0",
7878
"pygments<2.20", # TODO fix test regression with 2.19"
7979
]
8080
testing-docutils = [

tests/test_renderers/fixtures/sphinx_roles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ js:class (`sphinx.domains.javascript.JSConstructor`):
228228
<paragraph>
229229
<pending_xref js:module="True" js:object="True" refdoc="index" refdomain="js" refexplicit="False" reftarget="a" reftype="class" refwarn="False">
230230
<literal classes="xref js js-class">
231-
a()
231+
a
232232
.
233233

234234
js:data (`sphinx.domains.javascript.JSObject`):

tests/test_renderers/test_fixtures_sphinx.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDo
124124
' refuri="http://www.python.org/dev/peps/pep-0001">',
125125
' refuri="http://www.python.org/dev/peps/pep-0001/">',
126126
)
127+
if file_params.title == "js:class (`sphinx.domains.javascript.JSConstructor`):":
128+
# sphinx 9 change
129+
pformat = pformat.replace("a()", "a")
127130
file_params.assert_expected(pformat, rstrip_lines=True)
128131

129132

0 commit comments

Comments
 (0)