SquishTests: Adapt to Python 3

A dict's values object is not a list as it had been in Python 2.
Explicitly convert it.

Change-Id: Iab54a5833b77c6890b108065657da3ff73c96f7f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2023-07-19 09:14:30 +02:00
parent a86356ce8a
commit 6614abe549

View File

@@ -318,8 +318,8 @@ def __compareCompilers__(foundCompilers, expectedCompilers):
isRegex = ".*?" in key or "[.0-9]+" in key
if (((isRegex and re.match(key, list(currentFound.keys())[0], flags)))
or currentFound.keys() == currentExp.keys()):
if ((isWin and os.path.abspath(currentFound.values()[0].lower())
== os.path.abspath(currentExp.values()[0].lower()))
if ((isWin and os.path.abspath(list(currentFound.values())[0].lower())
== os.path.abspath(list(currentExp.values())[0].lower()))
or currentFound.values() == currentExp.values()):
foundExp = True
break