mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Use read_text() and read_bytes()
This commit is contained in:
@@ -18,7 +18,7 @@ import pytest
|
||||
def test_ext_imgconverter(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
content = (app.outdir / 'python.tex').text()
|
||||
content = (app.outdir / 'python.tex').read_text()
|
||||
assert '\\sphinxincludegraphics{{svgimg}.png}' in content
|
||||
assert not (app.outdir / 'svgimg.svg').exists()
|
||||
assert (app.outdir / 'svgimg.png').exists()
|
||||
|
Reference in New Issue
Block a user