From 5f378ca3f11565160bdcebcff29c866e7162c249 Mon Sep 17 00:00:00 2001 From: yut23 Date: Wed, 15 Jan 2025 22:40:55 -0500 Subject: [PATCH] Fix test suite under Sphinx 7.4+ Closes #987. --- tests/test_renderer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_renderer.py b/tests/test_renderer.py index b87699ac9..65a9ee6d1 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -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