summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-27 03:04:19 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-27 03:04:19 +0100
commit24e3b7c8c8c0a2d01ec2d2d4d04105bcb565e440 (patch)
tree72862fd42abc102ff99ac35687d4cc7af17b0c2d /tests/test_setup_command.py
parent8866adeacfb045c97302cc9c7e3b60dec5ca38fd (diff)
downloadsphinx-git-24e3b7c8c8c0a2d01ec2d2d4d04105bcb565e440.tar.gz
`.read_text()` -> `.read_text(encoding='utf8')`
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r--tests/test_setup_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py
index 054912feb..bfb2f2d96 100644
--- a/tests/test_setup_command.py
+++ b/tests/test_setup_command.py
@@ -86,7 +86,7 @@ def nonascii_srcdir(request, setup_command):
"""))
root_doc = srcdir / 'index.txt'
- root_doc.write_bytes((root_doc.read_text() + dedent("""
+ root_doc.write_bytes((root_doc.read_text(encoding='utf8') + dedent("""
.. toctree::
%(mb_name)s/%(mb_name)s