encoding keyword for path.text() and path.write_text() is no longer needed

This commit is contained in:
Takeshi KOMIYA
2019-01-02 22:39:06 +09:00
parent 657fa843c8
commit c4c878303f
10 changed files with 68 additions and 71 deletions

View File

@@ -20,8 +20,7 @@ def test_layout_overloading(make_app, app_params):
setup_documenters(app)
app.builder.build_update()
result = (app.outdir / 'index.html').text(encoding='utf-8')
result = (app.outdir / 'index.html').text()
assert '<!-- layout overloading -->' in result
@@ -32,7 +31,5 @@ def test_autosummary_class_template_overloading(make_app, app_params):
setup_documenters(app)
app.builder.build_update()
result = (app.outdir / 'generated' / 'sphinx.application.TemplateBridge.html').text(
encoding='utf-8')
result = (app.outdir / 'generated' / 'sphinx.application.TemplateBridge.html').text()
assert 'autosummary/class.rst method block overloading' in result