Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/system/libraries/nvdaRobotLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def _findDepPath(depFileName, searchPaths):
# relative to the python path
requiredPythonImportsForSystemTestSpyPackage = [
r"robotremoteserver",
r"SimpleXMLRPCServer",
r"xmlrpclib",
r"xmlrpc",
]

def _createNvdaSpyPackage():
Expand Down
6 changes: 3 additions & 3 deletions tests/system/libraries/systemTestSpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""
import globalPluginHandler
import threading
from systemTestUtils import _blockUntilConditionMet
from .systemTestUtils import _blockUntilConditionMet
from logHandler import log
from time import clock as _timer

Expand Down Expand Up @@ -64,7 +64,7 @@ def _flattenCommandsSeparatingWithNewline(self, commandArray):

def _getJoinedBaseStringsFromCommands(self, speechCommandArray):
wsChars = whitespaceMinusSlashN
baseStrings = [c.strip(wsChars) for c in speechCommandArray if isinstance(c, basestring)]
baseStrings = [c.strip(wsChars) for c in speechCommandArray if isinstance(c, str)]
return ''.join(baseStrings).strip()

# Public methods
Expand Down Expand Up @@ -95,7 +95,7 @@ def getIndexOfSpeech(self, speech, startFromIndex=0):
with threading.Lock():
for index, commands in enumerate(self._nvdaSpeech[startFromIndex:]):
index = index + startFromIndex
baseStrings = [c.strip() for c in commands if isinstance(c, basestring)]
baseStrings = [c.strip() for c in commands if isinstance(c, str)]
if any(speech in x for x in baseStrings):
return index
return -1
Expand Down