From fae064139b54aed7cd383f92e62eadba0563a151 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Fri, 16 Feb 2018 16:47:11 -0500 Subject: [PATCH] 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: Cleber Rosa --- selftests/functional/test_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selftests/functional/test_basic.py b/selftests/functional/test_basic.py index 6e44bcd8..311e0cfe 100644 --- a/selftests/functional/test_basic.py +++ b/selftests/functional/test_basic.py @@ -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) -- GitLab