Skip to content

Commit

Permalink
Fix test suite under Sphinx 7.4+
Browse files Browse the repository at this point in the history
Closes #987.
  • Loading branch information
yut23 committed Jan 16, 2025
1 parent 5722394 commit 5f378ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ def mask(self, node):

class MockContext:
def __init__(self, app, node_stack, domain=None, options=[]):
from docutils.statemachine import StringList
self.domain = domain
self.node_stack = node_stack
self.directive_args = [
None, # name
None, # arguments
options, # options
None, # content
StringList([], items=[]), # content
None, # lineno
None, # content_offset
None, # block_text
Expand Down

0 comments on commit 5f378ca

Please sign in to comment.