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

@@ -31,4 +31,4 @@ def test_no_cname_for_github_io_domain(app, status, warning):
def test_cname_for_custom_domain(app, status, warning):
app.builder.build_all()
assert (app.outdir / '.nojekyll').exists()
assert (app.outdir / 'CNAME').text() == 'sphinx-doc.org'
assert (app.outdir / 'CNAME').read_text() == 'sphinx-doc.org'