summaryrefslogtreecommitdiff
path: root/tests/test_project.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-27 03:11:08 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-27 03:11:08 +0100
commit4674cc11c83c302102c167123de00a68b3d5dd88 (patch)
tree38c7a19f3621b4566de8a7eeefe64d4d72112d2a /tests/test_project.py
parent24e3b7c8c8c0a2d01ec2d2d4d04105bcb565e440 (diff)
downloadsphinx-git-4674cc11c83c302102c167123de00a68b3d5dd88.tar.gz
`.write_text(...)` -> `.write_text(..., encoding='utf8')`
Diffstat (limited to 'tests/test_project.py')
-rw-r--r--tests/test_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_project.py b/tests/test_project.py
index 40db85ef3..d4e0a0d8c 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -65,7 +65,7 @@ def test_project_doc2path(app):
assert project.doc2path('foo') == (app.srcdir / 'foo.rst')
# matched source_suffix is used if exists
- (app.srcdir / 'foo.txt').write_text('')
+ (app.srcdir / 'foo.txt').write_text('', encoding='utf8')
assert project.doc2path('foo') == (app.srcdir / 'foo.txt')
# absolute path