From 5d67040e59d50722ec02b3f52e8af52c059eea1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta?= Date: Mon, 28 Aug 2023 14:39:45 +0200 Subject: [PATCH 1/2] fix build with Sphinx 7.2 --- tests/test_autodocsumm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_autodocsumm.py b/tests/test_autodocsumm.py index fc43a34..7c317ed 100644 --- a/tests/test_autodocsumm.py +++ b/tests/test_autodocsumm.py @@ -36,7 +36,7 @@ def in_between(full, sub, s0, *others): def get_html(app, fname): - with open(app.outdir + '/' + fname) as f: + with open(str(app.outdir) + '/' + fname) as f: return f.read() From 7d3c5621aea743caed476452412e93e0782d1ef3 Mon Sep 17 00:00:00 2001 From: "Philipp S. Sommer" Date: Thu, 28 Dec 2023 19:10:05 +0100 Subject: [PATCH 2/2] small fix for reading html output Co-authored-by: Frank Sachsenheim --- tests/test_autodocsumm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_autodocsumm.py b/tests/test_autodocsumm.py index 7c317ed..238770c 100644 --- a/tests/test_autodocsumm.py +++ b/tests/test_autodocsumm.py @@ -36,8 +36,7 @@ def in_between(full, sub, s0, *others): def get_html(app, fname): - with open(str(app.outdir) + '/' + fname) as f: - return f.read() + return (app.outdir / fname).read_text() def in_autosummary(what, html) -> bool: