From 5b0b48177b49b8318576864673e9b0999ff3005c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Tue, 22 Mar 2022 21:17:19 +0100 Subject: Squish: Port tst_WELP03 to Python3 Change-Id: I997fb8cc44fab986b5f4e0aa6e6f1f92fccfd54a Reviewed-by: Reviewed-by: Christian Stenger --- tests/system/suite_WELP/tst_WELP03/test.py | 10 +++++----- 1 file 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)) -- cgit v1.2.3