mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Stop to use Path.text()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user