summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.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_quickstart.py
parent7d6374d983cc757e8bb7911da13f2dce7d69ec36 (diff)
downloadsphinx-git-4dd8b1022f581e8e42db520eb1061f064cbdf63f.tar.gz
test: Use read_text() and read_bytes()
Diffstat (limited to 'tests/test_quickstart.py')
-rw-r--r--tests/test_quickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index 70a6f030e..bdd7073d1 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -193,7 +193,7 @@ def test_generated_files_eol(tempdir):
qs.generate(d)
def assert_eol(filename, eol):
- content = filename.bytes().decode()
+ content = filename.read_bytes().decode()
assert all([l[-len(eol):] == eol for l in content.splitlines(True)])
assert_eol(tempdir / 'make.bat', '\r\n')