Squish: Move imports of "os", "re" and "sys" into shared class

Change-Id: I349cb255b8fa6f96e32d5dacb3c9b58ddeb76897
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-08-03 16:10:45 +02:00
parent 43c2f36622
commit 2c6a57be9c
10 changed files with 1 additions and 17 deletions

View File

@@ -23,8 +23,6 @@
#
############################################################################
import re;
def getBuildIssues():
ensureChecked(":Qt Creator_Issues_Core::Internal::OutputPaneToggleButton")
model = waitForObject(":Qt Creator.Issues_QListView").model()

View File

@@ -23,8 +23,6 @@
#
############################################################################
import re;
# places the cursor inside the given editor into the given line
# (leading and trailing whitespaces are ignored!)
# and goes to the end of the line

View File

@@ -23,9 +23,6 @@
#
############################################################################
import __builtin__
import re
def openQbsProject(projectPath):
cleanUpUserFiles(projectPath)
invokeMenuItem("File", "Open File or Project...")

View File

@@ -23,8 +23,6 @@
#
############################################################################
import re;
# this function switches the MainWindow of creator to the specified view
def switchViewTo(view):
# make sure that no tooltip is shown, so move the mouse away and wait until all disappear

View File

@@ -24,6 +24,7 @@
############################################################################
import platform;
import re;
import shutil;
import os;
import glob;

View File

@@ -457,7 +457,6 @@ def iterateQtVersions(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
else:
currResult = additionalFunction(target, version, *argsForAdditionalFunc)
except:
import sys
t,v,_ = sys.exc_info()
currResult = None
test.fatal("Function to additionally execute on Options Dialog could not be found or "
@@ -520,7 +519,6 @@ def iterateKits(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
else:
currResult = additionalFunction(item, kitName, *argsForAdditionalFunc)
except:
import sys
t,v,_ = sys.exc_info()
currResult = None
test.fatal("Function to additionally execute on Options Dialog could not be "

View File

@@ -24,7 +24,6 @@
############################################################################
import urllib2
import re
############ functions not related to issues tracked inside jira ############

View File

@@ -24,7 +24,6 @@
############################################################################
source("../../shared/qtcreator.py")
import re
# test search in help mode and advanced search
searchKeywordDictionary={ "abundance":True, "deplmint":False, "QODBC":True, "bld":False }

View File

@@ -23,8 +23,6 @@
#
############################################################################
import os
# Helper class to create a tree structure
class Tree:
def __init__(self, name=None, value=None, children=None):

View File

@@ -25,8 +25,6 @@
source("../../shared/qtcreator.py")
import re
currentSelectedTreeItem = None
warningOrError = re.compile('<p><b>((Error|Warning).*?)</p>')