From 7634a4518088f15fd02971055d33513cea2564af Mon Sep 17 00:00:00 2001 From: yut23 Date: Thu, 16 Jan 2025 10:30:36 -0500 Subject: [PATCH] Fix DeprecationWarning from docutils This method was added in docutils 0.18, which our minimum version of Sphinx 6.2.0 requires. --- tests/test_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 8fa8c0bd..ded70a50 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -124,7 +124,7 @@ def __init__(self, app): env.temp_data["docname"] = "mock-doc" env.temp_data["breathe_project_info_factory"] = ProjectInfoFactory(app) env.temp_data["breathe_parser_factory"] = DoxygenParserFactory(app) - settings = frontend.OptionParser(components=(parsers.rst.Parser,)).get_default_values() + settings = frontend.get_default_settings(parsers.rst.Parser) settings.env = env self.document = utils.new_document("", settings)