diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-06-25 16:38:03 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2021-07-05 10:31:19 +0000 |
commit | 770182653c897ff3d656bfcdd35fbff1d2b1de8a (patch) | |
tree | 8f28e322506c064441815cb77a4a0ad58e2b7ab1 | |
parent | c8b176c9a70a6d4b8cc2231f9812965198f5989c (diff) | |
download | qt-creator-770182653c897ff3d656bfcdd35fbff1d2b1de8a.tar.gz |
Squish: Add parentheses around all print statements
Required by Python 3.
Change-Id: Ia28491882a844d3642da38145b1ebfcfbd5883b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | tests/system/shared/qtcreator.py | 5 | ||||
-rw-r--r-- | tests/system/shared/utils.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py index d78da01d92..0419a4c758 100644 --- a/tests/system/shared/qtcreator.py +++ b/tests/system/shared/qtcreator.py @@ -144,9 +144,10 @@ def checkForStillRunningQmlExecutable(possibleNames): continue else: if subprocess.call(["taskkill", "/F", "/FI", "IMAGENAME eq %s" % qmlHelper]) == 0: - print "Killed still running %s" % qmlHelper + print("Killed still running %s" % qmlHelper) else: - print "%s is still running - failed to kill it" % qmlHelper + print("%s is still running - failed to kill it" % qmlHelper) + def __removeTestingDir__(): def __removeIt__(directory): diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index e31ed30c20..c34e39af7b 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -579,7 +579,7 @@ def dumpChildren(item): def writeTestResults(folder): if not os.path.exists(folder): - print "Skipping writing test results (folder '%s' does not exist)." % folder + print("Skipping writing test results (folder '%s' does not exist)." % folder) return resultFile = open("%s.srf" % os.path.join(folder, os.path.basename(squishinfo.testCase)), "w") resultFile.write("suite:%s\n" % os.path.basename(os.path.dirname(squishinfo.testCase))) |