mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
encoding keyword for path.text() and path.write_text() is no longer needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user