aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2023-03-28 14:59:36 +0200
committerChristian Stenger <christian.stenger@qt.io>2023-03-29 15:17:24 +0000
commit3ad00fc87144a01181ced25ae8fc8254a76f579e (patch)
tree09873ec920d4a6d10dc62b9268a44b12c24fe74e /tests
parent230b03075573b2cf960fc3eb20c856e15fd40d36 (diff)
SquishTests: More Python3 adaption
Change-Id: I95488e2b5661c8790cb73246947af58de2a1899b Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/shared/debugger.py2
-rw-r--r--tests/system/shared/editor_utils.py2
-rw-r--r--tests/system/suite_general/tst_tasks_handling/test.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/system/shared/debugger.py b/tests/system/shared/debugger.py
index 4dbc13fcaaf..424785b3a37 100644
--- a/tests/system/shared/debugger.py
+++ b/tests/system/shared/debugger.py
@@ -248,7 +248,7 @@ def verifyBreakPoint(bpToVerify):
windowTitle = str(waitForObject(":Qt Creator_Core::Internal::MainWindow").windowTitle)
test.verify(windowTitle.startswith(os.path.basename(fileName) + " "),
"Verify that Creator's window title changed according to current file")
- return test.compare(line, bpToVerify.values()[0],
+ return test.compare(line, list(bpToVerify.values())[0],
"Compare hit breakpoint to expected line number in %s" % fileName)
else:
test.fatal("Expected a dict for bpToVerify - got '%s'" % className(bpToVerify))
diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py
index 642cdb41ba0..c1df47ac3e6 100644
--- a/tests/system/shared/editor_utils.py
+++ b/tests/system/shared/editor_utils.py
@@ -157,7 +157,7 @@ def __handleTextTips__(textTip, expectedVals, alternativeVals):
props = object.properties(textTip)
expFail = False
eResult = verifyProperties(props, expectedVals)
- for val in eResult.itervalues():
+ for val in eResult.values():
if not val:
expFail = True
break
diff --git a/tests/system/suite_general/tst_tasks_handling/test.py b/tests/system/suite_general/tst_tasks_handling/test.py
index a42629c5769..053d5d24c74 100644
--- a/tests/system/suite_general/tst_tasks_handling/test.py
+++ b/tests/system/suite_general/tst_tasks_handling/test.py
@@ -58,7 +58,7 @@ def checkOrUncheckMyTasks():
"My Tasks"))
def getBuildIssuesTypeCounts(model):
- issueTypes = map(lambda x: x.data(Qt.UserRole + 5).toInt(), dumpIndices(model))
+ issueTypes = list(map(lambda x: x.data(Qt.UserRole + 5).toInt(), dumpIndices(model)))
result = [issueTypes.count(0), issueTypes.count(1), issueTypes.count(2)]
if len(issueTypes) != sum(result):
test.fatal("Found unexpected value(s) for TaskType...")