diff options
author | Robert Löhning <robert.loehning@qt.io> | 2022-03-25 00:43:03 +0100 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2022-04-12 20:59:28 +0000 |
commit | e4463ba6d43c1f86cf58af7cb5bfbb311fe5a297 (patch) | |
tree | d912f8ff296dee37c089fea5559607ef01af4b89 | |
parent | 6d681cc5ad36599db5244c1e67fc39874b1b6d9c (diff) |
Squish: Port tst_create_proj_wizard to Python3
While staying compatible with Python2.
Change-Id: I1de16a4a066b00bc11b4142e144d7b9246f7c14c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | tests/system/suite_general/tst_create_proj_wizard/test.py | 6 |
1 files 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 8d33ba62c4..a8ef4782fc 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": |