summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
diff options
context:
space:
mode:
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']