aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2024-01-26 20:59:01 +0100
committerRobert Löhning <robert.loehning@qt.io>2024-04-02 09:36:34 +0000
commitb887825661ab91bd027b18a10e1f0ec03840730c (patch)
treea7f61d31cc7d72c753de66bbcc9dc642700af796
parent5ea09e424d0fa18944a379b1d52bc6b00c153ce9 (diff)
SquishTests: Make sure that *UnderCursor() return a strv13.0.0
Without this, "line in lineUnderCursor(w)" can be False although "line == lineUnderCursor(w)" is True. Change-Id: I7fa6be7d237957706bf1ad93d7303c55b81f24ec Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/system/shared/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py
index 853c5f6fde..8890ce4da0 100644
--- a/tests/system/shared/utils.py
+++ b/tests/system/shared/utils.py
@@ -110,7 +110,7 @@ def textUnderCursor(window, fromPos, toPos):
cursor.movePosition(toPos, QTextCursor.KeepAnchor)
returnValue = cursor.selectedText()
cursor.setPosition(oldposition)
- return returnValue
+ return str(returnValue)
def which(program):
# Don't use spawn.find_executable because it can't find .bat or