Skip to content

Commit

Permalink
SquishTests: Make sure that *UnderCursor() return a str
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rlohning committed Apr 2, 2024
1 parent 5ea09e4 commit b887825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/shared/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b887825

Please sign in to comment.