summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-02 21:53:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-02 21:53:07 +0900
commit5428d94d24dce472e309a31abb3b880548ef92fb (patch)
tree3a4495dfd666e56c3660b73d1f60dbc532256a16 /tests/test_config.py
parent860d7ab5062d348ac78dd984045356ea2bb33bb5 (diff)
downloadsphinx-git-5428d94d24dce472e309a31abb3b880548ef92fb.tar.gz
Remove coding magic comments from tests
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index a94fa3160..919921468 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -126,9 +126,7 @@ def test_errors_warnings(logger, tempdir):
assert 'conf.py' in str(excinfo.value)
# test the automatic conversion of 2.x only code in configs
- (tempdir / 'conf.py').write_text(
- '# -*- coding: utf-8\n\nproject = u"Jägermeister"\n',
- encoding='utf-8')
+ (tempdir / 'conf.py').write_text('project = u"Jägermeister"\n', encoding='utf-8')
cfg = Config.read(tempdir, {}, None)
cfg.init_values()
assert cfg.project == 'Jägermeister'