summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 20:01:43 +0900
committerGitHub <noreply@github.com>2018-12-16 20:01:43 +0900
commitea1d2d06f897a9685faab231b4ba2bca5fe7fbeb (patch)
tree74df35e11b24abf1393942e7927da20d171ee8ff /tests/test_setup_command.py
parent2597c4174e386552449991a0a247340de3dbcdcc (diff)
parent5bf25eb44529cb0546b9b690a142ca7529a062f0 (diff)
downloadsphinx-git-ea1d2d06f897a9685faab231b4ba2bca5fe7fbeb.tar.gz
Merge pull request #5803 from jdufresne/encoding-utf8
Avoid respecifying default encoding for .encode()/.decode() calls
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r--tests/test_setup_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py
index 1e4111be9..bfd8e3903 100644
--- a/tests/test_setup_command.py
+++ b/tests/test_setup_command.py
@@ -99,7 +99,7 @@ def nonascii_srcdir(request, setup_command):
.. toctree::
%(mb_name)s/%(mb_name)s
- """ % locals())).encode('utf-8'))
+ """ % locals())).encode())
@pytest.mark.usefixtures('nonascii_srcdir')