test create_or_populate_from_xml without a list

This commit is contained in:
Emmanuel Garette 2020-12-24 15:42:52 +01:00
parent f8959ef16f
commit 02edd0eaf0
1 changed files with 2 additions and 2 deletions

View File

@ -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):