From cae629ac3751e495d8286b15d503ef8bad69bd94 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Thu, 7 Jul 2022 10:37:21 +0200 Subject: [PATCH] Fix compatibility with Sphinx 5 --- tests/test_jsmath.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_jsmath.py b/tests/test_jsmath.py index 573d262..eea8a95 100644 --- a/tests/test_jsmath.py +++ b/tests/test_jsmath.py @@ -14,7 +14,7 @@ import pytest @pytest.mark.sphinx('html', testroot='basic') def test_basic(app, status, warning): app.builder.build_all() - content = (app.outdir / 'math.html').text() + content = (app.outdir / 'math.html').read_text() print(content) assert '
\nE = mc^2
' in content assert ('(1)\nE = mc^2' in content assert ('(1.1)ΒΆ' @@ -52,5 +52,5 @@ def test_numfig_enabled(app, status, warning): def test_disabled_when_equations_not_found(app, status, warning): app.builder.build_all() - content = (app.outdir / 'index.html').text() + content = (app.outdir / 'index.html').read_text() assert 'jsmath.js' not in content -- 2.35.3