test: Use read_text() and read_bytes()

This commit is contained in:
Takeshi KOMIYA
2020-02-01 11:58:51 +09:00
parent 7d6374d983
commit 4dd8b1022f
38 changed files with 297 additions and 297 deletions

View File

@@ -236,7 +236,7 @@ def test_missing_reference_cppdomain(tempdir, app, status, warning):
load_mappings(app)
app.build()
html = (app.outdir / 'index.html').text()
html = (app.outdir / 'index.html').read_text()
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#cpp_foo_bar"'
' title="(in foo v2.0)">'