提交 fae06413 编写于 作者: C Cleber Rosa

test_alternate_config_datadir: generate config file that can be parsed on Python 3

The config file generated and used on this test was missing a
separator between the section name and the first key/value line.

This adds a new line and makes the resulting file aesthetically
pleasing and able to be parsed.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 d750d93b
......@@ -184,7 +184,7 @@ class RunnerOperationTest(unittest.TestCase):
'test_dir': os.path.join(base_dir, 'test'),
'data_dir': os.path.join(base_dir, 'data'),
'logs_dir': os.path.join(base_dir, 'logs')}
config = '[datadir.paths]'
config = '[datadir.paths]\n'
for key, value in iteritems(mapping):
if not os.path.isdir(value):
os.mkdir(value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册