diff --git a/tests/test_build_html.py b/tests/test_build_html.py index a9914d9a087..ac44ca7e494 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -1293,7 +1293,7 @@ def test_html_anchor_for_figure(app): @pytest.mark.sphinx('html', testroot='directives-raw') def test_html_raw_directive(app, status, warning): app.builder.build_all() - result = (app.outdir / 'index.html').read_text(encoding='utf8') + result = (app.outdir / 'index.html').read_text() # standard case assert 'standalone raw directive (HTML)' in result @@ -1347,7 +1347,7 @@ def test_html_style(app, status, warning): def test_html_remote_images(app, status, warning): app.builder.build_all() - result = (app.outdir / 'index.html').read_text(encoding='utf8') + result = (app.outdir / 'index.html').read_text() assert ('https://www.python.org/static/img/python-logo.png' in result) assert not (app.outdir / 'python-logo.png').exists() @@ -1359,7 +1359,7 @@ def test_html_sidebar(app, status, warning): # default for alabaster app.builder.build_all() - result = (app.outdir / 'index.html').read_text(encoding='utf8') + result = (app.outdir / 'index.html').read_text() assert ('