From bdd08b1516b97290da5f4f6082cea0d336b9dcf3 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 1 Feb 2020 12:25:49 +0900 Subject: [PATCH] test: encoding="utf-8" is no longer needed on reading text --- tests/test_build_html.py | 18 +-- tests/test_build_latex.py | 148 +++++++++--------- tests/test_build_texinfo.py | 2 +- tests/test_build_text.py | 12 +- tests/test_ext_autosummary.py | 2 +- tests/test_theming.py | 2 +- tests/test_transforms_post_transforms_code.py | 4 +- 7 files changed, 94 insertions(+), 94 deletions(-) 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 ('