summaryrefslogtreecommitdiff
path: root/tests/test_docutilsconf.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-02 22:39:06 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-03 10:58:07 +0900
commitc4c878303f11e2806a73ae7cc5a363dbf0e02534 (patch)
tree1e59e89c39710cbd0fb54c30b7ce148d72c9430c /tests/test_docutilsconf.py
parent657fa843c8e3d52481898fb1a1ca82447e780cd4 (diff)
downloadsphinx-git-c4c878303f11e2806a73ae7cc5a363dbf0e02534.tar.gz
encoding keyword for path.text() and path.write_text() is no longer needed
Diffstat (limited to 'tests/test_docutilsconf.py')
-rw-r--r--tests/test_docutilsconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_docutilsconf.py b/tests/test_docutilsconf.py
index bb5bf0cde..57ae785db 100644
--- a/tests/test_docutilsconf.py
+++ b/tests/test_docutilsconf.py
@@ -25,7 +25,7 @@ def test_html_with_default_docutilsconf(app, status, warning):
with patch_docutils(app.confdir):
app.builder.build(['contents'])
- result = (app.outdir / 'index.html').text(encoding='utf-8')
+ result = (app.outdir / 'index.html').text()
assert regex_count(r'<th class="field-name">', result) == 1
assert regex_count(r'<th class="field-name" colspan="2">', result) == 1
@@ -43,7 +43,7 @@ def test_html_with_docutilsconf(app, status, warning):
with patch_docutils(app.confdir):
app.builder.build(['contents'])
- result = (app.outdir / 'index.html').text(encoding='utf-8')
+ result = (app.outdir / 'index.html').text()
assert regex_count(r'<th class="field-name">', result) == 0
assert regex_count(r'<th class="field-name" colspan="2">', result) == 2