From 0376fd73768f266ec99d771a2aa36a270f75d8bb Mon Sep 17 00:00:00 2001 From: benn Date: Thu, 5 Jan 2023 13:42:57 +0100 Subject: [PATCH] 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: --- tests/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SConscript b/tests/SConscript index 32b251660..7bcbc2092 100644 --- a/tests/SConscript +++ b/tests/SConscript @@ -81,7 +81,7 @@ testSrcDirs = globRootdirs('*') testcases = [testCases(env, dir) for dir in testSrcDirs if not dir in specialDirs] 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 @@ -96,7 +96,7 @@ Export('testsuite') # 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]