Stop to use Path.text()

This commit is contained in:
Takeshi KOMIYA
2020-02-23 12:53:31 +09:00
parent d54571dfb9
commit 7216c1945b

View File

@@ -1554,7 +1554,7 @@ def test_validate_html_static_path(app):
@pytest.mark.sphinx(testroot='html_scaled_image_link')
def test_html_scaled_image_link(app):
app.build()
context = (app.outdir / 'index.html').text()
context = (app.outdir / 'index.html').read_text()
# no scaled parameters
assert re.search('\n<img alt="_images/img.png" src="_images/img.png" />', context)