From 4dd8b1022f581e8e42db520eb1061f064cbdf63f Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 1 Feb 2020 11:58:51 +0900 Subject: test: Use read_text() and read_bytes() --- tests/test_setup_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_setup_command.py') diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py index 9bfc08d06..14a687ada 100644 --- a/tests/test_setup_command.py +++ b/tests/test_setup_command.py @@ -94,7 +94,7 @@ def nonascii_srcdir(request, setup_command): """)) master_doc = srcdir / 'index.txt' - master_doc.write_bytes((master_doc.text() + dedent(""" + master_doc.write_bytes((master_doc.read_text() + dedent(""" .. toctree:: %(mb_name)s/%(mb_name)s -- cgit v1.2.1