summaryrefslogtreecommitdiff
path: root/tests/test_toctree.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_toctree.py')
-rw-r--r--tests/test_toctree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_toctree.py b/tests/test_toctree.py
index f739f4232..39d0916d2 100644
--- a/tests/test_toctree.py
+++ b/tests/test_toctree.py
@@ -35,5 +35,5 @@ def test_numbered_toctree(app, status, warning):
# give argument to :numbered: option
index = (app.srcdir / 'index.rst').read_text(encoding='utf8')
index = re.sub(':numbered:.*', ':numbered: 1', index)
- (app.srcdir / 'index.rst').write_text(index)
+ (app.srcdir / 'index.rst').write_text(index, encoding='utf8')
app.builder.build_all()