Fix test_config under 2.x.

This commit is contained in:
Georg Brandl 2010-08-10 17:16:49 +02:00
parent e227abe1df
commit bd950c3bb4

View File

@ -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'