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...")