forked from qt-creator/qt-creator
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:
@@ -318,8 +318,8 @@ def __compareCompilers__(foundCompilers, expectedCompilers):
|
|||||||
isRegex = ".*?" in key or "[.0-9]+" in key
|
isRegex = ".*?" in key or "[.0-9]+" in key
|
||||||
if (((isRegex and re.match(key, list(currentFound.keys())[0], flags)))
|
if (((isRegex and re.match(key, list(currentFound.keys())[0], flags)))
|
||||||
or currentFound.keys() == currentExp.keys()):
|
or currentFound.keys() == currentExp.keys()):
|
||||||
if ((isWin and os.path.abspath(currentFound.values()[0].lower())
|
if ((isWin and os.path.abspath(list(currentFound.values())[0].lower())
|
||||||
== os.path.abspath(currentExp.values()[0].lower()))
|
== os.path.abspath(list(currentExp.values())[0].lower()))
|
||||||
or currentFound.values() == currentExp.values()):
|
or currentFound.values() == currentExp.values()):
|
||||||
foundExp = True
|
foundExp = True
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user