summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.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_quickstart.py
parent8866adeacfb045c97302cc9c7e3b60dec5ca38fd (diff)
downloadsphinx-git-24e3b7c8c8c0a2d01ec2d2d4d04105bcb565e440.tar.gz
`.read_text()` -> `.read_text(encoding='utf8')`
Diffstat (limited to 'tests/test_quickstart.py')
-rw-r--r--tests/test_quickstart.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index 1ea85b19b..068491c89 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -100,7 +100,7 @@ def test_quickstart_defaults(tempdir):
conffile = tempdir / 'conf.py'
assert conffile.isfile()
ns = {}
- exec(conffile.read_text(), ns)
+ exec(conffile.read_text(encoding='utf8'), ns)
assert ns['extensions'] == []
assert ns['templates_path'] == ['_templates']
assert ns['project'] == 'Sphinx Test'
@@ -150,7 +150,7 @@ def test_quickstart_all_answers(tempdir):
conffile = tempdir / 'source' / 'conf.py'
assert conffile.isfile()
ns = {}
- exec(conffile.read_text(), ns)
+ exec(conffile.read_text(encoding='utf8'), ns)
assert ns['extensions'] == [
'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo'
]
@@ -231,7 +231,7 @@ def test_default_filename(tempdir):
conffile = tempdir / 'conf.py'
assert conffile.isfile()
ns = {}
- exec(conffile.read_text(), ns)
+ exec(conffile.read_text(encoding='utf8'), ns)
def test_extensions(tempdir):
@@ -241,7 +241,7 @@ def test_extensions(tempdir):
conffile = tempdir / 'conf.py'
assert conffile.isfile()
ns = {}
- exec(conffile.read_text(), ns)
+ exec(conffile.read_text(encoding='utf8'), ns)
assert ns['extensions'] == ['foo', 'bar', 'baz']