From b887825661ab91bd027b18a10e1f0ec03840730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 26 Jan 2024 20:59:01 +0100 Subject: SquishTests: Make sure that *UnderCursor() return a str Without this, "line in lineUnderCursor(w)" can be False although "line == lineUnderCursor(w)" is True. Change-Id: I7fa6be7d237957706bf1ad93d7303c55b81f24ec Reviewed-by: Christian Stenger --- tests/system/shared/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3