diff options
author | Robert Löhning <[email protected]> | 2024-01-26 20:59:01 +0100 |
---|---|---|
committer | Robert Löhning <[email protected]> | 2024-04-02 09:36:34 +0000 |
commit | b887825661ab91bd027b18a10e1f0ec03840730c (patch) | |
tree | a7f61d31cc7d72c753de66bbcc9dc642700af796 | |
parent | 5ea09e424d0fa18944a379b1d52bc6b00c153ce9 (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 <[email protected]>
-rw-r--r-- | tests/system/shared/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index 853c5f6fde0..8890ce4da00 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 |