mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix test_config under 2.x.
This commit is contained in:
parent
e227abe1df
commit
bd950c3bb4
@ -89,7 +89,8 @@ def test_errors_warnings(dir):
|
|||||||
raises_msg(ConfigError, 'conf.py', Config, dir, 'conf.py', {}, None)
|
raises_msg(ConfigError, 'conf.py', Config, dir, 'conf.py', {}, None)
|
||||||
|
|
||||||
# test the automatic conversion of 2.x only code in configs
|
# test the automatic conversion of 2.x only code in configs
|
||||||
write_file(dir / 'conf.py', u'\n\nproject = u"Jägermeister"\n', 'utf-8')
|
write_file(dir / 'conf.py', u'# -*- coding: utf-8\n\n'
|
||||||
|
u'project = u"Jägermeister"\n', 'utf-8')
|
||||||
cfg = Config(dir, 'conf.py', {}, None)
|
cfg = Config(dir, 'conf.py', {}, None)
|
||||||
cfg.init_values()
|
cfg.init_values()
|
||||||
assert cfg.project == u'Jägermeister'
|
assert cfg.project == u'Jägermeister'
|
||||||
|
Loading…
Reference in New Issue
Block a user