diff options
author | Robert Löhning <robert.loehning@qt.io> | 2022-03-22 21:17:19 +0100 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2022-03-23 13:14:18 +0000 |
commit | 5b0b48177b49b8318576864673e9b0999ff3005c (patch) | |
tree | a2865aef4e6aceb601313923bfdee1c3a5426d78 | |
parent | 031998c988c47aadcbdef6d9e0aec0531150a0cc (diff) |
Squish: Port tst_WELP03 to Python3
Change-Id: I997fb8cc44fab986b5f4e0aa6e6f1f92fccfd54a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | tests/system/suite_WELP/tst_WELP03/test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/system/suite_WELP/tst_WELP03/test.py b/tests/system/suite_WELP/tst_WELP03/test.py index bc16fd0e59..58e8e6dd76 100644 --- a/tests/system/suite_WELP/tst_WELP03/test.py +++ b/tests/system/suite_WELP/tst_WELP03/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. @@ -93,8 +93,8 @@ def main(): example = findExampleOrTutorial(listView, ".*", True) test.verify(example is None, "Verifying: No example is shown.") - proFiles = map(lambda p: os.path.join(p, "opengl", "2dpainting", "2dpainting.pro"), - Qt5Path.getPaths(Qt5Path.EXAMPLES)) + proFiles = [os.path.join(p, "opengl", "2dpainting", "2dpainting.pro") + for p in Qt5Path.getPaths(Qt5Path.EXAMPLES)] cleanUpUserFiles(proFiles) for p in proFiles: removePackagingDirectory(os.path.dirname(p)) @@ -115,8 +115,8 @@ def main(): # go to "Welcome" page and choose another example switchViewTo(ViewConstants.WELCOME) - proFiles = map(lambda p: os.path.join(p, "widgets", "itemviews", "addressbook", "addressbook.pro"), - Qt5Path.getPaths(Qt5Path.EXAMPLES)) + proFiles = [os.path.join(p, "widgets", "itemviews", "addressbook", "addressbook.pro") + for p in Qt5Path.getPaths(Qt5Path.EXAMPLES)] cleanUpUserFiles(proFiles) for p in proFiles: removePackagingDirectory(os.path.dirname(p)) |