From e4463ba6d43c1f86cf58af7cb5bfbb311fe5a297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 25 Mar 2022 00:43:03 +0100 Subject: [PATCH] Squish: Port tst_create_proj_wizard to Python3 While staying compatible with Python2. Change-Id: I1de16a4a066b00bc11b4142e144d7b9246f7c14c Reviewed-by: Reviewed-by: Christian Stenger --- tests/system/suite_general/tst_create_proj_wizard/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/suite_general/tst_create_proj_wizard/test.py b/tests/system/suite_general/tst_create_proj_wizard/test.py index 8d33ba62c48..a8ef4782fc5 100644 --- a/tests/system/suite_general/tst_create_proj_wizard/test.py +++ b/tests/system/suite_general/tst_create_proj_wizard/test.py @@ -1,6 +1,6 @@ ############################################################################ # -# Copyright (C) 2016 The Qt Company Ltd. +# Copyright (C) 2022 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. @@ -66,8 +66,8 @@ def main(): availableProjectTypes.append({category:template}) safeClickButton("Cancel") for current in availableProjectTypes: - category = current.keys()[0] - template = current.values()[0] + category = list(current.keys())[0] + template = list(current.values())[0] with TestSection("Testing project template %s -> %s" % (category, template)): displayedPlatforms = __createProject__(category, template) if template == "Qt Quick Application":