summaryrefslogtreecommitdiff
path: root/tests/test_ext_githubpages.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-01 11:58:51 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-01 11:58:51 +0900
commit4dd8b1022f581e8e42db520eb1061f064cbdf63f (patch)
treedf4d2f69233f91aff7b9d3e3dee58c50d0991c2e /tests/test_ext_githubpages.py
parent7d6374d983cc757e8bb7911da13f2dce7d69ec36 (diff)
downloadsphinx-git-4dd8b1022f581e8e42db520eb1061f064cbdf63f.tar.gz
test: Use read_text() and read_bytes()
Diffstat (limited to 'tests/test_ext_githubpages.py')
-rw-r--r--tests/test_ext_githubpages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ext_githubpages.py b/tests/test_ext_githubpages.py
index 8a8004347..41dbe4f60 100644
--- a/tests/test_ext_githubpages.py
+++ b/tests/test_ext_githubpages.py
@@ -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'