https://github.com/sphinx-doc/sphinxcontrib-jsmath/pull/10 --- sphinxcontrib-jsmath-1.0.1/tests/test_jsmath.py.orig +++ sphinxcontrib-jsmath-1.0.1/tests/test_jsmath.py @@ -14,7 +14,7 @@ @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_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