.read_text() -> .read_text(encoding='utf8')

This commit is contained in:
Adam Turner
2022-04-27 03:04:19 +01:00
parent 8866adeacf
commit 24e3b7c8c8
42 changed files with 363 additions and 363 deletions

View File

@@ -246,7 +246,7 @@ def test_missing_reference_cppdomain(tempdir, app, status, warning):
load_mappings(app)
app.build()
html = (app.outdir / 'index.html').read_text()
html = (app.outdir / 'index.html').read_text(encoding='utf8')
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#cpp_foo_bar"'
' title="(in foo v2.0)">'
@@ -533,7 +533,7 @@ def test_intersphinx_role(app, warning):
load_mappings(app)
app.build()
content = (app.outdir / 'index.html').read_text()
content = (app.outdir / 'index.html').read_text(encoding='utf8')
wStr = warning.getvalue()
html = '<a class="reference external" href="http://example.org/{}" title="(in foo v2.0)">'