summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2022-03-01 22:45:49 +0100
committerRobert Löhning <robert.loehning@qt.io>2022-03-03 20:02:26 +0000
commit50199cab9376de11e302e53c19c58670b92f2f6c (patch)
tree2e183381d1b7d93d78d96821d2cd417a9e1e2423 /tests
parenta61c39eb263926f0680e8f862c60705994ea5b42 (diff)
downloadqt-creator-50199cab9376de11e302e53c19c58670b92f2f6c.tar.gz
Squish: Fix checkLastBuild() with python3
Change-Id: I25c02f91eab4a7cbf784ab726e0fe24210050a84 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/shared/build_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py
index b8187760fc..f74bea0df1 100644
--- a/tests/system/shared/build_utils.py
+++ b/tests/system/shared/build_utils.py
@@ -40,7 +40,7 @@ def checkLastBuild(expectedToFail=False, createTasksFileOnError=True):
test.log("checkLastBuild called without a build")
return
buildIssues = getBuildIssues()
- types = map(lambda i: i[5], buildIssues)
+ types = [i[5] for i in buildIssues]
errors = types.count("1")
warnings = types.count("2")
gotErrors = errors != 0
@@ -78,8 +78,8 @@ def waitForCompile(timeout=60000):
def dumpBuildIssues(listModel):
issueDump = []
for index in dumpIndices(listModel):
- issueDump.extend([map(lambda role: index.data(role).toString(),
- range(Qt.UserRole, Qt.UserRole + 6))])
+ issueDump.extend([[index.data(role).toString() for role
+ in range(Qt.UserRole, Qt.UserRole + 6)]])
return issueDump
# counter for written tasks files