diff options
Diffstat (limited to 'tests/test_templating.py')
-rw-r--r-- | tests/test_templating.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_templating.py b/tests/test_templating.py index 0be960b88..becacda0d 100644 --- a/tests/test_templating.py +++ b/tests/test_templating.py @@ -20,7 +20,7 @@ def test_layout_overloading(make_app, app_params): setup_documenters(app) app.builder.build_update() - result = (app.outdir / 'index.html').text() + result = (app.outdir / 'index.html').read_text() assert '<!-- layout overloading -->' in result @@ -31,5 +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() + result = (app.outdir / 'generated' / 'sphinx.application.TemplateBridge.html').read_text() assert 'autosummary/class.rst method block overloading' in result |