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

@@ -544,7 +544,7 @@ def test_autodoc_typehints_none(app):
'autodoc_typehints': 'description'})
def test_autodoc_typehints_description(app):
app.build()
context = (app.outdir / 'index.txt').text()
context = (app.outdir / 'index.txt').read_text()
assert ('target.typehints.incr(a, b=1)\n'
'\n'
' Parameters:\n'