SquishTests: Fix waitForProjectTreeItem() for python3

Amends 892ccd2097

Change-Id: I18e2c9a5407e4c70dfdae5e9c17959897ea33d50
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2023-04-06 13:03:09 +02:00
parent 028686b419
commit f7ad1f02a1

View File

@@ -103,7 +103,7 @@ def waitForProjectTreeItem(treeElement, timeoutMSec):
projectTV = ":Qt Creator_Utils::NavigationTreeView" projectTV = ":Qt Creator_Utils::NavigationTreeView"
projItem = None projItem = None
treeElementWithBranch = addBranchWildcardToRoot(treeElement) treeElementWithBranch = addBranchWildcardToRoot(treeElement)
for _ in range(timeoutMSec / 200): for _ in range(__builtins__.int(timeoutMSec / 200)):
try: try:
projItem = waitForObjectItem(projectTV, treeElement, 100) projItem = waitForObjectItem(projectTV, treeElement, 100)
except: except: