Upgrade: Fix TypeError in list concatenation

Here is the exact error message for this type of error:
TypeError: can only concatenate list (not "dict_values") to list:
This commit is contained in:
benn 2023-01-05 13:42:57 +01:00 committed by Ichthyostega
parent 0e8fc5889f
commit 0376fd7376

View file

@ -81,7 +81,7 @@ testSrcDirs = globRootdirs('*')
testcases = [testCases(env, dir) for dir in testSrcDirs if not dir in specialDirs] testcases = [testCases(env, dir) for dir in testSrcDirs if not dir in specialDirs]
testLibs = sharedTestLibs.values() testLibs = sharedTestLibs.values()
testrunner = envSuite.Program("test-suite", ["testrunner.cpp"]+testLibs+core_lib) testrunner = envSuite.Program("test-suite", ["testrunner.cpp"]+list(testLibs)+list(core_lib))
testsuite = ( testcases testsuite = ( testcases
@ -96,7 +96,7 @@ Export('testsuite')
# for creating a Valgrind-Suppression file # for creating a Valgrind-Suppression file
vgsuppression = envSuite.Program('vgsuppression',['tool/vgsuppression.c']+testLibs+core_lib) ## for suppressing false valgrind alarms vgsuppression = envSuite.Program('vgsuppression',['tool/vgsuppression.c']+list(testLibs)+list(core_lib)) ## for suppressing false valgrind alarms
tools += [vgsuppression] tools += [vgsuppression]