Skip to content

Commit 5f378ca

Browse files
committed
Fix test suite under Sphinx 7.4+
Closes breathe-doc#987.
1 parent 5722394 commit 5f378ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_renderer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,14 @@ def mask(self, node):
167167

168168
class MockContext:
169169
def __init__(self, app, node_stack, domain=None, options=[]):
170+
from docutils.statemachine import StringList
170171
self.domain = domain
171172
self.node_stack = node_stack
172173
self.directive_args = [
173174
None, # name
174175
None, # arguments
175176
options, # options
176-
None, # content
177+
StringList([], items=[]), # content
177178
None, # lineno
178179
None, # content_offset
179180
None, # block_text

0 commit comments

Comments
 (0)