summaryrefslogtreecommitdiff
path: root/tests/test_builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_builder.py')
-rw-r--r--tests/test_builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_builder.py b/tests/test_builder.py
index c866a9720..1ff8aea05 100644
--- a/tests/test_builder.py
+++ b/tests/test_builder.py
@@ -13,7 +13,7 @@ def test_incremental_reading(app):
assert 'subdir/excluded' not in app.env.found_docs
# before second reading, add, modify and remove source files
- (app.srcdir / 'new.txt').write_text('New file\n========\n')
+ (app.srcdir / 'new.txt').write_text('New file\n========\n', encoding='utf8')
app.env.all_docs['index'] = 0 # mark as modified
(app.srcdir / 'autodoc.txt').unlink()