From 02edd0eaf04d96ff231e7d7f9ae18cf0155eca7f Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 24 Dec 2020 15:42:52 +0100 Subject: [PATCH] test create_or_populate_from_xml without a list --- tests/test_1_flattener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_1_flattener.py b/tests/test_1_flattener.py index 3d3e8c0cd..764a8d81a 100644 --- a/tests/test_1_flattener.py +++ b/tests/test_1_flattener.py @@ -55,10 +55,10 @@ def test_dir_error(request): def launch_flattener(test_dir, test_ok=False): eolobj = objspace.RougailObjSpace(Config['dtdfilename']) - dirs = [test_dir] + dirs = test_dir subfolder = join(test_dir, 'subfolder') if isdir(subfolder): - dirs.append(subfolder) + dirs = [dirs, subfolder] eolobj.create_or_populate_from_xml(Config['variable_namespace'], dirs) subfolder = join(test_dir, 'extra_dirs', 'extra') if isdir(subfolder):